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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x88
mov edi, ecx
mov eax, dword [0x597010]
xor eax, ebp
mov dword [esp + 0x80], eax
movzx eax, byte [0x598b10]
mov byte [esp + 0x33], al
test al, 0x19
jne 0x4c094b
mov dword [esp + 0x44], 0xffffffff
mov dword [esp + 0x48], 0
mov dword [esp + 0x40], 0xffffffff
mov dword [esp + 0x3c], 0xffffffff
lea esi, [esp + 0x58]
mov dword [esp], esi
mov dword [esp + 0xc], 0x116
mov dword [esp + 8], str....._base_task_sequence_manager_task_queue_impl.cc
mov dword [esp + 4], str.UnregisterTaskQueue
call fcn.004733a0
test byte [0x598b10], 0x19
jne 0x4c099c
call fcn.00498910
mov esi, dword [edi + 0xc]
mov eax, dword [esi + 4]
nop
mov ecx, eax
or ecx, 0x80000000
lock cmpxchg dword [esi + 4], ecx
jne 0x4c0220
mov edx, eax
shr edx, 0x1e
and edx, 1
test eax, eax
mov ecx, 2
cmovns ecx, edx
cmp ecx, 1
je 0x4c0270
test ecx, ecx
jne 0x4c029d
and eax, 0x3fffffff
mov ecx, eax
neg ecx
lock xadd dword [esi + 4], ecx
test ecx, ecx
jns 0x4c029d
and ecx, 0x3fffffff
cmp ecx, eax
jne 0x4c029d
lea ecx, [esi + 8]
call fcn.00498d00
jmp 0x4c029d
test eax, 0x3fffffff
je 0x4c029d
lea ecx, [esi + 8]
mov dword [esp + 0x5c], 0x7fffffff
mov dword [esp + 0x58], 0xffffffff
movsd xmm0, qword [esp + 0x58]
movsd qword [esp], xmm0
call fcn.00498df0
sub esp, 8
mov eax, dword [esi + 0x10]
mov ecx, eax
shr ecx, 0xe
mov edx, eax
shr edx, 0x13
mov edx, dword [edx*4 + 0x59f9d0]
bt edx, ecx
jae 0x4c02be
mov dword [esp], eax
call fcn.0042f1aa
mov dword [esi + 0x10], 0
test byte [0x598b10], 0x19
jne 0x4c09ce
lea esi, [edi + 0x10]
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
sub esp, 4
test al, al
jne 0x4c02f1
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
sub esp, 4
mov byte [edi + 0x32], 1
mov eax, dword [edi + 0x18]
mov dword [esp + 0x50], eax
mov eax, dword [edi + 0x38]
lea ecx, [edi + 0x38]
xorps xmm0, xmm0
movups xmmword [edi + 0x18], xmm0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x28], 0
mov dword [esp + 0x34], edi
mov ebx, dword [edi + 0x3c]
cmp eax, ebx
je 0x4c0383
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x28], esi
jmp 0x4c0340
mov dword [esi + 4], 0
mov eax, edi
add eax, 8
cmp eax, ebx
je 0x4c0367
mov edi, eax
mov esi, dword [eax]
mov eax, dword [esi + 4]
mov ecx, eax
shr ecx, 0xe
mov edx, eax
shr edx, 0x13
mov edx, dword [edx*4 + 0x59f9d0]
bt edx, ecx
jae 0x4c0330
mov dword [esp], eax
call fcn.0042f1aa
jmp 0x4c0330
mov ebx, dword [esp + 0x34]
mov eax, dword [ebx + 0x38]
mov dword [esp + 0x38], eax
mov eax, dword [ebx + 0x3c]
mov dword [esp + 0x2c], eax
mov esi, dword [esp + 0x28]
mov ecx, dword [esp + 0x4c]
jmp 0x4c038f
mov dword [esp + 0x2c], eax
mov dword [esp + 0x38], eax
mov ebx, dword [esp + 0x34]
mov dword [ecx + 4], 0
mov dword [ecx], 0
mov dword [ecx + 8], 0
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
sub esp, 4
mov edi, dword [ebx + 0x70]
test edi, edi
je 0x4c03cd
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [section..00cfg]
mov dword [esp], ebx
mov ecx, edi
call esi
sub esp, 4
mov esi, dword [ebx + 0x108]
mov dword [ebx + 0x108], 0
test esi, esi
je 0x4c03f4
lock dec dword [esi]
jne 0x4c03f4
mov ecx, dword [esi + 8]
call dword [section..00cfg]
mov dword [esp], esi
call ecx
mov eax, dword [esp + 0x34]
mov esi, dword [eax + 0x10c]
mov dword [eax + 0x10c], 0
test esi, esi
je 0x4c041f
lock dec dword [esi]
jne 0x4c041f
mov ecx, dword [esi + 8]
call dword [section..00cfg]
mov dword [esp], esi
call ecx
mov eax, dword [esp + 0x34]
mov eax, dword [eax + 0x70]
mov ecx, eax
shr ecx, 0xe
mov edx, eax
shr edx, 0x13
mov edx, dword [edx*4 + 0x59f9d0]
bt edx, ecx
jae 0x4c0444
mov dword [esp], eax
call fcn.0042f1aa
mov esi, dword [esp + 0x34]
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 + 0x59f9d0]
bt edx, ecx
jae 0x4c0470
mov dword [esp], eax
call fcn.0042f1aa
mov dword [esi + 0x74], 0
lea ecx, [esi + 0x168]
call fcn.004bdec0
mov dword [esp + 0x58], 0xffffffff
lea edi, [esi + 0x80]
mov eax, dword [esi + 0x90]
mov dword [esp + 0x68], eax
mov dword [esi + 0x90], 0
movaps xmm0, xmmword [0x581d10]
movups xmmword [esp + 0x70], xmm0
mov dword [esp + 0x64], 0
mov dword [esp + 0x60], 0
mov dword [esp + 0x5c], 0
lea ecx, [esp + 0x58]
mov edx, edi
call fcn.004c6d90
lea edx, [esp + 0x70]
mov ecx, edi
call fcn.004c6d90
mov esi, dword [esp + 0x74]
mov ebx, dword [esp + 0x78]
mov ecx, ebx
cmp ebx, esi
je 0x4c05c9
xor eax, eax
mov ecx, 0x6c
jmp 0x4c051d
inc eax
mov esi, dword [esp + 0x74]
mov ebx, dword [esp + 0x78]
mov edx, ebx
sub edx, esi
sar edx, 4
imul edx, edx, 0xb6db6db7
add ecx, 0x70
cmp eax, edx
jae 0x4c0557
mov edx, dword [esi + ecx - 4]
test edx, edx
je 0x4c0500
movzx edx, byte [edx + 4]
test dl, dl
jne 0x4c0500
cmp dword [esi + ecx], 0
je 0x4c0500
mov edx, dword [esi + ecx - 4]
test edx, edx
je 0x4c0a45
movzx edx, byte [edx + 4]
test dl, dl
jne 0x4c0a45
mov edx, dword [esi + ecx]
mov dword [edx + 8], 0xffffffff
jmp 0x4c0500
cmp ebx, esi
jne 0x4c0564
mov ecx, ebx
jmp 0x4c05c9
cmp ebx, esi
je 0x4c05c3
mov eax, dword [ebx - 8]
test eax, eax
je 0x4c0578
lock dec dword [eax]
jne 0x4c0578
mov dword [esp], eax
call fcn.00528424
mov edi, dword [ebx - 0x14]
test edi, edi
je 0x4c05a4
lock dec dword [edi + 4]
jne 0x4c05a4
mov eax, dword [edi]
mov ecx, dword [eax + 4]
mov dword [esp + 0x28], ecx
call dword [section..00cfg]
mov dword [esp], 1
mov ecx, edi
call dword [esp + 0x28]
sub esp, 4
mov edi, dword [ebx - 0x70]
add ebx, 0xffffff90
test edi, edi
je 0x4c0560
lock dec dword [edi]
jne 0x4c0560
mov ecx, dword [edi + 8]
call dword [section..00cfg]
mov dword [esp], edi
call ecx
jmp 0x4c0560
mov ebx, dword [esp + 0x74]
mov ecx, esi
mov dword [esp + 0x78], ecx
test ebx, ebx
mov eax, dword [esp + 0x2c]
je 0x4c065f
cmp ecx, ebx
jne 0x4c05e4
jmp 0x4c0653
cmp ecx, ebx
je 0x4c064f
mov eax, dword [ecx - 8]
test eax, eax
je 0x4c05fc
lock dec dword [eax]
jne 0x4c05fc
mov dword [esp], eax
mov esi, ecx
call fcn.00528424
mov ecx, esi
mov edi, dword [ecx - 0x14]
test edi, edi
je 0x4c062c
lock dec dword [edi + 4]
jne 0x4c062c
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov dword [esp + 0x28], ecx
mov ecx, esi
call dword [section..00cfg]
mov dword [esp], 1
mov ecx, edi
call esi
sub esp, 4
mov ecx, dword [esp + 0x28]
mov esi, dword [ecx - 0x70]
add ecx, 0xffffff90
test esi, esi
je 0x4c05e0
lock dec dword [esi]
jne 0x4c05e0
mov edi, ecx
mov ecx, dword [esi + 8]
call dword [section..00cfg]
mov dword [esp], esi
call ecx
mov ecx, edi
jmp 0x4c05e0
mov ebx, dword [esp + 0x74]
mov dword [esp], ebx
call fcn.00528424
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x34]
mov esi, dword [ecx + 0x78]
mov edi, dword [ecx + 0x7c]
mov dword [ecx + 0x7c], 0
mov dword [ecx + 0x78], 0
test esi, esi
je 0x4c068e
mov ecx, esi
call fcn.004d03a0
mov dword [esp], esi
call fcn.00528424
mov eax, dword [esp + 0x2c]
test edi, edi
je 0x4c06a5
mov ecx, edi
call fcn.004d03a0
mov dword [esp], edi
call fcn.00528424
mov eax, dword [esp + 0x2c]
mov edi, dword [esp + 0x5c]
mov ebx, dword [esp + 0x60]
mov ecx, ebx
cmp ebx, edi
je 0x4c078d
xor eax, eax
mov ecx, 0x6c
jmp 0x4c06dd
inc eax
mov edi, dword [esp + 0x5c]
mov ebx, dword [esp + 0x60]
mov edx, ebx
sub edx, edi
sar edx, 4
imul edx, edx, 0xb6db6db7
add ecx, 0x70
cmp eax, edx
jae 0x4c0717
mov edx, dword [edi + ecx - 4]
test edx, edx
je 0x4c06c0
movzx edx, byte [edx + 4]
test dl, dl
jne 0x4c06c0
cmp dword [edi + ecx], 0
je 0x4c06c0
mov edx, dword [edi + ecx - 4]
test edx, edx
je 0x4c0a48
movzx edx, byte [edx + 4]
test dl, dl
jne 0x4c0a48
mov edx, dword [edi + ecx]
mov dword [edx + 8], 0xffffffff
jmp 0x4c06c0
cmp ebx, edi
jne 0x4c0724
mov ecx, ebx
jmp 0x4c0789
cmp ebx, edi
je 0x4c0783
mov eax, dword [ebx - 8]
test eax, eax
je 0x4c0738
lock dec dword [eax]
jne 0x4c0738
mov dword [esp], eax
call fcn.00528424
mov esi, dword [ebx - 0x14]
test esi, esi
je 0x4c0764
lock dec dword [esi + 4]
jne 0x4c0764
mov eax, dword [esi]
mov ecx, dword [eax + 4]
mov dword [esp + 0x28], ecx
call dword [section..00cfg]
mov dword [esp], 1
mov ecx, esi
call dword [esp + 0x28]
sub esp, 4
mov esi, dword [ebx - 0x70]
add ebx, 0xffffff90
test esi, esi
je 0x4c0720
lock dec dword [esi]
jne 0x4c0720
mov ecx, dword [esi + 8]
call dword [section..00cfg]
mov dword [esp], esi
call ecx
jmp 0x4c0720
mov ebx, dword [esp + 0x5c]
mov ecx, edi
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x60], ecx
test ebx, ebx
je 0x4c082b
mov edi, ecx
mov eax, ebx
cmp ecx, ebx
jne 0x4c07b4
jmp 0x4c081b
cmp edi, ebx
je 0x4c0817
mov eax, dword [edi - 8]
test eax, eax
je 0x4c07c8
lock dec dword [eax]
jne 0x4c07c8
mov dword [esp], eax
call fcn.00528424
mov esi, dword [edi - 0x14]
test esi, esi
je 0x4c07f8
lock dec dword [esi + 4]
jne 0x4c07f8
mov eax, dword [esi]
mov dword [esp + 0x28], edi
mov edi, dword [eax + 4]
mov ecx, edi
call dword [section..00cfg]
mov dword [esp], 1
mov ecx, esi
call edi
sub esp, 4
mov edi, dword [esp + 0x28]
mov esi, dword [edi - 0x70]
add edi, 0xffffff90
test esi, esi
je 0x4c07b0
lock dec dword [esi]
jne 0x4c07b0
mov ecx, dword [esi + 8]
call dword [section..00cfg]
mov dword [esp], esi
call ecx
jmp 0x4c07b0
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x60], ebx
mov dword [esp], eax
call fcn.00528424
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x38]
test ecx, ecx
mov edi, dword [esp + 0x50]
je 0x4c0847
cmp eax, ecx
jne 0x4c0905
mov dword [esp], ecx
call fcn.00528424
test edi, edi
je 0x4c086f
nop dword [eax + eax]
mov esi, dword [edi + 0x10]
mov dword [edi + 0x10], 0
mov ecx, edi
call fcn.004c6f70
mov dword [esp], edi
call fcn.00528424
mov edi, esi
test esi, esi
jne 0x4c0850
test byte [esp + 0x33], 0x19
mov esi, dword [esp + 0x48]
je 0x4c08d4
cmp byte [esi], 0
je 0x4c08d4
mov eax, dword [0x59cb48]
mov ecx, dword [0x59b038]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x4c0a07
mov eax, dword [esp + 0x40]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x5c], eax
movsd xmm0, qword [esp + 0x58]
movsd qword [esp + 8], xmm0
mov eax, dword [esp + 0x44]
mov dword [esp + 4], eax
mov dword [esp], esi
mov ecx, 0x59c960
call fcn.00452b00
sub esp, 0x10
mov ecx, dword [esp + 0x80]
xor ecx, ebp
call fcn.00528e13
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [ebx - 8], 0
mov eax, esi
mov ecx, dword [esp + 0x38]
cmp esi, ecx
je 0x4c083f
mov esi, dword [eax - 4]
test esi, esi
je 0x4c0923
lock dec dword [esi]
jne 0x4c0923
mov ecx, dword [esi + 8]
mov ebx, eax
call dword [section..00cfg]
mov dword [esp], esi
call ecx
mov eax, ebx
lea esi, [eax - 8]
mov ebx, eax
mov eax, dword [eax - 8]
mov ecx, eax
shr ecx, 0xe
mov edx, eax
shr edx, 0x13
mov edx, dword [edx*4 + 0x59f9d0]
bt edx, ecx
jae 0x4c08f0
mov dword [esp], eax
call fcn.0042f1aa
jmp 0x4c08f0
xorps xmm0, xmm0
movups xmmword [esp + 0xc], xmm0
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 8], str.TaskQueueImpl::UnregisterTaskQueue
mov dword [esp + 4], 0x598b10
mov dword [esp], 0x58
mov dword [esp + 0x44], str.TaskQueueImpl::UnregisterTaskQueue
mov dword [esp + 0x48], 0x598b10
call fcn.00433aa0
mov dword [esp + 0x40], eax
mov dword [esp + 0x3c], edx
jmp 0x4c01e2
mov dword [esp + 0x54], esi
mov dword [esp + 0x74], 0
mov dword [esp + 0x70], 0
movsd xmm0, qword [esp + 0x70]
movsd qword [esp], xmm0
lea edx, [esp + 0x54]
mov ecx, str.ScopedAllowBaseSyncPrimitivesOutsideBlockingScope
call fcn.00462090
jmp 0x4c0213
xorps xmm0, xmm0
movups xmmword [esp + 0xc], xmm0
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 8], str.ScopedAllowBaseSyncPrimitivesOutsideBlockingScope
mov dword [esp + 4], 0x598b10
mov dword [esp], 0x45
call fcn.00433aa0
jmp 0x4c02d2
mov dword [esp], 0x59cb48
call fcn.00528497
cmp dword [0x59cb48], 0xffffffff
jne 0x4c08a0
mov dword [esp], 0
mov ecx, 0x59c960
call fcn.004501e0
sub esp, 4
mov dword [esp], 0x59cb48
call fcn.0052850d
jmp 0x4c08a0
int3
int3