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

Disassembly:
sub esp, 0x5c
push ebp
push edi
push esi
push ebx
mov esi, dword [esp + 0x78]
mov edi, dword [esp + 0x7c]
mov eax, dword [esp + 0x80]
mov edx, dword [esp + 0x84]
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], edx
mov dword [esp + 0x34], 0xa
mov dword [esp + 0x30], 0
cmp dword [0x432a08], 0
jne 0x404bf8
mov dword [esp + 0x4c], 0
mov esi, esi
mov edx, dword [esp + 0x70]
mov eax, dword [edx + 8]
test ah, 0x10
jne 0x404410
or ah, 0x10
mov dword [edx + 8], eax
mov eax, dword [edx + 0x1c]
movzx ebx, byte [eax]
jmp 0x404422
add esp, 0xfffffff4
mov ecx, dword [esp + 0x7c]
push ecx
call sym.__p_internal_getc
mov ebx, eax
add esp, 0x10
cmp dword [0x432a08], 0
jne 0x404495
mov eax, dword [esp + 0x70]
test byte [eax + 4], 0xb
jne 0x404450
add esp, 0xfffffffc
push 0
mov edx, dword [esp + 0x78]
push edx
push 0x1c4
call sym.__p_io_error_file
add esp, 0x10
jmp 0x404495
mov ecx, dword [esp + 0x70]
test byte [ecx + 8], 4
je 0x40449a
mov eax, dword [esp + 0x70]
test byte [eax + 0x34], 2
je 0x404478
add esp, 0xfffffff8
push 0
push 0x226
call sym.__p_io_error
jmp 0x40448c
add esp, 0xfffffffc
push 0
mov edx, dword [esp + 0x78]
push edx
push 0x1c6
call sym.__p_io_error_file
xor eax, eax
add esp, 0x10
test eax, eax
jne 0x40449a
mov ebx, 0xffffffff
cmp dword [0x432a08], 0
jne 0x404bf8
cmp ebx, 0x20
je 0x4043f4
cmp ebx, 9
je 0x4043f4
cmp ebx, 0xa
je 0x4043f4
lea ecx, [esp + 0x5c]
lea eax, [ebx - 0x30]
cmp eax, 9
ja 0x4044d4
mov dword [esp + 0x5c], eax
jmp 0x404504
lea eax, [ebx - 0x41]
cmp eax, 0x19
ja 0x4044e8
lea eax, [ebx - 0x37]
mov dword [esp + 0x5c], eax
jmp 0x404504
lea eax, [ebx - 0x61]
cmp eax, 0x19
ja 0x4044fc
lea edx, [ebx - 0x57]
mov dword [esp + 0x5c], edx
jmp 0x404504
mov dword [esp + 0x5c], 0xa
cmp dword [ecx], 9
jle 0x404534
cmp ebx, 0x2b
je 0x404542
cmp ebx, 0x2d
je 0x404534
cmp ebx, 0x24
jne 0x404522
mov ecx, dword [esp + 0x70]
test byte [ecx + 0x34], 8
jne 0x404534
add esp, 0xfffffff8
push 0
push 0x228
jmp 0x404c3c
cmp ebx, 0x2b
je 0x404542
cmp ebx, 0x2d
jne 0x40466c
cmp ebx, 0x2d
jne 0x40454f
mov dword [esp + 0x4c], 1
mov ebx, dword [esp + 0x70]
mov eax, dword [ebx + 8]
test ah, 0x10
jne 0x40456c
or ah, 0x10
mov dword [ebx + 8], eax
mov eax, dword [ebx + 0x1c]
movzx ebx, byte [eax]
jmp 0x40457e
add esp, 0xfffffff4
mov eax, dword [esp + 0x7c]
push eax
call sym.__p_internal_getc
mov ebx, eax
add esp, 0x10
cmp dword [0x432a08], 0
jne 0x4045f1
mov edx, dword [esp + 0x70]
test byte [edx + 4], 0xb
jne 0x4045ac
add esp, 0xfffffffc
push 0
mov ecx, dword [esp + 0x78]
push ecx
push 0x1c4
call sym.__p_io_error_file
add esp, 0x10
jmp 0x4045f1
mov eax, dword [esp + 0x70]
test byte [eax + 8], 4
je 0x4045f6
mov edx, dword [esp + 0x70]
test byte [edx + 0x34], 2
je 0x4045d4
add esp, 0xfffffff8
push 0
push 0x226
call sym.__p_io_error
jmp 0x4045e8
add esp, 0xfffffffc
push 0
mov ecx, dword [esp + 0x78]
push ecx
push 0x1c6
call sym.__p_io_error_file
xor eax, eax
add esp, 0x10
test eax, eax
jne 0x4045f6
mov ebx, 0xffffffff
cmp dword [0x432a08], 0
jne 0x404bf8
lea eax, [ebx - 0x30]
cmp eax, 9
ja 0x404614
mov dword [esp + 0x5c], eax
jmp 0x404644
lea eax, [ebx - 0x41]
cmp eax, 0x19
ja 0x404628
lea eax, [ebx - 0x37]
mov dword [esp + 0x5c], eax
jmp 0x404644
lea eax, [ebx - 0x61]
cmp eax, 0x19
ja 0x40463c
lea edx, [ebx - 0x57]
mov dword [esp + 0x5c], edx
jmp 0x404644
mov dword [esp + 0x5c], 0xa
cmp dword [esp + 0x5c], 9
jle 0x40466c
cmp ebx, 0x24
jne 0x40465a
mov ecx, dword [esp + 0x70]
test byte [ecx + 0x34], 8
jne 0x40466c
add esp, 0xfffffff8
push 0
push 0x227
jmp 0x404c3c
mov eax, dword [esp + 0x50]
mov edx, dword [esp + 0x54]
mov dword [esp + 0x40], esi
mov dword [esp + 0x44], edi
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], edx
cmp dword [esp + 0x74], 2
jne 0x4046bc
cmp dword [esp + 0x4c], 0
je 0x4046bc
mov eax, dword [esp + 0x40]
or eax, dword [esp + 0x44]
je 0x4046ac
add esp, 0xfffffff8
push 0
push 0x229
jmp 0x404c3c
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0
cmp dword [esp + 0x74], 1
jne 0x404760
cmp dword [esp + 0x4c], 0
je 0x404734
test edi, edi
jg 0x4046d8
jne 0x4046e8
test esi, esi
jbe 0x4046e8
add esp, 0xfffffff8
push 0
push 0x229
jmp 0x404c3c
neg esi
adc edi, 0
neg edi
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], edi
cmp dword [esp + 0x54], 0
jg 0x404720
jne 0x404707
cmp dword [esp + 0x50], 0
ja 0x404720
mov edx, dword [esp + 0x50]
mov ecx, dword [esp + 0x54]
neg edx
adc ecx, 0
neg ecx
mov dword [esp + 0x40], edx
mov dword [esp + 0x44], ecx
jmp 0x404760
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 0
jmp 0x404760
test edi, edi
jge 0x404748
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 0
cmp dword [esp + 0x54], 0
jge 0x404760
add esp, 0xfffffff8
push 0
push 0x229
jmp 0x404c3c
cmp ebx, 0x24
jne 0x404890
mov ecx, dword [esp + 0x70]
test byte [ecx + 0x34], 8
je 0x404890
mov dword [esp + 0x34], 0x10
mov dword [esp + 0x30], 1
mov eax, dword [ecx + 8]
test ah, 0x10
jne 0x4047a0
or ah, 0x10
mov dword [ecx + 8], eax
mov eax, dword [ecx + 0x1c]
movzx ebx, byte [eax]
jmp 0x4047b2
add esp, 0xfffffff4
mov ebx, dword [esp + 0x7c]
push ebx
call sym.__p_internal_getc
mov ebx, eax
add esp, 0x10
cmp dword [0x432a08], 0
jne 0x404825
mov eax, dword [esp + 0x70]
test byte [eax + 4], 0xb
jne 0x4047e0
add esp, 0xfffffffc
push 0
mov edx, dword [esp + 0x78]
push edx
push 0x1c4
call sym.__p_io_error_file
add esp, 0x10
jmp 0x404825
mov ecx, dword [esp + 0x70]
test byte [ecx + 8], 4
je 0x40482a
mov eax, dword [esp + 0x70]
test byte [eax + 0x34], 2
je 0x404808
add esp, 0xfffffff8
push 0
push 0x226
call sym.__p_io_error
jmp 0x40481c
add esp, 0xfffffffc
push 0
mov edx, dword [esp + 0x78]
push edx
push 0x1c6
call sym.__p_io_error_file
xor eax, eax
add esp, 0x10
test eax, eax
jne 0x40482a
mov ebx, 0xffffffff
cmp dword [0x432a08], 0
jne 0x404bf8
lea eax, [ebx - 0x30]
cmp eax, 9
ja 0x404848
mov dword [esp + 0x5c], eax
jmp 0x404878
lea eax, [ebx - 0x41]
cmp eax, 0x19
ja 0x40485c
add ebx, 0xffffffc9
mov dword [esp + 0x5c], ebx
jmp 0x404878
lea eax, [ebx - 0x61]
cmp eax, 0x19
ja 0x404870
add ebx, 0xffffffa9
mov dword [esp + 0x5c], ebx
jmp 0x404878
mov dword [esp + 0x5c], 0x10
cmp dword [esp + 0x5c], 0xf
jle 0x404890
add esp, 0xfffffff8
push 0
push 0x22d
jmp 0x404c3c
xor edi, edi
xor ebp, ebp
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x2c], eax
cmp dword [esp + 0x74], 0
je 0x404954
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x18], eax
sar eax, 0x1f
mov dword [esp + 0x1c], eax
mov dword [esp + 0x10], ecx
sar ecx, 0x1f
mov dword [esp + 0x14], ecx
cmp dword [esp + 0x3c], 0
ja 0x4048e2
jne 0x4048d1
cmp dword [esp + 0x38], 0x23
ja 0x4048e2
cmp dword [esp + 0x30], 0
jne 0x4048e2
mov eax, dword [esp + 0x70]
test byte [eax + 0x34], 4
jne 0x404914
mov ecx, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
mov eax, dword [esp + 0x38]
mov edx, dword [esp + 0x3c]
sub eax, dword [esp + 0x18]
sbb edx, dword [esp + 0x1c]
push ebx
push ecx
push edx
push eax
call sym.___udivdi3
add esp, 0x10
cmp ebp, edx
ja 0x404944
jne 0x404954
cmp edi, eax
ja 0x404944
jmp 0x404954
mov ecx, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
mov eax, 0x24
mov edx, 0
sub eax, dword [esp + 0x18]
sbb edx, dword [esp + 0x1c]
push ebx
push ecx
push edx
push eax
call sym.___udivdi3
add esp, 0x10
cmp ebp, edx
ja 0x404944
jne 0x404954
cmp edi, eax
jbe 0x404954
add esp, 0xfffffff8
push 0
push 0x229
jmp 0x404c3c
mov ebx, dword [esp + 0x34]
mov dword [esp + 0x18], ebx
mov eax, dword [esp + 0x18]
sar ebx, 0x1f
mov dword [esp + 0x1c], ebx
mov ecx, dword [esp + 0x1c]
mul edi
mov ebx, eax
mov eax, dword [esp + 0x18]
mov esi, edx
mov edx, dword [esp + 0x2c]
imul ecx, edi
add esi, ecx
mov ecx, dword [esp + 0x70]
imul eax, ebp
add esi, eax
mov edi, edx
mov ebp, edx
sar ebp, 0x1f
add edi, ebx
adc ebp, esi
mov eax, dword [ecx + 8]
test ah, 0x10
jne 0x4049a8
or ah, 0x10
mov dword [ecx + 8], eax
mov eax, dword [ecx + 0x1c]
movzx ebx, byte [eax]
jmp 0x4049ba
add esp, 0xfffffff4
mov ebx, dword [esp + 0x7c]
push ebx
call sym.__p_internal_getc
mov ebx, eax
add esp, 0x10
cmp ebx, 0x23
jne 0x404b2c
mov eax, dword [esp + 0x70]
test byte [eax + 0x34], 4
je 0x404b2c
cmp dword [esp + 0x30], 0
je 0x4049e8
add esp, 0xfffffff8
push 0
push 0x22f
jmp 0x404c3c
mov eax, edi
mov edx, ebp
add eax, 0xfffffffe
adc edx, 0xffffffff
jne 0x4049fb
jne 0x404a0c
cmp eax, 0x22
jbe 0x404a0c
add esp, 0xfffffff8
push 0
push 0x230
jmp 0x404c3c
mov edx, dword [esp + 0x70]
mov dword [esp + 0x34], edi
mov dword [esp + 0x30], 1
xor edi, edi
xor ebp, ebp
mov eax, dword [edx + 8]
test ah, 0x10
jne 0x404a38
or ah, 0x10
mov dword [edx + 8], eax
mov eax, dword [edx + 0x1c]
movzx ebx, byte [eax]
jmp 0x404a4a
add esp, 0xfffffff4
mov ecx, dword [esp + 0x7c]
push ecx
call sym.__p_internal_getc
mov ebx, eax
add esp, 0x10
cmp dword [0x432a08], 0
jne 0x404abd
mov eax, dword [esp + 0x70]
test byte [eax + 4], 0xb
jne 0x404a78
add esp, 0xfffffffc
push 0
mov edx, dword [esp + 0x78]
push edx
push 0x1c4
call sym.__p_io_error_file
add esp, 0x10
jmp 0x404abd
mov ecx, dword [esp + 0x70]
test byte [ecx + 8], 4
je 0x404ac2
mov eax, dword [esp + 0x70]
test byte [eax + 0x34], 2
je 0x404aa0
add esp, 0xfffffff8
push 0
push 0x226
call sym.__p_io_error
jmp 0x404ab4
add esp, 0xfffffffc
push 0
mov edx, dword [esp + 0x78]
push edx
push 0x1c6
call sym.__p_io_error_file
xor eax, eax
add esp, 0x10
test eax, eax
jne 0x404ac2
mov ebx, 0xffffffff
cmp dword [0x432a08], 0
jne 0x404bf8
lea eax, [ebx - 0x30]
cmp eax, 9
ja 0x404ae0
mov dword [esp + 0x5c], eax
jmp 0x404b10
lea eax, [ebx - 0x41]
cmp eax, 0x19
ja 0x404af4
lea ecx, [ebx - 0x37]
mov dword [esp + 0x5c], ecx
jmp 0x404b10
lea eax, [ebx - 0x61]
cmp eax, 0x19
ja 0x404b08
lea eax, [ebx - 0x57]
mov dword [esp + 0x5c], eax
jmp 0x404b10
mov edx, dword [esp + 0x34]
mov dword [esp + 0x5c], edx
mov ecx, dword [esp + 0x34]
cmp dword [esp + 0x5c], ecx
jl 0x404b2c
add esp, 0xfffffff8
push 0
push 0x22e
jmp 0x404c3c
lea eax, [ebx - 0x30]
cmp eax, 9
ja 0x404b3c
mov dword [esp + 0x5c], eax
jmp 0x404b6c
lea eax, [ebx - 0x41]
cmp eax, 0x19
ja 0x404b50
lea eax, [ebx - 0x37]
mov dword [esp + 0x5c], eax
jmp 0x404b6c
lea eax, [ebx - 0x61]
cmp eax, 0x19
ja 0x404b64
lea edx, [ebx - 0x57]
mov dword [esp + 0x5c], edx
jmp 0x404b6c
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x5c], ecx
mov eax, dword [esp + 0x34]
cmp dword [esp + 0x5c], eax
jl 0x404894
cmp dword [esp + 0x74], 0
je 0x404bac
cmp dword [esp + 0x44], ebp
ja 0x404b9d
jne 0x404b8f
cmp dword [esp + 0x40], edi
ja 0x404b9d
cmp ebp, dword [esp + 0x3c]
ja 0x404b9d
jne 0x404bac
cmp edi, dword [esp + 0x38]
jbe 0x404bac
add esp, 0xfffffff8
push 0
push 0x229
jmp 0x404c3c
mov edx, dword [esp + 0x70]
test byte [edx + 0x34], 0x10
je 0x404bd8
test ebx, ebx
jl 0x404c1c
cmp ebx, 0x20
je 0x404bd8
cmp ebx, 9
je 0x404bd8
cmp ebx, 0xa
je 0x404bd8
add esp, 0xfffffff8
push 0
push 0x231
jmp 0x404c3c
test ebx, ebx
jl 0x404c1c
mov ecx, dword [esp + 0x70]
mov eax, dword [ecx + 8]
test ah, 0x10
je 0x404c00
and ah, 0xef
mov dword [ecx + 8], eax
mov eax, dword [ecx + 0x1c]
mov byte [eax], bl
jmp 0x404c1c
xor eax, eax
xor edx, edx
jmp 0x404c5e
add esp, 0xfffffff4
mov eax, dword [esp + 0x78]
push eax
call sym.__p_SetReturnAddress
add esp, 0xfffffff4
push 0x38e
call sym.__p_internal_error
mov esi, esi
mov ebx, dword [esp + 0x70]
test byte [ebx + 0x34], 1
je 0x404c4c
mov eax, dword [ebx + 0x30]
cmp eax, dword [ebx + 0x2c]
jae 0x404c4c
inc eax
mov dword [ebx + 0x30], eax
add esp, 0xfffffff8
push 0
push 0x235
call sym.__p_io_error
xor eax, eax
xor edx, edx
add esp, 0x10
jmp 0x404c5e
mov eax, edi
mov edx, ebp
cmp dword [esp + 0x4c], 0
je 0x404c5e
neg eax
adc edx, 0
neg edx
pop ebx
pop esi
pop edi
pop ebp
add esp, 0x5c
ret