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

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x5c
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x70]
mov edx, dword [esp + 0x84]
mov ebx, dword [esp + 0x80]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x74]
add edx, 1
mov edi, dword [esp + 0x40]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x78]
mov ebp, dword [esp + 0x44]
mov dword [esp + 0x18], edx
mov edx, dword [esp + 0x88]
mov dword [esp + 0x24], eax
mov dword [esp + 0x30], eax
mov eax, edi
lea esi, [edx + 1]
mov edx, ebp
call sym._strconv__dec_digits
mov edx, esi
mov ecx, eax
mov dword [esp + 0x1c], eax
xor eax, eax
sub edx, ecx
cmp esi, ecx
cmovle edx, eax
lea esi, [edx + ecx + 8]
mov dword [esp + 0x38], edx
test esi, esi
cmovs esi, eax
xor edx, edx
mov eax, esi
call sym._GC_malloc_kind_aligned_global.constprop.24
mov dword [esp + 8], esi
mov dword [esp + 4], 0
mov esi, eax
mov dword [esp], eax
mov dword [esp + 0x14], eax
call sym._memset
mov dword [esp + 0x10], 0
test bl, bl
je 0x407fcf
mov byte [esi], 0x2d
mov dword [esp + 0x10], 1
mov ecx, dword [esp + 0x1c]
xor eax, eax
cmp ecx, 1
setle al
mov esi, eax
mov eax, dword [esp + 0x18]
cmp eax, ecx
jl 0x4080b0
mov dword [esp + 0x18], ecx
mov eax, ecx
mov edx, dword [esp + 0x10]
add edx, eax
sub eax, esi
lea esi, [eax - 1]
mov dword [esp + 0x28], edx
mov dword [esp + 0x24], eax
mov dword [esp + 0x34], esi
test esi, esi
jle 0x408300
mov esi, dword [esp + 0x14]
mov ebx, esi
lea esi, [esi + edx + 1]
add ebx, edx
sub esi, eax
lea esi, [esi]
mov dword [esp], edi
sub ebx, 1
mov dword [esp + 4], ebp
mov dword [esp + 8], 0xa
mov dword [esp + 0xc], 0
call dbg.__umoddi3
add eax, 0x30
mov byte [ebx + 1], al
mov dword [esp], edi
mov dword [esp + 4], ebp
mov dword [esp + 8], 0xa
mov dword [esp + 0xc], 0
call dbg.__udivdi3
mov edi, eax
mov ebp, edx
cmp ebx, esi
jne 0x408020
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x24]
lea eax, [eax + edx - 1]
mov dword [esp + 0x10], eax
mov edx, dword [esp + 0x84]
test edx, edx
jne 0x408160
mov eax, dword [esp + 0x20]
mov edi, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov dword [eax + 8], 0
mov byte [edx + edi], 0
mov dword [eax], edx
mov dword [eax + 4], edi
add esp, 0x5c
pop ebx
pop esi
pop edi
pop ebp
ret
sub ecx, eax
mov eax, 5
lea edx, [ecx - 1]
mov ebx, dword [edx*8 + 0x423484]
mul dword [edx*8 + 0x423480]
lea ebx, [ebx + ebx*4]
add edx, ebx
add eax, edi
mov ebx, dword [ecx*8 + 0x423484]
mov ecx, dword [ecx*8 + 0x423480]
adc edx, ebp
mov dword [esp], eax
mov dword [esp + 8], ecx
mov dword [esp + 0xc], ebx
mov dword [esp + 4], edx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], ebx
call dbg.__udivdi3
mov dword [esp], edi
mov dword [esp + 0x34], eax
mov ebx, edx
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0xc], edx
mov dword [esp + 8], eax
mov dword [esp + 4], ebp
call dbg.__udivdi3
cmp eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x3c]
sbb edx, ebx
jae 0x4082e0
mov eax, dword [esp + 0x24]
mov edi, ecx
mov ebp, ebx
add eax, 1
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x84]
add eax, 2
mov dword [esp + 0x18], eax
jmp 0x407fef
mov esi, dword [esp + 0x28]
mov edx, dword [esp + 0x34]
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
sub esi, edx
lea ebx, [ecx + 1]
test eax, eax
jle 0x408197
mov eax, dword [esp + 0x14]
mov dword [esp + 0x10], ebx
mov byte [eax + esi], 0x2e
mov eax, dword [esp + 0x28]
sub eax, 1
mov esi, eax
mov eax, ecx
add eax, 2
sub esi, edx
mov ebx, eax
test esi, esi
js 0x4081c8
mov dword [esp], edi
mov dword [esp + 8], 0xa
mov dword [esp + 0xc], 0
mov dword [esp + 4], ebp
call dbg.__umoddi3
mov edi, dword [esp + 0x14]
mov dword [esp + 0x10], ebx
add ebx, 1
add eax, 0x30
mov byte [edi + esi], al
mov eax, dword [esp + 0x38]
test eax, eax
jle 0x4081fb
mov ebx, eax
mov edi, dword [esp + 0x10]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 4], 0x30
add eax, edi
mov dword [esp], eax
call sym._memset
mov eax, edi
add eax, ebx
mov dword [esp + 0x10], eax
lea ebx, [eax + 1]
mov eax, dword [esp + 0x14]
mov esi, dword [esp + 0x10]
mov ecx, dword [esp + 0x30]
add ecx, dword [esp + 0x1c]
mov byte [eax + esi], 0x65
add eax, ebx
mov ebx, ecx
add esi, 2
sub ebx, 1
js 0x4082f0
mov byte [eax], 0x2b
mov ecx, 0x66666667
mov eax, ebx
mov ebp, ebx
imul ecx
mov eax, ebx
sar eax, 0x1f
mov dword [esp + 0x24], eax
sar edx, 2
sub edx, eax
lea eax, [edx + edx*4]
mov edi, edx
add eax, eax
sub ebp, eax
mov eax, edx
imul ecx
mov dword [esp + 0x18], ebp
mov ebp, edi
sar ebp, 0x1f
mov ecx, edx
sar ecx, 2
sub ecx, ebp
mov ebp, dword [esp + 0x10]
lea eax, [ecx + ecx*4]
mov ecx, edi
add eax, eax
lea edx, [ebp + 3]
sub ecx, eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x1c], edx
mov ebp, eax
lea edi, [eax + esi]
add ebp, edx
cmp ebx, 0x63
jle 0x4082a3
mov eax, ebx
mov esi, edx
mov edx, 0x51eb851f
imul edx
mov eax, dword [esp + 0x14]
mov ebx, edx
sar ebx, 5
sub ebx, dword [esp + 0x24]
add ebx, 0x30
mov byte [edi], bl
mov edi, ebp
mov ebp, dword [esp + 0x10]
lea ebp, [eax + ebp + 4]
movzx eax, byte [esp + 0x18]
add ecx, 0x30
mov byte [edi], cl
mov edi, dword [esp + 0x20]
mov ecx, dword [esp + 0x14]
add eax, 0x30
mov byte [ebp], al
lea eax, [esi + 2]
mov dword [edi + 4], eax
mov eax, edi
mov byte [ecx + esi + 2], 0
mov dword [edi + 8], 0
mov dword [edi], ecx
add esp, 0x5c
pop ebx
pop esi
pop edi
pop ebp
ret
mov edi, ecx
mov ebp, ebx
mov eax, dword [esp + 0x18]
jmp 0x407fef
mov ebx, 1
mov byte [eax], 0x2d
sub ebx, ecx
jmp 0x408222
mov dword [esp + 0x34], 0
jmp 0x408079