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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4710d0
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x48e4f0]
xor eax, esp
mov dword [esp + 0x60], eax
push ebx
push esi
push edi
mov eax, dword [0x48e4f0]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [ebx]
mov edx, dword [eax + 4]
lea ecx, [ebx + 4]
push ecx
mov ecx, ebx
call edx
lea esi, [eax + 0xd]
mov eax, dword [ebx + 0x88]
mov edi, dword [eax]
cmp edi, eax
je 0x4023ae
mov edx, dword [ebx]
lea eax, [edi + 8]
push eax
mov eax, dword [edx + 4]
mov ecx, ebx
call eax
mov edi, dword [edi]
add esi, eax
cmp edi, dword [ebx + 0x88]
jne 0x402395
mov eax, dword [ebx + 0x7c]
mov edi, dword [eax]
cmp edi, eax
je 0x4023cd
mov edx, dword [ebx]
lea eax, [edi + 8]
push eax
mov eax, dword [edx + 4]
mov ecx, ebx
call eax
mov edi, dword [edi]
add esi, eax
cmp edi, dword [ebx + 0x7c]
jne 0x4023b7
mov edi, dword [ebx + 0x20]
add esi, 2
cmp edi, dword [ebx + 0x24]
je 0x402536
lea esp, [esp]
xor ecx, ecx
mov word [esp + 0x1c], cx
push ecx
or eax, 0xffffffff
mov ecx, edi
lea edx, [esp + 0x20]
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], 0
call fcn.004043d0
lea eax, [edi + 0x1c]
push eax
lea edx, [esp + 0x3c]
push edx
mov dword [esp + 0x88], 0
call fcn.00402c90
mov eax, dword [edi + 0x28]
mov ecx, dword [edi + 0x2c]
mov edx, dword [edi + 0x30]
mov dword [esp + 0x44], eax
mov eax, dword [edi + 0x34]
mov dword [esp + 0x48], ecx
mov ecx, dword [edi + 0x38]
mov dword [esp + 0x4c], edx
mov edx, dword [edi + 0x3c]
mov dword [esp + 0x50], eax
mov eax, dword [edi + 0x40]
mov dword [esp + 0x54], ecx
mov ecx, dword [edi + 0x44]
mov dword [esp + 0x58], edx
mov edx, dword [edi + 0x48]
mov dword [esp + 0x5c], eax
mov eax, dword [edi + 0x4c]
mov dword [esp + 0x60], ecx
mov dword [esp + 0x64], edx
mov dword [esp + 0x68], eax
mov dword [esp + 0x80], 1
mov edx, dword [ebx]
mov edx, dword [edx + 4]
lea eax, [esp + 0x1c]
push eax
mov ecx, ebx
call edx
lea eax, [esi + eax + 4]
mov dword [esp + 0x14], eax
mov eax, dword [edi + 0x1c]
mov esi, dword [eax]
cmp esi, eax
je 0x4024a8
nop
mov edx, dword [ebx]
lea eax, [esi + 8]
push eax
mov eax, dword [edx + 4]
mov ecx, ebx
call eax
mov esi, dword [esi]
add dword [esp + 0x14], eax
cmp esi, dword [edi + 0x1c]
jne 0x402490
mov dword [esp + 0x80], 0xffffffff
mov eax, dword [esp + 0x38]
mov esi, dword [eax]
mov dword [eax], eax
mov eax, dword [esp + 0x38]
mov dword [eax + 4], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x3c], 0
cmp esi, eax
je 0x4024f2
mov ecx, dword [esi]
mov dword [esp + 0x18], ecx
call fcn.00403990
push esi
call fcn.004593e2
mov esi, dword [esp + 0x1c]
mov eax, dword [esp + 0x3c]
add esp, 4
cmp esi, eax
jne 0x4024d2
push eax
call fcn.004593e2
add esp, 4
cmp dword [esp + 0x30], 8
jb 0x40250f
mov edx, dword [esp + 0x1c]
push edx
call fcn.004593e2
add esp, 4
mov esi, dword [esp + 0x14]
xor eax, eax
add edi, 0x50
mov dword [esp + 0x30], 7
mov dword [esp + 0x2c], 0
mov word [esp + 0x1c], ax
cmp edi, dword [ebx + 0x24]
jne 0x4023e0
lea eax, [ebx + 0x58]
add esi, 0xa
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], 2
mov edi, dword [eax - 4]
cmp edi, dword [eax]
je 0x402568
nop
mov edx, dword [edi]
mov eax, dword [edx + 4]
mov ecx, edi
call eax
mov ecx, dword [esp + 0x14]
add edi, 0x3c
add esi, eax
cmp edi, dword [ecx]
jne 0x402550
mov eax, ecx
add eax, 0x10
dec dword [esp + 0x18]
mov dword [esp + 0x14], eax
jne 0x402548
mov edx, dword [ebx]
mov edx, dword [edx + 4]
lea eax, [ebx + 0x94]
push eax
mov ecx, ebx
call edx
lea eax, [eax + esi + 1]
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x60]
xor ecx, esp
call fcn.004593ed
mov esp, ebp
pop ebp
ret