Function at 0x405e9d
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 0x405eae
mov edx, dword [esi + 0x18]
lea ecx, [esp]
call fcn.0040bcd1
push dword [0x4122e8]
mov ebx, dword [esp + 0xc]
add ebx, 0xa8
mov eax, ebx
call fcn.0040b3cb
push dword [0x4122e8]
mov ebx, dword [esp + 0x14]
add ebx, 0xa8
mov eax, ebx
call fcn.0040b3cb
pop eax
push dword [0x4122e8]
mov ebx, dword [esp + 0x18]
add ebx, 0x9d
mov eax, ebx
call fcn.0040b3cb
pop eax
push dword [0x4122e8]
mov ebx, dword [esp + 0x14]
add ebx, 0xab
mov eax, ebx
call fcn.0040b3cb
pop eax
push dword [0x4122e8]
mov ebx, dword [esp + 0x1c]
add ebx, 0x98
mov eax, ebx
call fcn.0040b3cb
pop eax
push dword [0x4122e8]
mov ebx, dword [esp + 0x20]
add ebx, 0xa6
mov eax, ebx
call fcn.0040b3cb
pop eax
push dword [0x4122e8]
mov ebx, dword [esp + 0x14]
add ebx, 0xa7
mov eax, ebx
call fcn.0040b3cb
pop eax
push dword [0x4122e8]
mov ebx, dword [esp + 0x24]
add ebx, 0xa7
mov eax, ebx
call fcn.0040b3cb
pop eax
push dword [0x4122e8]
mov ebx, dword [esp + 0x28]
add ebx, 0xa4
mov eax, ebx
call fcn.0040b3cb
pop eax
push dword [0x4122e8]
mov ebx, dword [esp + 0x2c]
add ebx, 0x9a
mov eax, ebx
call fcn.0040b3cb
pop eax
push dword [0x4122e8]
mov ebx, dword [esp + 0x30]
add ebx, 0xa3
mov eax, ebx
call fcn.0040b3cb
pop eax
push dword [0x4122e8]
mov ebx, dword [esp + 0x10]
add ebx, 0xa0
mov eax, ebx
call fcn.0040b3cb
pop eax
push dword [0x4122e8]
mov ebx, dword [esp + 0x28]
add ebx, 0x53
mov eax, ebx
call fcn.0040b3cb
pop eax
push dword [0x4122e8]
mov ebx, dword [esp + 0x20]
add ebx, 0x5b
mov eax, ebx
call fcn.0040b3cb
pop eax
push dword [0x4122e8]
mov ebx, dword [esp + 0x10]
add ebx, 0x5f
mov eax, ebx
call fcn.0040b3cb
pop eax
push dword [0x4122e8]
mov ebx, dword [esp + 0x2c]
add ebx, 0x5b
mov eax, ebx
call fcn.0040b3cb
pop eax
push dword [0x4122e8]
mov ebx, dword [esp + 0x14]
add ebx, 0x53
mov eax, ebx
call fcn.0040b3cb
pop eax
push dword [0x4122e8]
mov ebx, dword [esp + 0x18]
add ebx, 0x9b
mov eax, ebx
call fcn.0040b3cb
pop eax
push dword [0x4122e8]
mov ebx, dword [esp + 0x24]
add ebx, 0x96
mov eax, ebx
call fcn.0040b3cb
pop eax
push dword [0x4122e8]
mov ebx, dword [esp + 0x1c]
add ebx, 0xa1
mov eax, ebx
call fcn.0040b3cb
pop eax
push dword [0x4122e8]
mov ebx, dword [esp + 0x34]
add ebx, 0xa5
mov eax, ebx
call fcn.0040b3cb
pop eax
push dword [0x4122e8]
mov ebx, dword [esp + 0x18]
add ebx, 0x9b
mov eax, ebx
call fcn.0040b3cb
pop eax
push dword [0x4122e8]
mov ebx, dword [esp + 0x14]
add ebx, 0xa9
mov eax, ebx
call fcn.0040b3cb
pop eax
push dword [0x4122e8]
mov ebx, dword [esp + 0x18]
add ebx, 0xa3
mov eax, ebx
call fcn.0040b3cb
pop eax
push dword [0x4122e8]
mov ebx, dword [esp + 0x14]
add ebx, 0xa8
mov eax, ebx
call fcn.0040b3cb
pop eax
push dword [0x4122e8]
mov ebx, dword [esp + 0x2c]
add ebx, 0x94
mov eax, ebx
call fcn.0040b3cb
pop eax
push dword [0x4122e8]
mov ebx, dword [esp + 0x28]
add ebx, 0x95
mov eax, ebx
call fcn.0040b3cb
pop eax
push dword [0x4122e8]
mov ebx, dword [esp + 0x24]
add ebx, 0x93
mov eax, ebx
call fcn.0040b3cb
pop eax
push dword [0x4122e8]
mov ebx, dword [esp + 0x14]
add ebx, 0xa3
mov eax, ebx
call fcn.0040b3cb
pop eax
lea ecx, [esp + 8]
pop edx
call fcn.0040bc64
push dword [0x4122e8]
push 5
push 0xd
mov eax, dword [esp + 0x10]
call fcn.0040b51d
lea ecx, [esp + 0x34]
pop edx
call fcn.0040bc64
mov edx, 0x41224b
lea ecx, [esp + 4]
call fcn.0040bcb0
mov dword [esp + 0x34], 1
mov eax, dword [esp + 0x30]
call fcn.0040b507
cmp eax, dword [esp + 0x34]
jl 0x40621d
push dword [0x4122e8]
push 1
push dword [esp + 0x3c]
mov eax, dword [esp + 0x3c]
call fcn.0040b51d
lea ecx, [esp + 0x3c]
pop edx
call fcn.0040bc64
mov edx, dword [esp + 4]
push dword [0x4122e8]
call fcn.0040bd10
push dword [0x4122e8]
mov eax, dword [esp + 0x40]
call fcn.0040b3c0
mov ebx, eax
add ebx, 0xffffffcf
mov eax, ebx
call fcn.0040b3cb
pop eax
lea ecx, [esp + 8]
pop edx
call fcn.0040bc64
inc dword [esp + 0x34]
jmp 0x4061b1
mov edx, dword [esp + 4]
lea ecx, [esp + 0x30]
call fcn.0040bcb0
push dword [esp + 0x30]
push dword [0x4152ec]
push 1
call fcn.0041067e
and eax, eax
je 0x40633c
mov dword [esp + 0x3c], 0
xor eax, eax
call fcn.004161c0
call fcn.0041078d
mov dword [esp + 0x40], eax
cmp dword [esp + 0x40], 0
je 0x406328
push dword [0x4122e8]
call fcn.00410642
lea ecx, [esp + 0x48]
pop edx
call fcn.0040bc64
mov ebx, dword [esp + 0x40]
cmp ebx, 1
jne 0x406328
push dword [0x4122e8]
mov ebx, dword [esp + 0x50]
add ebx, 0x2e
mov eax, ebx
call fcn.0040b3cb
push dword [0x4122e8]
mov ebx, dword [esp + 0x54]
add ebx, 0x65
mov eax, ebx
call fcn.0040b3cb
pop eax
push dword [0x4122e8]
mov ebx, dword [esp + 0x54]
add ebx, 0x78
mov eax, ebx
call fcn.0040b3cb
pop eax
push dword [0x4122e8]
mov ebx, dword [esp + 0x54]
add ebx, 0x65
mov eax, ebx
call fcn.0040b3cb
pop eax
lea ecx, [esp + 0x4c]
pop edx
call fcn.0040bc64
push dword [0x4122e8]
mov eax, dword [esp + 0x48]
call fcn.0040b482
inc dword [0x4122e8]
push dword [0x4122e8]
mov eax, dword [esp + 8]
call fcn.0040b482
mov edx, dword [esp + 0x50]
call fcn.0040bd10
pop edx
pop ecx
mov dword [0x4122e8], ecx
call fcn.0040bd48
je 0x406328
xor eax, eax
jmp 0x40633e
mov ebx, dword [esp + 0x40]
cmp ebx, 0
jne 0x40624e
mov eax, 1
jmp 0x40633e
xor eax, eax
mov edx, dword [esp + 0x30]
call fcn.0040bd30
mov edx, dword [esp]
call fcn.0040bd30
mov edx, dword [esp + 0x48]
call fcn.0040bd30
mov edx, dword [esp + 0x38]
call fcn.0040bd30
mov edx, dword [esp + 4]
call fcn.0040bd30
mov edx, dword [esp + 0x44]
call fcn.0040bd30
add esp, 0x50
pop edi
pop esi
pop ebp
pop ecx
pop ebx
ret 4