Function at 0x498980
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x78
mov esi, ecx
mov eax, dword [0x59d024]
xor eax, ebp
mov dword [esp + 0x70], eax
mov al, byte [0x59ed60]
mov byte [esp + 0x37], al
test al, 0x19
jne 0x498c64
xor eax, eax
dec eax
mov dword [esp + 0x44], 0
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x48], eax
lea ebx, [esp + 0x6c]
mov byte [ebx], 0xff
lea edi, [esp + 0x58]
mov dword [esp], edi
mov dword [esp + 0xc], 0x12d
mov dword [esp + 8], str....._base_task_sequence_manager_task_queue_impl.cc
mov dword [esp + 4], str.UnregisterTaskQueue
call fcn.004b4450
mov dword [esp], edi
mov ecx, ebx
call fcn.004be680
sub esp, 4
mov edi, dword [esi + 0xc]
lea ecx, [edi + 4]
call fcn.004e9030
mov eax, dword [edi + 0x10]
mov ecx, eax
shr ecx, 0xe
mov edx, eax
shr edx, 0x13
mov edx, dword [edx*4 + 0x5a5e98]
bt edx, ecx
jb 0x498c4a
mov dword [edi + 0x10], 0
lea ecx, [esp + 0x6c]
call fcn.004be6f0
lea eax, [esi + 0x10]
mov dword [esp + 0x3c], eax
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
sub esp, 4
test al, al
je 0x498ccc
mov byte [esi + 0x32], 1
mov eax, dword [esi + 0x18]
mov dword [esp + 0x54], eax
mov eax, dword [esi + 0x38]
lea edi, [esi + 0x38]
xor ebx, ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x28], ebx
xorps xmm0, xmm0
movups xmmword [esi + 0x18], xmm0
mov ecx, dword [esi + 0x3c]
cmp eax, ecx
mov dword [esp + 0x30], eax
jne 0x498cda
mov dword [esp + 0x38], eax
mov dword [edi + 4], ebx
mov dword [edi], ebx
mov dword [edi + 8], ebx
mov eax, dword [esp + 0x3c]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
sub esp, 4
mov ebx, dword [esi + 0x70]
test ebx, ebx
je 0x498ab5
mov eax, dword [ebx]
mov edi, dword [eax + 4]
mov ecx, edi
call dword [section..00cfg]
mov dword [esp], esi
mov ecx, ebx
call edi
sub esp, 4
xor edi, edi
mov dword [esp + 0x58], edi
lea ecx, [esi + 0x108]
lea ebx, [esp + 0x58]
mov dword [esp], ebx
call fcn.004b3ef0
sub esp, 4
mov ecx, ebx
call fcn.004b3f90
mov dword [esp + 0x58], edi
lea ecx, [esi + 0x10c]
mov dword [esp], ebx
call fcn.004b3ef0
sub esp, 4
mov ecx, ebx
call fcn.004b3f90
mov eax, dword [esi + 0x70]
mov ecx, eax
shr ecx, 0xe
mov edx, eax
shr edx, 0x13
mov edx, dword [edx*4 + 0x5a5e98]
bt edx, ecx
jb 0x498c57
mov dword [esi + 0x70], 0
mov eax, dword [esi + 0x74]
mov ecx, eax
shr ecx, 0xe
mov edx, eax
shr edx, 0x13
mov edx, dword [edx*4 + 0x5a5e98]
bt edx, ecx
jb 0x498d38
xor eax, eax
mov dword [esi + 0x74], eax
lea ecx, [esi + 0x168]
call fcn.004deeb0
mov eax, dword [esi + 0x84]
mov dword [esp + 0x3c], eax
mov eax, dword [esi + 0x88]
mov dword [esp + 0x40], eax
xorps xmm0, xmm0
movups xmmword [esi + 0x84], xmm0
mov edi, dword [esi + 0x78]
mov ebx, dword [esi + 0x7c]
xor eax, eax
mov dword [esi + 0x7c], eax
mov dword [esi + 0x78], eax
test edi, edi
je 0x498b83
mov ecx, edi
call fcn.004c6430
mov dword [esp], edi
call fcn.004eca8e
test ebx, ebx
je 0x498b96
mov ecx, ebx
call fcn.004c6430
mov dword [esp], ebx
call fcn.004eca8e
mov ecx, dword [esp + 0x40]
mov esi, dword [esp + 0x3c]
sub ecx, esi
mov ebx, dword [esp + 0x54]
jne 0x498c03
test esi, esi
jne 0x498bf9
mov eax, dword [esp + 0x38]
test eax, eax
jne 0x498d45
test ebx, ebx
jne 0x498bd8
test byte [esp + 0x37], 0x19
jne 0x498d79
mov ecx, dword [esp + 0x70]
xor ecx, ebp
call fcn.004ed092
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov esi, dword [ebx + 0x10]
mov dword [ebx + 0x10], 0
mov ecx, ebx
call fcn.00486a20
mov dword [esp], ebx
call fcn.004eca8e
mov ebx, esi
test esi, esi
je 0x498bba
jmp 0x498bd8
mov dword [esp], esi
call fcn.004eca8e
jmp 0x498baa
mov edx, 0x92492493
mov eax, ecx
imul edx
add edx, ecx
mov eax, edx
shr eax, 0x1f
sar edx, 6
add edx, eax
xor edi, edi
inc edi
cmp edx, 2
cmovae edi, edx
mov ecx, esi
call fcn.004d7660
add esi, 0x70
dec edi
jne 0x498c21
mov esi, dword [esp + 0x3c]
mov edi, dword [esp + 0x40]
add edi, 0xffffff90
mov ecx, edi
call fcn.004d74b0
cmp edi, esi
je 0x498ba6
jmp 0x498c36
mov dword [esp], eax
call fcn.004b5750
jmp 0x498a21
mov dword [esp], eax
call fcn.004b5750
jmp 0x498b10
lea edi, [esp + 0x58]
mov dword [esp], edi
call fcn.004c39a0
call fcn.004c31d0
xor ecx, ecx
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x24], edi
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], ecx
xorps xmm0, xmm0
movups xmmword [esp + 0xc], xmm0
mov dword [esp + 8], str.TaskQueueImpl::UnregisterTaskQueue
mov dword [esp + 4], 0x59ed60
mov dword [esp], 0x58
call fcn.004c4950
mov dword [esp + 0x4c], eax
mov dword [esp + 0x48], edx
mov dword [esp + 0x50], str.TaskQueueImpl::UnregisterTaskQueue
mov dword [esp + 0x44], 0x59ed60
jmp 0x4989c1
mov ecx, dword [esp + 0x3c]
call fcn.004c2ef0
jmp 0x498a4c
mov dword [esp + 0x40], ecx
mov eax, dword [esp + 0x30]
mov eax, dword [eax]
mov dword [esp + 0x38], eax
mov eax, dword [eax + 4]
mov ecx, eax
shr ecx, 0xe
mov edx, eax
shr edx, 0x13
mov edx, dword [edx*4 + 0x5a5e98]
bt edx, ecx
jae 0x498d09
mov dword [esp], eax
call fcn.004b5750
mov eax, dword [esp + 0x38]
mov dword [eax + 4], 0
mov eax, dword [esp + 0x30]
add eax, 8
mov dword [esp + 0x30], eax
cmp eax, dword [esp + 0x40]
jne 0x498cde
mov eax, dword [esi + 0x38]
mov dword [esp + 0x38], eax
mov eax, dword [esi + 0x3c]
mov dword [esp + 0x30], eax
jmp 0x498a7f
mov dword [esp], eax
call fcn.004b5750
jmp 0x498b34
cmp dword [esp + 0x30], eax
je 0x498d64
mov esi, dword [esp + 0x30]
add esi, 0xfffffff8
mov dword [esp], esi
call fcn.005509d0
mov dword [esp + 0x30], esi
cmp esi, dword [esp + 0x38]
jne 0x498d4b
mov eax, dword [esp + 0x38]
mov dword [esp], eax
call fcn.004eca8e
mov ebx, dword [esp + 0x54]
jmp 0x498bb6
mov eax, dword [esp + 0x44]
cmp byte [eax], 0
je 0x498bc5
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x5c], eax
movsd xmm0, qword [esp + 0x58]
movsd qword [esp + 8], xmm0
mov eax, dword [esp + 0x50]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x44]
mov dword [esp], eax
call fcn.004c54a0
jmp 0x498bc5