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

Disassembly:
push 0xffffffffffffffff
push 0x4cbdd0
mov eax, dword fs:[0]
push eax
sub esp, 0x58
push ebx
push esi
push edi
mov eax, dword [0xde8598]
xor eax, esp
push eax
lea eax, [esp + 0x68]
mov dword fs:[0], eax
lea eax, [esp + 0x4c]
push 0x4ed680
push eax
call fcn.00479f20
add esp, 8
cmp dword [eax + 0x18], 0x10
mov dword [esp + 0x70], 0
jb 0x402f0b
mov eax, dword [eax + 4]
jmp 0x402f0e
add eax, 4
mov esi, dword [0x4eba0c]
push 0xffffffffffffffff
push eax
call esi
add esp, 8
mov dword [esp + 0x14], eax
push 0
push 1
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x30]
mov byte [esp + 0x7c], 1
call dword [0x4eb9e0]
mov edx, dword [esp + 0x14]
mov ebx, 3
mov byte [esp + 0x70], bl
or eax, 0xffffffff
lock xadd dword [edx], eax
mov edi, dword [0x4eba10]
jne 0x402f5e
mov ecx, dword [esp + 0x14]
push ecx
call edi
add esp, 4
lea ecx, [esp + 0x4c]
mov byte [esp + 0x70], 4
call dword [0x4eb23c]
push 0xffffffffffffffff
push 0x4ed674
call esi
add esp, 8
mov dword [esp + 0x18], eax
lea edx, [esp + 0x18]
push edx
lea ecx, [esp + 0x28]
mov byte [esp + 0x74], 5
call dword [0x4eb9e4]
mov eax, dword [esp + 0x18]
mov byte [esp + 0x70], 4
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x402fad
mov edx, dword [esp + 0x18]
push edx
call edi
add esp, 4
cmp dword [esp + 0x7c], ebx
jne 0x403157
push 0xffffffffffffffff
push 0x4ed668
call esi
add esp, 8
mov dword [esp + 0x1c], eax
lea ecx, [esp + 0x3c]
mov byte [esp + 0x70], 6
call dword [0x4eb9e8]
push eax
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x34]
push ecx
lea ecx, [esp + 0x30]
mov byte [esp + 0x7c], 7
call dword [0x4eb9ec]
lea edx, [esp + 0x10]
push edx
mov ecx, eax
mov byte [esp + 0x74], 8
call dword [0x4eb9f0]
mov esi, dword [0x4eb9f4]
lea ecx, [esp + 0x2c]
mov byte [esp + 0x70], 0xa
call esi
lea ecx, [esp + 0x3c]
mov byte [esp + 0x70], 0xb
call esi
mov eax, dword [esp + 0x1c]
mov bl, 0xc
mov byte [esp + 0x70], bl
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x40303b
mov edx, dword [esp + 0x1c]
push edx
call edi
add esp, 4
mov eax, dword [esp + 0x78]
cmp dword [eax + 0x18], 0x10
jb 0x40304a
mov eax, dword [eax + 4]
jmp 0x40304d
add eax, 4
push 0xffffffffffffffff
push eax
lea eax, [esp + 0x28]
push eax
call dword [0x4eb9f8]
push 1
push eax
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x94]
push edx
mov byte [esp + 0x8c], 0xd
call dword [0x4eba08]
movzx esi, byte [esp + 0x98]
mov ecx, dword [esp + 0x3c]
add esp, 0x1c
neg esi
sbb esi, esi
mov byte [esp + 0x70], bl
lea eax, [esp + 0x7c]
or ebx, 0xffffffff
and esi, eax
mov edx, ebx
lock xadd dword [ecx], edx
jne 0x4030ab
mov eax, dword [esp + 0x20]
push eax
call edi
add esp, 4
mov eax, dword [esp + 0x10]
mov byte [esp + 0x70], 4
test esi, esi
je 0x4030f9
test eax, eax
je 0x4030f3
mov ecx, ebx
lock xadd dword [eax], ecx
jne 0x4030f3
mov eax, dword [esp + 0x10]
mov edx, dword [eax + 0xc]
lea ecx, [eax + edx*4 + 0x14]
mov edx, dword [eax + 8]
mov esi, eax
push ecx
lea eax, [eax + edx*4 + 0x14]
push eax
lea ecx, [esp + 0x18]
call fcn.00402a60
mov ecx, dword [esi]
test ecx, ecx
jne 0x4030f3
push esi
call dword [0x4eba04]
add esp, 4
mov dword [esp + 0x70], ebx
jmp 0x403169
test eax, eax
je 0x403134
mov edx, ebx
lock xadd dword [eax], edx
jne 0x403134
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0xc]
lea edx, [eax + ecx*4 + 0x14]
mov ecx, dword [eax + 8]
push edx
lea edx, [eax + ecx*4 + 0x14]
push edx
lea ecx, [esp + 0x18]
mov esi, eax
call fcn.00402a60
mov eax, dword [esi]
test eax, eax
jne 0x403134
push esi
call dword [0x4eba04]
add esp, 4
lea ecx, [esp + 0x24]
mov dword [esp + 0x70], ebx
call dword [0x4eb9fc]
xor eax, eax
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x64
ret
lea ecx, [esp + 0x24]
call dword [0x4eba00]
mov dword [esp + 0x70], 0xffffffff
lea ecx, [esp + 0x24]
call dword [0x4eb9fc]
mov eax, 1
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x64
ret