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

Disassembly:
sub esp, 0x4c
push ebx
mov ebx, dword [esp + 0x78]
xor eax, eax
push ebp
push esi
push edi
mov edi, dword [esp + 0x80]
inc eax
mov dword [esp + 0x28], edx
xor edx, edx
add edi, eax
mov dword [esp + 0x1c], ecx
mov ebp, edi
mov dword [esp + 0x2c], edx
adc ebx, edx
mov dword [esp + 0x54], edi
sub ebp, dword [esp + 0x60]
mov ecx, ebx
mov dword [esp + 0x58], ebx
sbb ecx, dword [esp + 0x64]
add ebp, eax
adc ecx, edx
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x78]
mov esi, ecx
neg esi
mov dword [esp + 0x18], ecx
mov ecx, esi
mov dword [esp + 0x30], esi
call fcn.00428be0
mov dword [esp + 0x38], eax
mov ecx, esi
mov dword [esp + 0x34], edx
mov eax, edi
mov edx, ebx
call fcn.00424230
mov edx, dword [esp + 0x34]
mov ecx, eax
mov eax, dword [esp + 0x38]
add eax, 0xffffffff
mov dword [esp + 0x20], ecx
mov esi, eax
mov dword [esp + 0x4c], eax
adc edx, 0xffffffff
lea eax, [esp + 0x24]
mov dword [esp + 0x50], edx
and esi, edi
and edx, ebx
mov dword [esp + 0x10], edx
mov edx, dword [esp + 0x18]
push eax
lea eax, [esp + 0x40]
push eax
lea edx, [edx + 0x40]
call fcn.0040bf98
mov eax, dword [esp + 0x2c]
pop ecx
pop ecx
mov ecx, dword [esp + 0x28]
push 0xa
pop edx
mov dword [ecx], eax
mov ecx, dword [esp + 0x1c]
and dword [ecx], 0
test eax, eax
jle 0x40c11d
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x24], ecx
mov eax, dword [esp + 0x20]
xor edx, edx
div ecx
mov dword [esp + 0x20], edx
lea edx, [eax + 0x30]
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax]
mov eax, dword [esp + 0x90]
mov byte [eax + ecx], dl
xor edx, edx
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x30]
inc dword [eax]
mov eax, dword [eax]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x28]
dec dword [eax]
mov eax, dword [eax]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x20]
call fcn.00428be0
add eax, esi
mov ecx, edx
mov dword [esp + 0x44], eax
adc ecx, dword [esp + 0x10]
mov dword [esp + 0x40], ecx
cmp ecx, dword [esp + 0x14]
jb 0x40c220
ja 0x40c0fe
cmp eax, ebp
jb 0x40c220
mov eax, dword [esp + 0x24]
xor edx, edx
push 0xa
pop ecx
div ecx
cmp dword [esp + 0x3c], 0
mov ecx, eax
mov dword [esp + 0x24], ecx
jg 0x40c094
push 0xa
pop edx
neg dword [esp + 0x18]
xor ebx, ebx
mov edi, dword [esp + 0x14]
inc ebx
mov ecx, dword [esp + 0x10]
push 0
push edx
push ecx
push esi
call fcn.00413aa0
push 0
push 0xa
mov esi, eax
mov dword [esp + 0x18], edx
mov edx, dword [esp + 0x34]
pop eax
push eax
push edx
push ebx
mov dword [esp + 0x58], esi
call fcn.00413aa0
push 0
push 0xa
mov ebx, eax
mov dword [esp + 0x34], edx
pop eax
push eax
push edi
push ebp
call fcn.00413aa0
mov ecx, dword [esp + 0x18]
mov ebp, eax
mov edi, edx
mov eax, esi
mov edx, dword [esp + 0x10]
call fcn.00424230
mov edx, dword [esp + 0x1c]
add al, 0x30
mov ecx, dword [esp + 0x90]
push 0xa
mov esi, dword [edx]
mov byte [ecx + esi], al
inc dword [edx]
mov eax, dword [edx]
mov esi, dword [esp + 0x4c]
mov ecx, dword [esp + 0x14]
and esi, dword [esp + 0x50]
and ecx, dword [esp + 0x54]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x2c]
pop edx
dec dword [eax]
cmp ecx, edi
ja 0x40c12c
jb 0x40c1bc
cmp esi, ebp
jae 0x40c12c
push dword [esp + 0x94]
mov edx, dword [esp + 0x30]
push dword [esp + 0x94]
mov dword [esp + 0x58], ebx
mov eax, dword [esp + 0x58]
mov ebx, dword [esp + 0x60]
push edx
push eax
push dword [esp + 0x44]
mov dword [esp + 0x28], edi
push dword [esp + 0x4c]
mov edi, dword [esp + 0x6c]
sub edi, dword [esp + 0x88]
push ecx
sbb ebx, dword [esp + 0x90]
push esi
push dword [esp + 0x34]
push ebp
push edx
push eax
push ebx
push edi
call fcn.00413aa0
mov ecx, dword [esp + 0x6c]
push edx
push eax
call fcn.0040bd06
add esp, 0x30
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4c
ret
push dword [esp + 0x94]
sub edi, dword [esp + 0x74]
push dword [esp + 0x94]
sbb ebx, dword [esp + 0x7c]
xor edx, edx
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x38]
push 0
push 1
call fcn.00428be0
mov ecx, dword [esp + 0x58]
push edx
push eax
push dword [esp + 0x58]
push dword [esp + 0x60]
push dword [esp + 0x34]
push ebp
push ebx
push edi
jmp 0x40c210