Function at 0x405f1f
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 0x405f30
mov edx, dword [esi + 0x18]
lea ecx, [esp]
call fcn.0040b7b1
push dword [0x4122f4]
mov ebx, dword [esp + 0xc]
add ebx, 0xa8
mov eax, ebx
call fcn.0040aeab
push dword [0x4122f4]
mov ebx, dword [esp + 0x14]
add ebx, 0xa8
mov eax, ebx
call fcn.0040aeab
pop eax
push dword [0x4122f4]
mov ebx, dword [esp + 0x18]
add ebx, 0x9d
mov eax, ebx
call fcn.0040aeab
pop eax
push dword [0x4122f4]
mov ebx, dword [esp + 0x14]
add ebx, 0xab
mov eax, ebx
call fcn.0040aeab
pop eax
push dword [0x4122f4]
mov ebx, dword [esp + 0x1c]
add ebx, 0x98
mov eax, ebx
call fcn.0040aeab
pop eax
push dword [0x4122f4]
mov ebx, dword [esp + 0x20]
add ebx, 0xa6
mov eax, ebx
call fcn.0040aeab
pop eax
push dword [0x4122f4]
mov ebx, dword [esp + 0x14]
add ebx, 0xa7
mov eax, ebx
call fcn.0040aeab
pop eax
push dword [0x4122f4]
mov ebx, dword [esp + 0x24]
add ebx, 0xa7
mov eax, ebx
call fcn.0040aeab
pop eax
push dword [0x4122f4]
mov ebx, dword [esp + 0x28]
add ebx, 0xa4
mov eax, ebx
call fcn.0040aeab
pop eax
push dword [0x4122f4]
mov ebx, dword [esp + 0x2c]
add ebx, 0x9a
mov eax, ebx
call fcn.0040aeab
pop eax
push dword [0x4122f4]
mov ebx, dword [esp + 0x30]
add ebx, 0xa3
mov eax, ebx
call fcn.0040aeab
pop eax
push dword [0x4122f4]
mov ebx, dword [esp + 0x10]
add ebx, 0xa0
mov eax, ebx
call fcn.0040aeab
pop eax
push dword [0x4122f4]
mov ebx, dword [esp + 0x28]
add ebx, 0x53
mov eax, ebx
call fcn.0040aeab
pop eax
push dword [0x4122f4]
mov ebx, dword [esp + 0x20]
add ebx, 0x5b
mov eax, ebx
call fcn.0040aeab
pop eax
push dword [0x4122f4]
mov ebx, dword [esp + 0x10]
add ebx, 0x5f
mov eax, ebx
call fcn.0040aeab
pop eax
push dword [0x4122f4]
mov ebx, dword [esp + 0x2c]
add ebx, 0x5b
mov eax, ebx
call fcn.0040aeab
pop eax
push dword [0x4122f4]
mov ebx, dword [esp + 0x14]
add ebx, 0x53
mov eax, ebx
call fcn.0040aeab
pop eax
push dword [0x4122f4]
mov ebx, dword [esp + 0x18]
add ebx, 0x9b
mov eax, ebx
call fcn.0040aeab
pop eax
push dword [0x4122f4]
mov ebx, dword [esp + 0x24]
add ebx, 0x96
mov eax, ebx
call fcn.0040aeab
pop eax
push dword [0x4122f4]
mov ebx, dword [esp + 0x1c]
add ebx, 0xa1
mov eax, ebx
call fcn.0040aeab
pop eax
push dword [0x4122f4]
mov ebx, dword [esp + 0x34]
add ebx, 0xa5
mov eax, ebx
call fcn.0040aeab
pop eax
push dword [0x4122f4]
mov ebx, dword [esp + 0x18]
add ebx, 0x9b
mov eax, ebx
call fcn.0040aeab
pop eax
push dword [0x4122f4]
mov ebx, dword [esp + 0x14]
add ebx, 0xa9
mov eax, ebx
call fcn.0040aeab
pop eax
push dword [0x4122f4]
mov ebx, dword [esp + 0x18]
add ebx, 0xa3
mov eax, ebx
call fcn.0040aeab
pop eax
push dword [0x4122f4]
mov ebx, dword [esp + 0x14]
add ebx, 0xa8
mov eax, ebx
call fcn.0040aeab
pop eax
push dword [0x4122f4]
mov ebx, dword [esp + 0x2c]
add ebx, 0x94
mov eax, ebx
call fcn.0040aeab
pop eax
push dword [0x4122f4]
mov ebx, dword [esp + 0x28]
add ebx, 0x95
mov eax, ebx
call fcn.0040aeab
pop eax
push dword [0x4122f4]
mov ebx, dword [esp + 0x24]
add ebx, 0x93
mov eax, ebx
call fcn.0040aeab
pop eax
push dword [0x4122f4]
mov ebx, dword [esp + 0x14]
add ebx, 0xa3
mov eax, ebx
call fcn.0040aeab
pop eax
lea ecx, [esp + 8]
pop edx
call fcn.0040b744
push dword [0x4122f4]
push 5
push 0xd
mov eax, dword [esp + 0x10]
call fcn.0040affd
lea ecx, [esp + 0x34]
pop edx
call fcn.0040b744
mov edx, 0x41224b
lea ecx, [esp + 4]
call fcn.0040b790
mov dword [esp + 0x34], 1
mov eax, dword [esp + 0x30]
call fcn.0040afe7
cmp eax, dword [esp + 0x34]
jl 0x40629f
push dword [0x4122f4]
push 1
push dword [esp + 0x3c]
mov eax, dword [esp + 0x3c]
call fcn.0040affd
lea ecx, [esp + 0x3c]
pop edx
call fcn.0040b744
mov edx, dword [esp + 4]
push dword [0x4122f4]
call fcn.0040b7f0
push dword [0x4122f4]
mov eax, dword [esp + 0x40]
call fcn.0040aea0
mov ebx, eax
add ebx, 0xffffffcf
mov eax, ebx
call fcn.0040aeab
pop eax
lea ecx, [esp + 8]
pop edx
call fcn.0040b744
inc dword [esp + 0x34]
jmp 0x406233
mov edx, dword [esp + 4]
lea ecx, [esp + 0x30]
call fcn.0040b790
push dword [esp + 0x30]
push dword [0x4152d0]
push 1
call fcn.0041015e
and eax, eax
je 0x4063be
mov dword [esp + 0x3c], 0
xor eax, eax
call fcn.004161c0
call fcn.0041026d
mov dword [esp + 0x40], eax
cmp dword [esp + 0x40], 0
je 0x4063aa
push dword [0x4122f4]
call fcn.00410122
lea ecx, [esp + 0x48]
pop edx
call fcn.0040b744
mov ebx, dword [esp + 0x40]
cmp ebx, 1
jne 0x4063aa
push dword [0x4122f4]
mov ebx, dword [esp + 0x50]
add ebx, 0x2e
mov eax, ebx
call fcn.0040aeab
push dword [0x4122f4]
mov ebx, dword [esp + 0x54]
add ebx, 0x65
mov eax, ebx
call fcn.0040aeab
pop eax
push dword [0x4122f4]
mov ebx, dword [esp + 0x54]
add ebx, 0x78
mov eax, ebx
call fcn.0040aeab
pop eax
push dword [0x4122f4]
mov ebx, dword [esp + 0x54]
add ebx, 0x65
mov eax, ebx
call fcn.0040aeab
pop eax
lea ecx, [esp + 0x4c]
pop edx
call fcn.0040b744
push dword [0x4122f4]
mov eax, dword [esp + 0x48]
call fcn.0040af62
inc dword [0x4122f4]
push dword [0x4122f4]
mov eax, dword [esp + 8]
call fcn.0040af62
mov edx, dword [esp + 0x50]
call fcn.0040b7f0
pop edx
pop ecx
mov dword [0x4122f4], ecx
call fcn.0040b828
je 0x4063aa
xor eax, eax
jmp 0x4063c0
mov ebx, dword [esp + 0x40]
cmp ebx, 0
jne 0x4062d0
mov eax, 1
jmp 0x4063c0
xor eax, eax
mov edx, dword [esp + 0x30]
call fcn.0040b810
mov edx, dword [esp]
call fcn.0040b810
mov edx, dword [esp + 0x48]
call fcn.0040b810
mov edx, dword [esp + 0x38]
call fcn.0040b810
mov edx, dword [esp + 4]
call fcn.0040b810
mov edx, dword [esp + 0x44]
call fcn.0040b810
add esp, 0x50
pop edi
pop esi
pop ebp
pop ecx
pop ebx
ret 4