Function at 0x421c00
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push 0x428c30
push eax
call dword [sym.imp.MSVCR100.dll_fopen]
mov esi, eax
add esp, 8
mov dword [ebp - 0x2c], esi
test esi, esi
jne 0x421c3b
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00425fc4
mov esp, ebp
pop ebp
ret
push ebx
push 0x800
call dword [sym.imp.MSVCR100.dll_malloc]
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x421c78
push str._Out_of_memory._Please_run_a_smaller_problem_n
call dword [sym.imp.MSVCR100.dll_printf]
add esp, 4
call fcn.00404240
inc dword [0x42fba4]
je 0x421c70
call fcn.00403eb0
push 3
call dword [sym.imp.MSVCR100.dll_exit]
push 0x800
push 0
push ebx
call sub.MSVCR100.dll_memset
push esi
push 0x800
push ebx
call dword [sym.imp.MSVCR100.dll_fgets]
add esp, 0x18
test eax, eax
jne 0x421ca9
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00425fc4
mov esp, ebp
pop ebp
ret
push 0xa
push ebx
call dword [sym.imp.MSVCR100.dll_strchr]
add esp, 8
test eax, eax
je 0x421cd0
mov byte [eax], 0
dec eax
cmp byte [eax], 0
je 0x421cd0
cmp byte [eax], 0x20
jne 0x421cd0
mov byte [eax], 0
dec eax
cmp byte [eax], 0
jne 0x421cc2
push ebx
call dword [sym.imp.MSVCR100.dll_atol]
mov esi, eax
mov eax, dword [0x42fd90]
add esp, 4
mov dword [0x42f880], esi
test eax, eax
je 0x421cf5
push eax
call dword [sym.imp.MSVCR100.dll_free]
add esp, 4
push edi
mov edi, dword [0x430ca8]
imul edi, esi
add edi, edi
add edi, edi
add edi, edi
call fcn.00404140
cmp dword [0x430ca8], 0
mov dword [0x42fd90], eax
mov dword [ebp - 0x28], 0
jle 0x421de8
mov eax, dword [ebp - 0x2c]
push eax
push 0x800
push ebx
call dword [sym.imp.MSVCR100.dll_fgets]
add esp, 0xc
test eax, eax
je 0x421dd5
push 0xa
push ebx
call dword [sym.imp.MSVCR100.dll_strchr]
add esp, 8
test eax, eax
je 0x421d65
mov byte [eax], 0
dec eax
cmp byte [eax], 0
je 0x421d65
cmp byte [eax], 0x20
jne 0x421d65
mov byte [eax], 0
dec eax
cmp byte [eax], 0
jne 0x421d57
mov ecx, dword [0x42f880]
xor edi, edi
mov esi, ebx
test ecx, ecx
jle 0x421dc0
cmp byte [esi], 0x20
jne 0x421d7e
inc esi
cmp byte [esi], 0x20
je 0x421d78
mov al, byte [esi]
lea ecx, [ebp - 0x24]
cmp al, 0x20
je 0x421d95
test al, al
je 0x421d95
inc esi
mov byte [ecx], al
mov al, byte [esi]
inc ecx
cmp al, 0x20
jne 0x421d87
mov byte [ecx], 0
lea ecx, [ebp - 0x24]
push ecx
call dword [sym.imp.MSVCR100.dll_atof]
mov ecx, dword [0x42f880]
mov eax, dword [0x42fd90]
mov edx, ecx
imul edx, dword [ebp - 0x28]
add edx, edi
inc edi
add esp, 4
fstp qword [eax + edx*8]
cmp edi, ecx
jl 0x421d73
mov eax, dword [ebp - 0x28]
inc eax
mov dword [ebp - 0x28], eax
cmp eax, dword [0x430ca8]
jl 0x421d23
jmp 0x421dee
pop edi
pop ebx
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00425fc4
mov esp, ebp
pop ebp
ret
mov ecx, dword [0x42f880]
test ecx, ecx
jle 0x421e10
mov edi, dword [0x42fde8]
mov eax, 1
movzx edx, ax
mov eax, edx
shl edx, 0x10
or eax, edx
shr ecx, 1
rep stosd dword es:[edi], eax
adc ecx, ecx
rep stosw word es:[edi], ax
push ebx
call dword [sym.imp.MSVCR100.dll_free]
mov ecx, dword [ebp - 4]
add esp, 4
pop edi
pop ebx
xor ecx, ebp
mov eax, 1
pop esi
call fcn.00425fc4
mov esp, ebp
pop ebp
ret