Function at 0x427a40
Capabilities:
Terminate process

Disassembly:
push edi
push ebp
sub esp, 0x2c
mov ebp, dword [esp + 0x38]
mov dword [esp], 0x76e5e0
call fcn.00427490
mov edi, eax
test edi, edi
je 0x427c97
mov dword [esp], ebp
mov dword [esp + 4], edi
call fcn.00427480
mov ebp, eax
mov ecx, dword [edi + 0x14]
add ecx, eax
xor edx, edx
cmp eax, ecx
jae 0x427c8b
mov dword [esp + 0x20], edx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], esi
mov ebx, ebp
sub ebx, dword [esp + 0x1c]
mov dword [esp], ebp
call fcn.00427350
lea esi, [ebp + eax + 4]
lea eax, [ebp + 4]
mov dword [esp], eax
call fcn.00427350
mov dword [esp + 0x24], eax
cmp eax, 0xffffffff
jne 0x427b80
add ebp, 9
mov dword [esp], 1
mov dword [esp + 4], 0x20
call dword [sym.imp.MSVCRT.dll_calloc]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x20]
mov edi, dword [esp + 0x24]
mov dword [edi], eax
mov eax, ebp
mov dword [esp + 0x20], edi
mov dword [edi + 4], ebx
mov dword [edi + 8], ebp
mov dl, byte [ebp]
test dl, dl
je 0x427afb
mov dl, byte [ebp + 1]
inc ebp
test dl, dl
jne 0x427af3
inc ebp
mov al, byte [eax]
test al, al
je 0x427b28
mov eax, dword [sym.imp.MSVCRT.dll__iob]
add eax, 0x40
mov dword [esp], eax
mov dword [esp + 4], 0x76e600
call dword [sym.imp.MSVCRT.dll_fprintf]
mov dword [esp], 0xffffffff
call dword [sym.imp.MSVCRT.dll_exit]
mov dword [esp], ebp
lea eax, [esp + 0x10]
mov dword [esp + 4], eax
call fcn.00427440
mov ebx, dword [esp + 0x24]
mov dword [ebx + 0xc], eax
mov ebx, dword [esp + 0x10]
add ebx, ebp
lea eax, [esp + 0x10]
mov dword [esp], ebx
mov dword [esp + 4], eax
call fcn.004273e0
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x10]
mov dword [ecx + 0x10], eax
movzx eax, byte [ebx + edx]
lea ebx, [edx + ebx + 1]
mov dword [ecx + 0x14], eax
mov dword [ecx + 0x18], ebx
neg ebx
add ebx, esi
mov dword [ecx + 0x1c], ebx
jmp 0x427c71
mov dword [esp], 1
mov dword [esp + 4], 0x14
call dword [sym.imp.MSVCRT.dll_calloc]
mov ebx, eax
mov edi, dword [esp + 0x20]
test edi, edi
je 0x427bae
mov edx, dword [esp + 0x24]
cmp edx, dword [edi + 4]
je 0x427bdd
mov edi, dword [edi]
test edi, edi
jne 0x427ba3
mov edx, dword [sym.imp.MSVCRT.dll__iob]
add edx, 0x40
mov ecx, dword [esp + 0x24]
mov dword [esp], edx
mov dword [esp + 4], 0x76e640
mov dword [esp + 8], ecx
call dword [sym.imp.MSVCRT.dll_fprintf]
mov dword [esp], 0xffffffff
call dword [sym.imp.MSVCRT.dll_exit]
mov dword [ebx], edi
lea edx, [ebp + 8]
mov dword [esp], edx
call fcn.00427350
mov dword [ebx + 4], eax
lea edx, [ebp + 0xc]
mov dword [esp], edx
call fcn.00427350
mov ecx, dword [ebx + 4]
add eax, ecx
add ebp, 0x10
mov dword [ebx + 8], eax
mov ecx, dword [0x573944]
mov eax, 0x66666667
mov dword [ebx + 0xc], ebp
neg ebp
add ebp, esi
mov dword [ebx + 0x10], ebp
mov ebp, ecx
imul ecx
sar edx, 2
sar ebp, 0x1f
sub edx, ebp
lea edi, [edx + edx*4]
add edi, edi
mov edx, ecx
sub edx, edi
je 0x427c40
mov eax, dword [0x573948]
jmp 0x427c65
mov edx, dword [0x573948]
lea ecx, [ecx*4 + 0x28]
mov dword [esp], edx
mov dword [esp + 4], ecx
call dword [sym.imp.MSVCRT.dll_realloc]
mov dword [0x573948], eax
mov ecx, dword [0x573944]
lea edx, [ecx + 1]
mov dword [0x573944], edx
mov dword [eax + ecx*4], ebx
mov ebp, esi
mov eax, dword [esp + 0x28]
cmp esi, eax
jb 0x427a90
mov edx, dword [esp + 0x20]
mov ebx, dword [esp + 0x14]
mov esi, dword [esp + 0x18]
mov dword [0x57394c], edx
add esp, 0x2c
pop ebp
pop edi
ret
add esp, 0x2c
pop ebp
pop edi
ret