Function at 0x4636f0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x150
mov eax, dword [esp + 0x160]
push ebx
push ebp
xor ebp, ebp
push esi
cmp eax, ebp
push edi
mov dword [esp + 0x18], ebp
je 0x463964
mov eax, dword [esp + 0x164]
lea ecx, [esp + 0x64]
push eax
push 0xfa
push ecx
mov dword [esp + 0x1c], ebp
call dword [sym.imp.MSVCRT.dll_fgets]
add esp, 0xc
test eax, eax
je 0x46394a
mov ebp, dword [sym.imp.MSVCRT.dll_strtok]
mov ebx, dword [esp + 0x1c]
mov edx, dword [sym.imp.MSVCRT.dll___mb_cur_max]
cmp dword [edx], 1
jle 0x463761
movsx eax, byte [esp + 0x64]
push 0x107
push eax
call dword [sym.imp.MSVCRT.dll__isctype]
add esp, 8
jmp 0x463777
mov edx, dword [sym.imp.MSVCRT.dll__pctype]
movsx ecx, byte [esp + 0x64]
mov eax, dword [edx]
mov ax, word [eax + ecx*2]
and eax, 0x107
test eax, eax
je 0x463927
mov eax, dword [esp + 0x10]
test eax, eax
je 0x46387d
lea ecx, [esp + 0x64]
push 0x4d0200
push ecx
call ebp
add esp, 8
mov dword [esp + 0x60], 0
mov dword [esp + 0x5c], 0
mov dword [esp + 0x58], 0
xor esi, esi
lea edi, [esp + 0x38]
test eax, eax
je 0x4637da
push eax
call dword [sym.imp.MSVCRT.dll_atof]
fstp dword [edi]
push 0x4d0200
push 0
call ebp
add esp, 0xc
inc esi
add edi, 4
cmp esi, 0xb
jb 0x4637b8
cmp esi, 8
jb 0x463927
fld dword [esp + 0x38]
fmul dword [0x4bfed4]
lea edx, [esp + 0x20]
push edx
fstp dword [ebx]
call fcn.00458ca0
mov eax, dword [esp + 0x4c]
push 2
lea ecx, [esp + 0x44]
push eax
lea edx, [esp + 0x2c]
push ecx
push edx
call fcn.00458cb0
fld dword [esp + 0x40]
fchs
fstp dword [ebx + 0x10]
mov eax, dword [esp + 0x34]
lea edx, [ebx + 0x14]
mov dword [ebx + 4], eax
mov ecx, dword [esp + 0x38]
mov dword [ebx + 8], ecx
add esp, 0x14
fld dword [esp + 0x28]
fchs
fstp dword [ebx + 0xc]
mov eax, dword [esp + 0x4c]
mov dword [edx], eax
mov ecx, dword [esp + 0x50]
mov dword [edx + 4], ecx
mov eax, dword [esp + 0x54]
lea ecx, [ebx + 0x20]
add ebx, 0x2c
mov dword [edx + 8], eax
mov edx, dword [esp + 0x58]
mov dword [ecx], edx
mov eax, dword [esp + 0x5c]
mov dword [ecx + 4], eax
mov edx, dword [esp + 0x60]
mov eax, dword [esp + 0x18]
mov dword [ecx + 8], edx
mov ecx, dword [esp + 0x10]
inc eax
cmp eax, ecx
mov dword [esp + 0x18], eax
jae 0x463ce1
jmp 0x463927
lea eax, [esp + 0x64]
push 0x4d01fc
push eax
call ebp
add esp, 8
test eax, eax
je 0x463927
push eax
call fcn.0043b6d0
mov edi, eax
add esp, 4
test edi, edi
je 0x463927
push 0x4d01fc
push 0
call ebp
mov esi, eax
add esp, 8
test esi, esi
je 0x463927
push 7
push str.frames
push esi
call dword [sym.imp.MSVCRT.dll__strnicmp]
add esp, 0xc
test eax, eax
jne 0x463927
add esi, 7
push esi
call dword [sym.imp.MSVCRT.dll_atoi]
add esp, 4
cmp eax, 0x3e8
mov dword [esp + 0x10], eax
ja 0x46394a
cmp eax, 2
jb 0x46394a
lea ecx, [eax + eax*4]
lea edx, [eax + ecx*2]
lea eax, [edx*4 + 4]
push eax
push 1
call dword [sym.imp.MSVCRT.dll_calloc]
add esp, 8
mov dword [edi*4 + 0x4ef5e8], eax
test eax, eax
je 0x46394a
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x18], 0
mov dword [eax], ecx
mov ebx, dword [edi*4 + 0x4ef5e8]
add ebx, 4
mov edx, dword [esp + 0x164]
lea eax, [esp + 0x64]
push edx
push 0xfa
push eax
call dword [sym.imp.MSVCRT.dll_fgets]
add esp, 0xc
test eax, eax
jne 0x463740
mov edx, dword [esp + 0x18]
mov ecx, 2
cmp ecx, edx
pop edi
sbb eax, eax
pop esi
pop ebp
pop ebx
neg eax
add esp, 0x150
ret
mov ebx, dword [esp + 0x16c]
mov edi, dword [esp + 0x164]
cmp ebx, ebp
je 0x46399f
push edi
call fcn.00463d00
mov esi, eax
add esp, 4
test esi, esi
je 0x463cf1
push esi
call fcn.0043b6d0
mov ebp, eax
push esi
mov dword [esp + 0x20], ebp
call dword [sym.imp.MSVCRT.dll_free]
add esp, 8
mov esi, dword [sym.imp.MSVCRT.dll_fread]
push edi
push 1
lea edx, [esp + 0x24]
push 4
push edx
call esi
add esp, 0x10
test eax, eax
je 0x463cf1
push edi
push 1
lea eax, [esp + 0x18]
push 4
push eax
call esi
add esp, 0x10
test eax, eax
je 0x463cf1
lea ecx, [esp + 0x1c]
push ecx
call fcn.004636d0
lea edx, [esp + 0x14]
push edx
call fcn.004636d0
mov eax, dword [esp + 0x24]
xor esi, esi
add esp, 8
cmp eax, esi
je 0x463cf1
mov ecx, dword [esp + 0x10]
cmp ecx, 0x3e8
ja 0x463cf1
cmp ebx, esi
jne 0x463bd9
cmp eax, 4
jne 0x463afb
mov eax, dword [esp + 0x168]
mov ebp, 0x2b
cmp eax, esi
mov dword [esp + 0x18], ebp
je 0x463b0d
mov eax, dword [0x4ef694]
cmp eax, esi
jne 0x463a64
lea eax, [ecx + ecx*4]
lea ecx, [ecx + eax*2]
lea edx, [ecx*4 + 4]
push edx
push 1
call dword [sym.imp.MSVCRT.dll_calloc]
add esp, 8
cmp eax, esi
mov dword [0x4ef694], eax
je 0x463cf1
mov ecx, dword [esp + 0x10]
cmp ecx, dword [eax]
jbe 0x463b3f
lea edx, [ecx + ecx*4]
lea ecx, [ecx + edx*2]
lea edx, [ecx*4 + 4]
push edx
push eax
call dword [sym.imp.MSVCRT.dll_realloc]
add esp, 8
cmp eax, esi
mov dword [0x4ef694], eax
je 0x463cf1
mov esi, dword [eax]
lea ebp, [eax + 4]
test esi, esi
ja 0x463a9e
xor esi, esi
jmp 0x463a9f
dec esi
mov ecx, dword [esp + 0x10]
lea ebx, [esi + 1]
cmp ebx, ecx
jae 0x463af7
lea eax, [ebx + ebx*4]
lea ecx, [ebx + eax*2]
lea edx, [ebp + ecx*4 + 0x18]
mov ecx, 0xb
xor eax, eax
lea edi, [edx - 0x18]
rep stosd dword es:[edi], eax
mov eax, dword [0x4ef694]
cmp dword [eax], 0
jbe 0x463aeb
lea eax, [esi + esi*4]
lea ecx, [esi + eax*2]
lea eax, [ebp + ecx*4]
mov ecx, dword [ebp + ecx*4 + 0x14]
mov dword [edx - 4], ecx
mov ecx, dword [eax + 0x18]
mov dword [edx], ecx
mov eax, dword [eax + 0x1c]
mov dword [edx + 4], eax
mov eax, dword [0x4ef694]
mov ecx, dword [esp + 0x10]
inc ebx
add edx, 0x2c
cmp ebx, ecx
jb 0x463ab4
mov dword [eax], ecx
jmp 0x463b3b
cmp eax, 0x10
jne 0x463be6
mov ebp, 0x2c
mov dword [esp + 0x18], ebp
lea edx, [ecx + ecx*4]
lea eax, [ecx + edx*2]
lea ecx, [eax*4 + 4]
push ecx
push 1
call dword [sym.imp.MSVCRT.dll_calloc]
add esp, 8
cmp eax, esi
mov dword [ebp*4 + 0x4ef5e8], eax
je 0x463cf1
mov edx, dword [esp + 0x10]
mov dword [eax], edx
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov esi, dword [esp + 0x1c]
shr esi, 2
mov ebp, dword [eax*4 + 0x4ef5e8]
xor edi, edi
add ebp, 4
mov dword [esp + 0x1c], esi
test ecx, ecx
jbe 0x463ce1
lea esi, [ebp + 4]
cmp dword [esp + 0x18], 0x2b
jne 0x463b80
mov eax, dword [esp + 0x168]
test eax, eax
jne 0x463b80
push esi
call fcn.00458ca0
add esp, 4
xor ebx, ebx
mov ecx, dword [esp + 0x164]
lea edx, [esp + 0x14]
push ecx
push 1
push 4
push edx
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x10
test eax, eax
je 0x463cf1
mov eax, dword [esp + 0x18]
test eax, eax
je 0x463cc1
lea eax, [esp + 0x14]
push eax
call fcn.004636d0
add esp, 4
test ebx, ebx
jne 0x463bef
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x34], ebx
mov dword [esp + 0x30], ecx
fild qword [esp + 0x30]
fstp dword [ebp]
jmp 0x463cc1
cmp ebp, esi
je 0x463be6
cmp eax, 0x10
je 0x463b0d
mov dword [esp + 0x18], esi
jmp 0x463b3f
mov eax, dword [esp + 0x1c]
cmp eax, 4
jne 0x463c36
cmp ebx, 1
jne 0x463c09
mov edx, dword [esp + 0x14]
mov dword [esi + 0xc], edx
jmp 0x463cc1
cmp ebx, 2
jne 0x463c19
mov eax, dword [esp + 0x14]
mov dword [esi], eax
jmp 0x463cc1
cmp ebx, 3
jne 0x463c2a
mov ecx, dword [esp + 0x14]
mov dword [esi + 4], ecx
jmp 0x463cc1
mov edx, dword [esp + 0x14]
mov dword [esi + 8], edx
jmp 0x463cc1
cmp eax, 3
jne 0x463c60
cmp ebx, 1
jne 0x463c49
mov eax, dword [esp + 0x14]
mov dword [esi + 0x10], eax
jmp 0x463cc1
cmp ebx, 2
jne 0x463c57
mov ecx, dword [esp + 0x14]
mov dword [esi + 0x14], ecx
jmp 0x463cc1
mov edx, dword [esp + 0x14]
mov dword [esi + 0x18], edx
jmp 0x463cc1
mov eax, dword [0x4ef5e4]
test eax, eax
je 0x463c7b
cmp dword [esp + 0x168], 1
je 0x463c7b
mov dword [esp + 0x14], 0
mov eax, dword [esp + 0x18]
mov ecx, dword [eax*4 + 0x4ef5e8]
cmp edi, dword [ecx]
jae 0x463cc1
mov eax, dword [esp + 0x168]
test eax, eax
jne 0x463ca4
fld dword [esp + 0x14]
fmul dword [0x4bf784]
fstp dword [esi + 0x10]
jmp 0x463cc1
fld dword [esp + 0x14]
cmp eax, 1
jne 0x463cb8
fmul dword [0x4bf784]
fstp dword [esi + 0x14]
jmp 0x463cc1
fmul dword [0x4bfed0]
fstp dword [esi + 0x18]
mov eax, dword [esp + 0x1c]
inc ebx
cmp ebx, eax
jbe 0x463b82
mov eax, dword [esp + 0x10]
inc edi
add ebp, 0x2c
add esi, 0x2c
cmp edi, eax
jb 0x463b65
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x150
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x150
ret