Function at 0x405f2f
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 0x405f40
mov edx, dword [esi + 0x18]
lea ecx, [esp]
call fcn.0040b7c1
push dword [0x4122fc]
mov ebx, dword [esp + 0xc]
add ebx, 0xa8
mov eax, ebx
call fcn.0040aebb
push dword [0x4122fc]
mov ebx, dword [esp + 0x14]
add ebx, 0xa8
mov eax, ebx
call fcn.0040aebb
pop eax
push dword [0x4122fc]
mov ebx, dword [esp + 0x18]
add ebx, 0x9d
mov eax, ebx
call fcn.0040aebb
pop eax
push dword [0x4122fc]
mov ebx, dword [esp + 0x14]
add ebx, 0xab
mov eax, ebx
call fcn.0040aebb
pop eax
push dword [0x4122fc]
mov ebx, dword [esp + 0x1c]
add ebx, 0x98
mov eax, ebx
call fcn.0040aebb
pop eax
push dword [0x4122fc]
mov ebx, dword [esp + 0x20]
add ebx, 0xa6
mov eax, ebx
call fcn.0040aebb
pop eax
push dword [0x4122fc]
mov ebx, dword [esp + 0x14]
add ebx, 0xa7
mov eax, ebx
call fcn.0040aebb
pop eax
push dword [0x4122fc]
mov ebx, dword [esp + 0x24]
add ebx, 0xa7
mov eax, ebx
call fcn.0040aebb
pop eax
push dword [0x4122fc]
mov ebx, dword [esp + 0x28]
add ebx, 0xa4
mov eax, ebx
call fcn.0040aebb
pop eax
push dword [0x4122fc]
mov ebx, dword [esp + 0x2c]
add ebx, 0x9a
mov eax, ebx
call fcn.0040aebb
pop eax
push dword [0x4122fc]
mov ebx, dword [esp + 0x30]
add ebx, 0xa3
mov eax, ebx
call fcn.0040aebb
pop eax
push dword [0x4122fc]
mov ebx, dword [esp + 0x10]
add ebx, 0xa0
mov eax, ebx
call fcn.0040aebb
pop eax
push dword [0x4122fc]
mov ebx, dword [esp + 0x28]
add ebx, 0x53
mov eax, ebx
call fcn.0040aebb
pop eax
push dword [0x4122fc]
mov ebx, dword [esp + 0x20]
add ebx, 0x5b
mov eax, ebx
call fcn.0040aebb
pop eax
push dword [0x4122fc]
mov ebx, dword [esp + 0x10]
add ebx, 0x5f
mov eax, ebx
call fcn.0040aebb
pop eax
push dword [0x4122fc]
mov ebx, dword [esp + 0x2c]
add ebx, 0x5b
mov eax, ebx
call fcn.0040aebb
pop eax
push dword [0x4122fc]
mov ebx, dword [esp + 0x14]
add ebx, 0x53
mov eax, ebx
call fcn.0040aebb
pop eax
push dword [0x4122fc]
mov ebx, dword [esp + 0x18]
add ebx, 0x9b
mov eax, ebx
call fcn.0040aebb
pop eax
push dword [0x4122fc]
mov ebx, dword [esp + 0x24]
add ebx, 0x96
mov eax, ebx
call fcn.0040aebb
pop eax
push dword [0x4122fc]
mov ebx, dword [esp + 0x1c]
add ebx, 0xa1
mov eax, ebx
call fcn.0040aebb
pop eax
push dword [0x4122fc]
mov ebx, dword [esp + 0x34]
add ebx, 0xa5
mov eax, ebx
call fcn.0040aebb
pop eax
push dword [0x4122fc]
mov ebx, dword [esp + 0x18]
add ebx, 0x9b
mov eax, ebx
call fcn.0040aebb
pop eax
push dword [0x4122fc]
mov ebx, dword [esp + 0x14]
add ebx, 0xa9
mov eax, ebx
call fcn.0040aebb
pop eax
push dword [0x4122fc]
mov ebx, dword [esp + 0x18]
add ebx, 0xa3
mov eax, ebx
call fcn.0040aebb
pop eax
push dword [0x4122fc]
mov ebx, dword [esp + 0x14]
add ebx, 0xa8
mov eax, ebx
call fcn.0040aebb
pop eax
push dword [0x4122fc]
mov ebx, dword [esp + 0x2c]
add ebx, 0x94
mov eax, ebx
call fcn.0040aebb
pop eax
push dword [0x4122fc]
mov ebx, dword [esp + 0x28]
add ebx, 0x95
mov eax, ebx
call fcn.0040aebb
pop eax
push dword [0x4122fc]
mov ebx, dword [esp + 0x24]
add ebx, 0x93
mov eax, ebx
call fcn.0040aebb
pop eax
push dword [0x4122fc]
mov ebx, dword [esp + 0x14]
add ebx, 0xa3
mov eax, ebx
call fcn.0040aebb
pop eax
lea ecx, [esp + 8]
pop edx
call fcn.0040b754
push dword [0x4122fc]
push 5
push 0xd
mov eax, dword [esp + 0x10]
call fcn.0040b00d
lea ecx, [esp + 0x34]
pop edx
call fcn.0040b754
mov edx, 0x412255
lea ecx, [esp + 4]
call fcn.0040b7a0
mov dword [esp + 0x34], 1
mov eax, dword [esp + 0x30]
call fcn.0040aff7
cmp eax, dword [esp + 0x34]
jl 0x4062af
push dword [0x4122fc]
push 1
push dword [esp + 0x3c]
mov eax, dword [esp + 0x3c]
call fcn.0040b00d
lea ecx, [esp + 0x3c]
pop edx
call fcn.0040b754
mov edx, dword [esp + 4]
push dword [0x4122fc]
call fcn.0040b800
push dword [0x4122fc]
mov eax, dword [esp + 0x40]
call fcn.0040aeb0
mov ebx, eax
add ebx, 0xffffffcf
mov eax, ebx
call fcn.0040aebb
pop eax
lea ecx, [esp + 8]
pop edx
call fcn.0040b754
inc dword [esp + 0x34]
jmp 0x406243
mov edx, dword [esp + 4]
lea ecx, [esp + 0x30]
call fcn.0040b7a0
push dword [esp + 0x30]
push dword [0x4152d4]
push 1
call fcn.0041016e
and eax, eax
je 0x4063ce
mov dword [esp + 0x3c], 0
xor eax, eax
call fcn.004161c0
call fcn.0041027d
mov dword [esp + 0x40], eax
cmp dword [esp + 0x40], 0
je 0x4063ba
push dword [0x4122fc]
call fcn.00410132
lea ecx, [esp + 0x48]
pop edx
call fcn.0040b754
mov ebx, dword [esp + 0x40]
cmp ebx, 1
jne 0x4063ba
push dword [0x4122fc]
mov ebx, dword [esp + 0x50]
add ebx, 0x2e
mov eax, ebx
call fcn.0040aebb
push dword [0x4122fc]
mov ebx, dword [esp + 0x54]
add ebx, 0x65
mov eax, ebx
call fcn.0040aebb
pop eax
push dword [0x4122fc]
mov ebx, dword [esp + 0x54]
add ebx, 0x78
mov eax, ebx
call fcn.0040aebb
pop eax
push dword [0x4122fc]
mov ebx, dword [esp + 0x54]
add ebx, 0x65
mov eax, ebx
call fcn.0040aebb
pop eax
lea ecx, [esp + 0x4c]
pop edx
call fcn.0040b754
push dword [0x4122fc]
mov eax, dword [esp + 0x48]
call fcn.0040af72
inc dword [0x4122fc]
push dword [0x4122fc]
mov eax, dword [esp + 8]
call fcn.0040af72
mov edx, dword [esp + 0x50]
call fcn.0040b800
pop edx
pop ecx
mov dword [0x4122fc], ecx
call fcn.0040b838
je 0x4063ba
xor eax, eax
jmp 0x4063d0
mov ebx, dword [esp + 0x40]
cmp ebx, 0
jne 0x4062e0
mov eax, 1
jmp 0x4063d0
xor eax, eax
mov edx, dword [esp + 0x30]
call fcn.0040b820
mov edx, dword [esp]
call fcn.0040b820
mov edx, dword [esp + 0x48]
call fcn.0040b820
mov edx, dword [esp + 0x38]
call fcn.0040b820
mov edx, dword [esp + 4]
call fcn.0040b820
mov edx, dword [esp + 0x44]
call fcn.0040b820
add esp, 0x50
pop edi
pop esi
pop ebp
pop ecx
pop ebx
ret 4