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

Disassembly:
sub esp, 0x40
mov eax, dword [0x76e098]
push esi
push edi
push 0
push 0x89
mov esi, ecx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x50]
lea ecx, [esp + 8]
call fcn.004065b0
mov eax, dword [esi + 8]
xor edi, edi
test eax, eax
mov dword [esp + 8], 0x3f000000
mov dword [esp + 0x1c], 0x3f000000
mov dword [esp + 0x30], 0x3f000000
mov dword [esp + 0x38], 0x3f000000
mov dword [esp + 0x3c], 0x3f000000
mov dword [esp + 0x40], 0x3f000000
jle 0x405c8e
push ebx
push ebp
mov eax, dword [0x76e098]
mov edx, dword [eax]
push 1
push 0x89
push eax
call dword [edx + 0x50]
mov eax, dword [esi]
xor ebx, ebx
test eax, eax
jle 0x405a7a
xor ebp, ebp
mov eax, dword [0x76e098]
mov ecx, dword [eax]
mov edx, ebp
add edx, dword [esi + 4]
push edx
push ebx
push eax
call dword [ecx + 0x48]
mov eax, dword [0x76e098]
mov ecx, dword [eax]
push 1
push ebx
push eax
call dword [ecx + 0xb0]
mov eax, dword [esi]
inc ebx
add ebp, 0x68
cmp ebx, eax
jl 0x405a4d
call fcn.00401c90
mov edx, dword [esi + 0xc]
mov eax, dword [edx + edi*4]
mov ecx, dword [eax + 0x18]
test ecx, ecx
jne 0x405a9b
mov eax, dword [0x76e098]
mov ecx, dword [eax]
push 1
push 0x16
push eax
call dword [ecx + 0x50]
mov edx, dword [esi + 0xc]
mov eax, dword [edx + edi*4]
cmp dword [eax + 0x18], 1
jne 0x405ab6
mov eax, dword [0x76e098]
mov ecx, dword [eax]
push 3
push 0x16
push eax
call dword [ecx + 0x50]
mov edx, dword [esi + 0xc]
mov eax, dword [edx + edi*4]
cmp dword [eax + 0x18], 2
jne 0x405ad1
mov eax, dword [0x76e098]
mov ecx, dword [eax]
push 2
push 0x16
push eax
call dword [ecx + 0x50]
mov edx, dword [esi + 0xc]
mov ecx, dword [edx + edi*4]
mov eax, dword [ecx + 0x78]
cmp eax, 4
ja case.default.0x405ae3
jmp dword [eax*4 + 0x405c94]
mov eax, dword [0x76e098]
mov ecx, dword [eax]
lea edx, [esi + 0x10]
push edx
push 2
push eax
call dword [ecx + 0x2c]
mov edx, dword [esi + 0xc]
mov edx, dword [edx + edi*4]
mov eax, dword [0x76e098]
mov ecx, dword [eax]
add edx, 0x38
push edx
push 1
push eax
call dword [ecx + 0x2c]
mov eax, dword [esi + 0xc]
mov eax, dword [eax + edi*4]
mov ebx, dword [eax + 0x1c]
mov eax, dword [eax + 0x24]
mov ecx, dword [0x76e098]
mov edx, dword [ecx]
push 0
push ebx
push 0
push eax
push 2
jmp 0x405c7c
mov ecx, dword [ecx + 0x7c]
mov ecx, dword [ecx*4 + 0x76e134]
mov eax, dword [0x76e098]
mov edx, dword [eax]
push ecx
push 0
push eax
call dword [edx + 0x8c]
jmp 0x405ba7
mov ecx, 8
call fcn.00401b70
mov eax, dword [0x76e098]
mov ecx, dword [eax]
push 2
push 0x18
push 1
push eax
call dword [ecx + 0x94]
mov eax, dword [0x76e098]
mov edx, dword [eax]
push 0x10000
push 0xb
push 1
push eax
call dword [edx + 0x94]
mov eax, dword [0x76e098]
mov ecx, dword [eax]
lea edx, [esp + 0x10]
push edx
push 0x11
jmp 0x405c13
mov eax, dword [0x76e098]
mov ecx, dword [eax]
push 0
push 0
push eax
call dword [ecx + 0x8c]
mov eax, dword [0x76e098]
mov edx, dword [eax]
lea ecx, [esi + 0x10]
push ecx
push 2
push eax
call dword [edx + 0x2c]
mov ecx, dword [esi + 0xc]
mov ecx, dword [ecx + edi*4]
mov eax, dword [0x76e098]
mov edx, dword [eax]
add ecx, 0x38
push ecx
push 1
push eax
call dword [edx + 0x2c]
mov edx, dword [esi + 0xc]
mov eax, dword [edx + edi*4]
jmp 0x405c66
mov eax, dword [0x76e098]
mov ecx, dword [eax]
push 2
push 0x18
push 0
push eax
call dword [ecx + 0x94]
mov eax, dword [0x76e098]
mov edx, dword [eax]
push 0x10000
push 0xb
push 0
push eax
call dword [edx + 0x94]
mov eax, dword [0x76e098]
mov ecx, dword [eax]
lea edx, [esp + 0x10]
push edx
push 0x10
push eax
call dword [ecx + 0x2c]
mov edx, dword [esi + 0xc]
mov edx, dword [edx + edi*4]
mov edx, dword [edx + 0x7c]
mov edx, dword [edx*4 + 0x76e134]
mov eax, dword [0x76e098]
mov ecx, dword [eax]
push edx
push 0
push eax
call dword [ecx + 0x8c]
mov eax, dword [0x76e098]
mov ecx, dword [eax]
lea edx, [esi + 0x10]
push edx
push 2
push eax
call dword [ecx + 0x2c]
mov edx, dword [esi + 0xc]
mov edx, dword [edx + edi*4]
mov eax, dword [0x76e098]
mov ecx, dword [eax]
add edx, 0x38
push edx
push 1
push eax
call dword [ecx + 0x2c]
mov eax, dword [esi + 0xc]
mov eax, dword [eax + edi*4]
mov ebx, dword [eax + 0x1c]
mov eax, dword [eax + 0x24]
mov ecx, dword [0x76e098]
mov edx, dword [ecx]
push 0
push ebx
push 0
push eax
push 4
push ecx
call dword [edx + 0x7c]
mov eax, dword [esi + 8]
inc edi
cmp edi, eax
jl 0x405a31
pop ebp
pop ebx
pop edi
pop esi
add esp, 0x40
ret