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

Disassembly:
sub esp, 0x44
mov eax, dword [esp + 0x74]
push ebx
push ebp
push esi
inc eax
push edi
push eax
call fcn.004783d0
mov ecx, dword [esp + 0x68]
mov edx, dword [esp + 0x64]
push ecx
mov dword [esp + 0x18], eax
mov dword [esp + 0x8c], eax
push edx
lea eax, [esp + 0x20]
push eax
call fcn.00462d20
lea ecx, [esp + 0x34]
push 1
push ecx
call fcn.004b2050
mov ecx, dword [esp + 0x84]
mov eax, 0x4ec4ec4f
mul ecx
mov ebx, edx
mov eax, ecx
xor edx, edx
mov ecx, 0xd
div ecx
add esp, 0x18
shr ebx, 2
test edx, edx
je 0x487d2c
mov ecx, dword [edx*4 + 0x594d90]
lea eax, [esp + 0x14]
push eax
push ecx
lea edx, [esp + 0x1c]
push edx
call fcn.004b4350
add esp, 0xc
test ebx, ebx
je 0x487d56
mov esi, 0x5df118
test bl, 1
je 0x487d4d
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x18]
push esi
push ecx
call fcn.004b4410
add esp, 0xc
sar ebx, 1
add esi, 0x10
test ebx, ebx
jne 0x487d35
mov eax, dword [esp + 0x68]
lea edx, [esp + 0x14]
push edx
push eax
lea ecx, [esp + 0x1c]
push ecx
call fcn.004b41a0
mov edi, dword [esp + 0x88]
mov eax, dword [esp + 0x20]
add esp, 0xc
cmp eax, edi
jg 0x487dc9
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x18]
push 0xa
push eax
call fcn.004b4350
mov esi, dword [esp + 0x7c]
mov ebp, dword [esp + 0x80]
mov eax, dword [esp + 0x8c]
mov ecx, dword [esp + 0x98]
add esp, 0xc
inc esi
mov dword [esp + 0x70], esi
mov esi, dword [esp + 0x78]
inc ebp
inc esi
dec eax
mov dword [esp + 0x74], ebp
mov dword [esp + 0x88], ecx
mov dword [esp + 0x80], eax
jmp 0x487dd1
mov esi, dword [esp + 0x78]
mov ebp, dword [esp + 0x74]
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x28]
push ebp
push eax
call fcn.004b41a0
mov eax, 0x4ec4ec4f
mul esi
mov ebx, edx
xor edx, edx
mov eax, esi
mov ecx, 0xd
div ecx
add esp, 0xc
shr ebx, 2
test edx, edx
je 0x487e19
mov ecx, dword [edx*4 + 0x594d90]
lea eax, [esp + 0x24]
push eax
push ecx
lea edx, [esp + 0x2c]
push edx
call fcn.004b4350
add esp, 0xc
test ebx, ebx
je 0x487e43
mov esi, 0x5df118
test bl, 1
je 0x487e3a
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x28]
push esi
push ecx
call fcn.004b4410
add esp, 0xc
sar ebx, 1
add esi, 0x10
test ebx, ebx
jne 0x487e22
mov esi, dword [esp + 0x70]
cmp esi, ebp
jle 0x487e6f
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x38]
push eax
call fcn.004ae500
lea ecx, [esp + 0x3c]
push ecx
sub esi, ebp
lea edx, [esp + 0x40]
push esi
push edx
call fcn.004b41a0
add esp, 0x14
lea eax, [esp + 0x44]
push eax
call fcn.00489ae0
mov ebp, dword [esp + 0x5c]
add esp, 4
mov dword [esp + 0x78], 0
mov eax, dword [esp + 0x14]
cmp eax, edi
jg 0x487e94
xor ebx, ebx
jmp 0x487eca
mov ecx, dword [esp + 0x20]
mov ebx, dword [ecx + edi*4]
lea edx, [edi + 1]
cmp eax, edx
jg 0x487ea7
cmp ebx, 0xa
jb 0x487eb4
push str.wrong_digit_
call fcn.00406da0
add esp, 4
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x14]
dec edx
push eax
mov dword [esp + 0x18], edx
call fcn.004b5370
add esp, 4
mov eax, dword [esp + 0x70]
mov ecx, dword [esp + 0x74]
cmp eax, ecx
lea eax, [esp + 0x34]
jg 0x487ede
lea eax, [esp + 0x24]
push eax
lea edx, [esp + 0x18]
push edx
call fcn.004b52a0
add esp, 8
cmp eax, 0xffffffff
je 0x48808b
test eax, eax
jne 0x487f0a
cmp dword [esp + 0x5c], 1
je 0x487f0a
test byte [ebp], 1
je 0x48808b
mov esi, dword [ebp]
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x1c]
push edx
and esi, 1
call fcn.004b5440
mov eax, dword [esp + 0x50]
add esp, 0xc
cmp eax, edi
jle 0x487f6e
lea ecx, [edi + 1]
cmp eax, ecx
jg 0x487fec
mov ecx, dword [esp + 0x50]
cmp dword [ecx + edi*4], 1
ja 0x487fec
lea eax, [edi - 1]
test eax, eax
jl 0x487f63
lea ecx, [ecx + eax*4]
cmp dword [ecx], 0
jne 0x487fec
dec eax
sub ecx, 4
test eax, eax
jge 0x487f52
cmp dword [esp + 0x5c], 1
je 0x487f6e
test esi, esi
jne 0x487fec
mov eax, dword [esp + 0x84]
mov ecx, dword [esp + 0x78]
mov dl, bl
add dl, 0x30
mov byte [eax], dl
inc eax
mov dword [esp + 0x84], eax
mov eax, dword [esp + 0x88]
cmp ecx, eax
je 0x48801f
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x18]
push 0xa
push edx
call fcn.004b4350
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x34]
push 0xa
push ecx
call fcn.004b4350
mov ecx, dword [esp + 0x88]
mov eax, dword [esp + 0x8c]
add esp, 0x18
cmp ecx, eax
jle 0x487fe3
lea edx, [esp + 0x34]
push edx
sub ecx, eax
push ecx
lea eax, [esp + 0x2c]
push eax
call fcn.004b41a0
add esp, 0xc
inc dword [esp + 0x78]
jmp 0x487e88
cmp ebx, 9
jne 0x488017
mov eax, dword [esp + 0x84]
mov ecx, dword [esp + 0x10]
mov byte [eax], 0x39
cmp eax, ecx
je 0x4880f0
mov dl, byte [eax - 1]
dec eax
cmp dl, 0x39
je 0x487fff
inc byte [eax]
jmp 0x488108
add bl, 0x31
jmp 0x4880ff
cmp dword [esp + 0x14], edi
jl 0x488110
mov edx, dword [esp + 0x20]
mov eax, dword [edx + edi*4 - 4]
mov ecx, dword [0x5950a0]
test ecx, eax
je 0x488110
cmp eax, ecx
jne 0x488067
lea eax, [edi - 2]
test eax, eax
jl 0x48805a
lea ecx, [edx + eax*4]
cmp dword [ecx], 0
jne 0x488067
dec eax
sub ecx, 4
test eax, eax
jge 0x48804d
and ebx, 1
mov eax, ebx
test eax, eax
je 0x488110
mov ecx, dword [esp + 0x84]
lea eax, [ecx - 1]
cmp byte [eax], 0x39
jne 0x488010
mov ecx, dword [esp + 0x10]
cmp eax, ecx
je 0x4880f0
mov dl, byte [eax - 1]
dec eax
cmp dl, 0x39
je 0x48807a
inc byte [eax]
jmp 0x488108
cmp dword [esp + 0x14], edi
jl 0x4880fc
mov edx, dword [esp + 0x20]
mov eax, dword [edx + edi*4 - 4]
mov ecx, dword [0x5950a0]
test ecx, eax
je 0x4880fc
cmp eax, ecx
jne 0x4880c7
lea eax, [edi - 2]
test eax, eax
jl 0x4880be
lea ecx, [edx + eax*4]
cmp dword [ecx], 0
jne 0x4880c7
dec eax
sub ecx, 4
test eax, eax
jge 0x4880b1
mov eax, ebx
and eax, 1
test eax, eax
je 0x4880fc
inc ebx
cmp ebx, 0xa
jne 0x4880fc
mov eax, dword [esp + 0x84]
mov ecx, dword [esp + 0x10]
mov byte [eax], 0x39
cmp eax, ecx
je 0x4880f0
mov dl, byte [eax - 1]
dec eax
cmp dl, 0x39
je 0x4880db
mov cl, dl
inc cl
mov byte [eax], cl
jmp 0x488108
inc dword [esp + 0x80]
mov byte [eax], 0x31
jmp 0x488108
add bl, 0x30
mov eax, dword [esp + 0x84]
mov byte [eax], bl
inc eax
mov dword [esp + 0x84], eax
mov edx, dword [esp + 0x74]
cmp dword [esp + 0x70], edx
pop edi
pop esi
pop ebp
pop ebx
jle 0x48812b
lea eax, [esp + 0x24]
push eax
call fcn.004897e0
add esp, 4
push 0
lea ecx, [esp + 0x38]
push ecx
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x10]
push eax
call fcn.004b5340
mov ecx, dword [esp + 0x84]
mov eax, dword [esp + 0x80]
mov edx, dword [esp + 0x90]
mov byte [ecx], 0
mov dword [edx], eax
mov eax, dword [esp + 0x94]
add esp, 0x10
test eax, eax
je 0x48816b
mov dword [eax], ecx
mov eax, dword [esp]
add esp, 0x44
ret