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

Disassembly:
push ebx
push ecx
push ebp
push esi
push edi
mov esi, esp
sub esp, 0x50
mov eax, esp
mov edx, eax
add edx, 0x50
mov dword [eax], 0
add eax, 4
cmp eax, edx
jne 0x405f4e
mov edx, dword [esi + 0x18]
lea ecx, [esp]
call fcn.0040bd81
push dword [0x412380]
mov ebx, dword [esp + 0xc]
add ebx, 0xa8
mov eax, ebx
call fcn.0040b47b
push dword [0x412380]
mov ebx, dword [esp + 0x14]
add ebx, 0xa8
mov eax, ebx
call fcn.0040b47b
pop eax
push dword [0x412380]
mov ebx, dword [esp + 0x18]
add ebx, 0x9d
mov eax, ebx
call fcn.0040b47b
pop eax
push dword [0x412380]
mov ebx, dword [esp + 0x14]
add ebx, 0xab
mov eax, ebx
call fcn.0040b47b
pop eax
push dword [0x412380]
mov ebx, dword [esp + 0x1c]
add ebx, 0x98
mov eax, ebx
call fcn.0040b47b
pop eax
push dword [0x412380]
mov ebx, dword [esp + 0x20]
add ebx, 0xa6
mov eax, ebx
call fcn.0040b47b
pop eax
push dword [0x412380]
mov ebx, dword [esp + 0x14]
add ebx, 0xa7
mov eax, ebx
call fcn.0040b47b
pop eax
push dword [0x412380]
mov ebx, dword [esp + 0x24]
add ebx, 0xa7
mov eax, ebx
call fcn.0040b47b
pop eax
push dword [0x412380]
mov ebx, dword [esp + 0x28]
add ebx, 0xa4
mov eax, ebx
call fcn.0040b47b
pop eax
push dword [0x412380]
mov ebx, dword [esp + 0x2c]
add ebx, 0x9a
mov eax, ebx
call fcn.0040b47b
pop eax
push dword [0x412380]
mov ebx, dword [esp + 0x30]
add ebx, 0xa3
mov eax, ebx
call fcn.0040b47b
pop eax
push dword [0x412380]
mov ebx, dword [esp + 0x10]
add ebx, 0xa0
mov eax, ebx
call fcn.0040b47b
pop eax
push dword [0x412380]
mov ebx, dword [esp + 0x28]
add ebx, 0x53
mov eax, ebx
call fcn.0040b47b
pop eax
push dword [0x412380]
mov ebx, dword [esp + 0x20]
add ebx, 0x5b
mov eax, ebx
call fcn.0040b47b
pop eax
push dword [0x412380]
mov ebx, dword [esp + 0x10]
add ebx, 0x5f
mov eax, ebx
call fcn.0040b47b
pop eax
push dword [0x412380]
mov ebx, dword [esp + 0x2c]
add ebx, 0x5b
mov eax, ebx
call fcn.0040b47b
pop eax
push dword [0x412380]
mov ebx, dword [esp + 0x14]
add ebx, 0x53
mov eax, ebx
call fcn.0040b47b
pop eax
push dword [0x412380]
mov ebx, dword [esp + 0x18]
add ebx, 0x9b
mov eax, ebx
call fcn.0040b47b
pop eax
push dword [0x412380]
mov ebx, dword [esp + 0x24]
add ebx, 0x96
mov eax, ebx
call fcn.0040b47b
pop eax
push dword [0x412380]
mov ebx, dword [esp + 0x1c]
add ebx, 0xa1
mov eax, ebx
call fcn.0040b47b
pop eax
push dword [0x412380]
mov ebx, dword [esp + 0x34]
add ebx, 0xa5
mov eax, ebx
call fcn.0040b47b
pop eax
push dword [0x412380]
mov ebx, dword [esp + 0x18]
add ebx, 0x9b
mov eax, ebx
call fcn.0040b47b
pop eax
push dword [0x412380]
mov ebx, dword [esp + 0x14]
add ebx, 0xa9
mov eax, ebx
call fcn.0040b47b
pop eax
push dword [0x412380]
mov ebx, dword [esp + 0x18]
add ebx, 0xa3
mov eax, ebx
call fcn.0040b47b
pop eax
push dword [0x412380]
mov ebx, dword [esp + 0x14]
add ebx, 0xa8
mov eax, ebx
call fcn.0040b47b
pop eax
push dword [0x412380]
mov ebx, dword [esp + 0x2c]
add ebx, 0x94
mov eax, ebx
call fcn.0040b47b
pop eax
push dword [0x412380]
mov ebx, dword [esp + 0x28]
add ebx, 0x95
mov eax, ebx
call fcn.0040b47b
pop eax
push dword [0x412380]
mov ebx, dword [esp + 0x24]
add ebx, 0x93
mov eax, ebx
call fcn.0040b47b
pop eax
push dword [0x412380]
mov ebx, dword [esp + 0x14]
add ebx, 0xa3
mov eax, ebx
call fcn.0040b47b
pop eax
lea ecx, [esp + 8]
pop edx
call fcn.0040bd14
push dword [0x412380]
push 5
push 0xd
mov eax, dword [esp + 0x10]
call fcn.0040b5cd
lea ecx, [esp + 0x34]
pop edx
call fcn.0040bd14
mov edx, 0x4122e1
lea ecx, [esp + 4]
call fcn.0040bd60
mov dword [esp + 0x34], 1
mov eax, dword [esp + 0x30]
call fcn.0040b5b7
cmp eax, dword [esp + 0x34]
jl 0x4062bd
push dword [0x412380]
push 1
push dword [esp + 0x3c]
mov eax, dword [esp + 0x3c]
call fcn.0040b5cd
lea ecx, [esp + 0x3c]
pop edx
call fcn.0040bd14
mov edx, dword [esp + 4]
push dword [0x412380]
call fcn.0040bdc0
push dword [0x412380]
mov eax, dword [esp + 0x40]
call fcn.0040b470
mov ebx, eax
add ebx, 0xffffffcf
mov eax, ebx
call fcn.0040b47b
pop eax
lea ecx, [esp + 8]
pop edx
call fcn.0040bd14
inc dword [esp + 0x34]
jmp 0x406251
mov edx, dword [esp + 4]
lea ecx, [esp + 0x30]
call fcn.0040bd60
push dword [esp + 0x30]
push dword [0x41538c]
push 1
call fcn.0041072e
and eax, eax
je 0x4063dc
mov dword [esp + 0x3c], 0
xor eax, eax
call fcn.004171c0
call fcn.0041083d
mov dword [esp + 0x40], eax
cmp dword [esp + 0x40], 0
je 0x4063c8
push dword [0x412380]
call fcn.004106f2
lea ecx, [esp + 0x48]
pop edx
call fcn.0040bd14
mov ebx, dword [esp + 0x40]
cmp ebx, 1
jne 0x4063c8
push dword [0x412380]
mov ebx, dword [esp + 0x50]
add ebx, 0x2e
mov eax, ebx
call fcn.0040b47b
push dword [0x412380]
mov ebx, dword [esp + 0x54]
add ebx, 0x65
mov eax, ebx
call fcn.0040b47b
pop eax
push dword [0x412380]
mov ebx, dword [esp + 0x54]
add ebx, 0x78
mov eax, ebx
call fcn.0040b47b
pop eax
push dword [0x412380]
mov ebx, dword [esp + 0x54]
add ebx, 0x65
mov eax, ebx
call fcn.0040b47b
pop eax
lea ecx, [esp + 0x4c]
pop edx
call fcn.0040bd14
push dword [0x412380]
mov eax, dword [esp + 0x48]
call fcn.0040b532
inc dword [0x412380]
push dword [0x412380]
mov eax, dword [esp + 8]
call fcn.0040b532
mov edx, dword [esp + 0x50]
call fcn.0040bdc0
pop edx
pop ecx
mov dword [0x412380], ecx
call fcn.0040bdf8
je 0x4063c8
xor eax, eax
jmp 0x4063de
mov ebx, dword [esp + 0x40]
cmp ebx, 0
jne 0x4062ee
mov eax, 1
jmp 0x4063de
xor eax, eax
mov edx, dword [esp + 0x30]
call fcn.0040bde0
mov edx, dword [esp]
call fcn.0040bde0
mov edx, dword [esp + 0x48]
call fcn.0040bde0
mov edx, dword [esp + 0x38]
call fcn.0040bde0
mov edx, dword [esp + 4]
call fcn.0040bde0
mov edx, dword [esp + 0x44]
call fcn.0040bde0
add esp, 0x50
pop edi
pop esi
pop ebp
pop ecx
pop ebx
ret 4