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.0040b7d1
push dword [0x4122fc]
mov ebx, dword [esp + 0xc]
add ebx, 0xa8
mov eax, ebx
call fcn.0040aecb
push dword [0x4122fc]
mov ebx, dword [esp + 0x14]
add ebx, 0xa8
mov eax, ebx
call fcn.0040aecb
pop eax
push dword [0x4122fc]
mov ebx, dword [esp + 0x18]
add ebx, 0x9d
mov eax, ebx
call fcn.0040aecb
pop eax
push dword [0x4122fc]
mov ebx, dword [esp + 0x14]
add ebx, 0xab
mov eax, ebx
call fcn.0040aecb
pop eax
push dword [0x4122fc]
mov ebx, dword [esp + 0x1c]
add ebx, 0x98
mov eax, ebx
call fcn.0040aecb
pop eax
push dword [0x4122fc]
mov ebx, dword [esp + 0x20]
add ebx, 0xa6
mov eax, ebx
call fcn.0040aecb
pop eax
push dword [0x4122fc]
mov ebx, dword [esp + 0x14]
add ebx, 0xa7
mov eax, ebx
call fcn.0040aecb
pop eax
push dword [0x4122fc]
mov ebx, dword [esp + 0x24]
add ebx, 0xa7
mov eax, ebx
call fcn.0040aecb
pop eax
push dword [0x4122fc]
mov ebx, dword [esp + 0x28]
add ebx, 0xa4
mov eax, ebx
call fcn.0040aecb
pop eax
push dword [0x4122fc]
mov ebx, dword [esp + 0x2c]
add ebx, 0x9a
mov eax, ebx
call fcn.0040aecb
pop eax
push dword [0x4122fc]
mov ebx, dword [esp + 0x30]
add ebx, 0xa3
mov eax, ebx
call fcn.0040aecb
pop eax
push dword [0x4122fc]
mov ebx, dword [esp + 0x10]
add ebx, 0xa0
mov eax, ebx
call fcn.0040aecb
pop eax
push dword [0x4122fc]
mov ebx, dword [esp + 0x28]
add ebx, 0x53
mov eax, ebx
call fcn.0040aecb
pop eax
push dword [0x4122fc]
mov ebx, dword [esp + 0x20]
add ebx, 0x5b
mov eax, ebx
call fcn.0040aecb
pop eax
push dword [0x4122fc]
mov ebx, dword [esp + 0x10]
add ebx, 0x5f
mov eax, ebx
call fcn.0040aecb
pop eax
push dword [0x4122fc]
mov ebx, dword [esp + 0x2c]
add ebx, 0x5b
mov eax, ebx
call fcn.0040aecb
pop eax
push dword [0x4122fc]
mov ebx, dword [esp + 0x14]
add ebx, 0x53
mov eax, ebx
call fcn.0040aecb
pop eax
push dword [0x4122fc]
mov ebx, dword [esp + 0x18]
add ebx, 0x9b
mov eax, ebx
call fcn.0040aecb
pop eax
push dword [0x4122fc]
mov ebx, dword [esp + 0x24]
add ebx, 0x96
mov eax, ebx
call fcn.0040aecb
pop eax
push dword [0x4122fc]
mov ebx, dword [esp + 0x1c]
add ebx, 0xa1
mov eax, ebx
call fcn.0040aecb
pop eax
push dword [0x4122fc]
mov ebx, dword [esp + 0x34]
add ebx, 0xa5
mov eax, ebx
call fcn.0040aecb
pop eax
push dword [0x4122fc]
mov ebx, dword [esp + 0x18]
add ebx, 0x9b
mov eax, ebx
call fcn.0040aecb
pop eax
push dword [0x4122fc]
mov ebx, dword [esp + 0x14]
add ebx, 0xa9
mov eax, ebx
call fcn.0040aecb
pop eax
push dword [0x4122fc]
mov ebx, dword [esp + 0x18]
add ebx, 0xa3
mov eax, ebx
call fcn.0040aecb
pop eax
push dword [0x4122fc]
mov ebx, dword [esp + 0x14]
add ebx, 0xa8
mov eax, ebx
call fcn.0040aecb
pop eax
push dword [0x4122fc]
mov ebx, dword [esp + 0x2c]
add ebx, 0x94
mov eax, ebx
call fcn.0040aecb
pop eax
push dword [0x4122fc]
mov ebx, dword [esp + 0x28]
add ebx, 0x95
mov eax, ebx
call fcn.0040aecb
pop eax
push dword [0x4122fc]
mov ebx, dword [esp + 0x24]
add ebx, 0x93
mov eax, ebx
call fcn.0040aecb
pop eax
push dword [0x4122fc]
mov ebx, dword [esp + 0x14]
add ebx, 0xa3
mov eax, ebx
call fcn.0040aecb
pop eax
lea ecx, [esp + 8]
pop edx
call fcn.0040b764
push dword [0x4122fc]
push 5
push 0xd
mov eax, dword [esp + 0x10]
call fcn.0040b01d
lea ecx, [esp + 0x34]
pop edx
call fcn.0040b764
mov edx, 0x41224b
lea ecx, [esp + 4]
call fcn.0040b7b0
mov dword [esp + 0x34], 1
mov eax, dword [esp + 0x30]
call fcn.0040b007
cmp eax, dword [esp + 0x34]
jl 0x40621d
push dword [0x4122fc]
push 1
push dword [esp + 0x3c]
mov eax, dword [esp + 0x3c]
call fcn.0040b01d
lea ecx, [esp + 0x3c]
pop edx
call fcn.0040b764
mov edx, dword [esp + 4]
push dword [0x4122fc]
call fcn.0040b810
push dword [0x4122fc]
mov eax, dword [esp + 0x40]
call fcn.0040aec0
mov ebx, eax
add ebx, 0xffffffcf
mov eax, ebx
call fcn.0040aecb
pop eax
lea ecx, [esp + 8]
pop edx
call fcn.0040b764
inc dword [esp + 0x34]
jmp 0x4061b1
mov edx, dword [esp + 4]
lea ecx, [esp + 0x30]
call fcn.0040b7b0
push dword [esp + 0x30]
push dword [0x4152f0]
push 1
call fcn.0041017e
and eax, eax
je 0x40633c
mov dword [esp + 0x3c], 0
xor eax, eax
call fcn.004161c0
call fcn.0041028d
mov dword [esp + 0x40], eax
cmp dword [esp + 0x40], 0
je 0x406328
push dword [0x4122fc]
call fcn.00410142
lea ecx, [esp + 0x48]
pop edx
call fcn.0040b764
mov ebx, dword [esp + 0x40]
cmp ebx, 1
jne 0x406328
push dword [0x4122fc]
mov ebx, dword [esp + 0x50]
add ebx, 0x2e
mov eax, ebx
call fcn.0040aecb
push dword [0x4122fc]
mov ebx, dword [esp + 0x54]
add ebx, 0x65
mov eax, ebx
call fcn.0040aecb
pop eax
push dword [0x4122fc]
mov ebx, dword [esp + 0x54]
add ebx, 0x78
mov eax, ebx
call fcn.0040aecb
pop eax
push dword [0x4122fc]
mov ebx, dword [esp + 0x54]
add ebx, 0x65
mov eax, ebx
call fcn.0040aecb
pop eax
lea ecx, [esp + 0x4c]
pop edx
call fcn.0040b764
push dword [0x4122fc]
mov eax, dword [esp + 0x48]
call fcn.0040af82
inc dword [0x4122fc]
push dword [0x4122fc]
mov eax, dword [esp + 8]
call fcn.0040af82
mov edx, dword [esp + 0x50]
call fcn.0040b810
pop edx
pop ecx
mov dword [0x4122fc], ecx
call fcn.0040b848
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.0040b830
mov edx, dword [esp]
call fcn.0040b830
mov edx, dword [esp + 0x48]
call fcn.0040b830
mov edx, dword [esp + 0x38]
call fcn.0040b830
mov edx, dword [esp + 4]
call fcn.0040b830
mov edx, dword [esp + 0x44]
call fcn.0040b830
add esp, 0x50
pop edi
pop esi
pop ebp
pop ecx
pop ebx
ret 4