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

Disassembly:
jmp 0x4a3780
sub esp, 0x60
push ebp
mov ebp, dword [esp + 0x68]
push esi
mov esi, dword [ebp + 0x2c]
push edi
mov edi, ecx
mov ecx, dword [esi + 0xc50]
test ecx, ecx
mov eax, 1
mov dword [esp + 0xc], edi
mov dword [esp + 0x14], eax
je 0x4a37c8
mov ecx, dword [esi + 0xc58]
mov dword [esi + 0xc54], eax
mov eax, dword [ebp + 0x28]
or ecx, eax
pop edi
mov dword [esi + 0xc58], ecx
pop esi
xor eax, eax
pop ebp
add esp, 0x60
ret 4
lea eax, [edi + 4]
push ebx
push eax
mov dword [esp + 0x18], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [edi + 0x65c]
test eax, eax
je 0x4a3b43
mov edx, dword [ebp]
mov ecx, ebp
lea ebx, [edi + 0xb8]
call dword [edx + 8]
mov ecx, dword [esi + 0xab8]
and ecx, 0x40000
xor edx, edx
or ecx, edx
je 0x4a381c
push 0x82545c
push 0x82544c
push eax
call fcn.004018fc
add esp, 0xc
test eax, eax
jne 0x4a3833
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop ebx
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x60
ret 4
mov eax, dword [0x974310]
test eax, eax
je 0x4a3981
mov eax, dword [ebp + 0x28]
test eax, eax
mov ecx, dword [0x81d824]
mov edi, dword [esi + ecx*4 + 0x8f8]
je 0x4a3960
test edi, edi
jne 0x4a392f
push 0x20
push 0xa0
call fcn.005d8b50
mov edx, dword [0x81d824]
mov edi, eax
xor ebx, ebx
add esp, 8
cmp edi, ebx
mov dword [esi + edx*4 + 0x8f8], edi
je 0x4a38e6
mov eax, dword [0x974bd4]
push 0x10
push eax
push 0x75cbd4
push 0x974640
call fcn.005df040
add esp, 4
push eax
push edi
call fcn.005ded80
add esp, 0x14
test al, al
jne 0x4a38e6
mov ecx, dword [0x974bd8]
mov dword [edi + 8], ecx
mov dword [edi + 0xc], ebx
mov eax, dword [esi + 0xab8]
and eax, 0x180000
xor ecx, ecx
or eax, ecx
je 0x4a394d
mov eax, 1
push 0x81d810
push eax
push esi
call fcn.0040ab96
add esp, 0xc
jmp 0x4a397b
push edi
call fcn.005d8be0
mov edx, dword [0x81d824]
add esp, 4
mov dword [esi + edx*4 + 0x8f8], ebx
mov edi, dword [esp + 0x10]
call fcn.005e0030
cmp dword [eax], 0x1b
jne 0x4a3b1b
mov ecx, dword [0x974690]
mov edx, dword [ecx + 0x314]
push 0
push edx
push 0x4ad
call fcn.005db9a0
add esp, 0xc
jmp 0x4a3b39
mov eax, dword [edi + 0x30]
mov eax, dword [eax]
mov ebx, dword [edi + 0x1c]
mov edx, dword [edi]
sub eax, ebx
mov ebx, dword [edi + 4]
xor ecx, ecx
add eax, edx
adc ecx, ebx
or eax, ecx
jne 0x4a397b
jmp 0x4a38b8
xor eax, eax
push 0x81d810
push eax
push esi
call fcn.0040ab96
add esp, 0xc
jmp 0x4a397b
test edi, edi
je 0x4a397d
mov ecx, dword [edi + 0x30]
mov eax, dword [ecx]
mov ecx, dword [edi + 0x1c]
mov edx, dword [edi]
sub eax, ecx
xor ecx, ecx
add eax, edx
adc ecx, dword [edi + 4]
or eax, ecx
je 0x4a397d
mov ebx, edi
mov edi, dword [esp + 0x10]
mov eax, dword [esi + 0xbe8]
test eax, eax
je 0x4a39c6
mov edx, dword [esi + 0xaac]
mov eax, dword [esi + 0xaa8]
push edx
push eax
push 1
push esi
lea ecx, [esp + 0x30]
call fcn.0040ad71
push ebx
lea ecx, [esp + 0x24]
call fcn.00406a1e
test eax, eax
lea ecx, [esp + 0x20]
je 0x4a39c1
call fcn.0040b2c6
jmp 0x4a3900
call fcn.0040b2c6
mov eax, dword [esi + 0xbec]
test eax, eax
je 0x4a3a0b
mov ecx, dword [esi + 0xaa4]
mov edx, dword [esi + 0xaa0]
push ecx
push edx
push 2
push esi
lea ecx, [esp + 0x30]
call fcn.0040ad71
push ebx
lea ecx, [esp + 0x24]
call fcn.00406a1e
test eax, eax
lea ecx, [esp + 0x20]
je 0x4a3a06
call fcn.0040b2c6
jmp 0x4a3900
call fcn.0040b2c6
mov eax, dword [esi + 0xbdc]
test eax, eax
je 0x4a3a52
mov eax, dword [esi + 0xb50]
mov ecx, dword [esi + 0xb4c]
push 0
push eax
push 0
push ecx
push esi
lea ecx, [esp + 0x34]
call fcn.00405196
push ebx
lea ecx, [esp + 0x24]
call fcn.00403134
test eax, eax
lea ecx, [esp + 0x20]
je 0x4a3a4d
call fcn.00405a1a
jmp 0x4a3900
call fcn.00405a1a
mov eax, dword [esi + 0xb88]
test eax, eax
je 0x4a3ac8
xor edi, edi
test eax, eax
jbe 0x4a3ac4
lea ebp, [esi + 0xb84]
push edi
lea edx, [esp + 0x20]
push edx
push ebp
call fcn.005d92b0
mov eax, dword [esp + 0x28]
mov edx, dword [eax + 0x10]
mov ecx, dword [eax]
add esp, 0xc
push edx
mov edx, dword [eax + 0xc]
push edx
mov edx, dword [eax + 8]
mov eax, dword [eax + 4]
push edx
mov edx, dword [ecx + 4]
push eax
mov eax, dword [ecx]
push edx
push eax
push esi
lea ecx, [esp + 0x3c]
call fcn.004051f5
push ebx
lea ecx, [esp + 0x24]
call fcn.00402013
test eax, eax
lea ecx, [esp + 0x20]
jne 0x4a3b11
call fcn.0040b127
mov eax, dword [esi + 0xb88]
inc edi
cmp edi, eax
jb 0x4a3a68
mov ebp, dword [esp + 0x74]
mov edi, dword [esp + 0x10]
mov edx, dword [ebp]
push ebx
mov ecx, ebp
call dword [edx + 0xc]
test eax, eax
jne 0x4a3900
lea eax, [edi + 0xb8]
cmp ebx, eax
jne 0x4a3b07
mov ecx, edi
call fcn.0040551a
test eax, eax
jne 0x4a3900
lea eax, [edi + 0x78]
push eax
call fcn.005e2540
add esp, 4
push 1
mov ecx, edi
call fcn.004048bd
mov dword [esp + 0x18], 0
jmp 0x4a3b43
call fcn.0040b127
jmp 0x4a38fc
call fcn.006cee9e
mov eax, dword [eax]
mov ecx, dword [edi + 0x1f8]
push eax
push ecx
push 0
push 0x402
call fcn.005db890
add esp, 0x10
mov dword [edi + 0x670], 1
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [esp + 0x18]
pop ebx
pop edi
pop esi
pop ebp
add esp, 0x60
ret 4