Function at 0x484851
Capabilities:
Get file size
Read file on windows

Disassembly:
push 0xac
mov eax, 0x68fdc0
call fcn.0056e23b
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x80]
mov esi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x90], eax
mov edi, ebx
call fcn.00483d63
mov dword [ebp - 4], ebx
mov ecx, dword [ebp - 0x90]
call fcn.00484ca5
push ebx
push 0x80
push 3
push ebx
push 3
push SysReAllocString
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0xb0], esi
cmp esi, 0xffffffff
jne 0x4848b7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x484b34
lea eax, [ebp - 0xb8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x4848d6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x484b1f
push dword [ebp - 0xb8]
call fcn.0056e306
mov edi, eax
pop ecx
test edi, edi
je 0x484b1f
push ebx
lea eax, [ebp - 0x8c]
mov dword [ebp - 0x8c], ebx
push eax
push dword [ebp - 0xb8]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4848c9
push 0x6c7301
lea ecx, [ebp - 0x28]
call fcn.0042b0b0
mov byte [ebp - 4], 1
mov eax, ebx
mov ecx, ebx
mov dword [ebp - 0x84], eax
mov esi, ebx
mov dword [ebp - 0x88], ecx
cmp dword [ebp - 0x8c], eax
jbe 0x484b0b
mov edx, dword [ebp - 0xa8]
mov dword [ebp - 0x94], edx
cmp byte [esi + edi], 0xa
mov edx, ecx
jne 0x484a91
inc ecx
mov dword [ebp - 0x88], ecx
cmp edx, 8
ja case.0x484963.3
jmp dword [edx*4 + 0x484b4d]
lea ecx, [ebp - 0x80]
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
push ecx
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.00562a30
pop ecx
pop ecx
jmp case.0x484963.3
lea ecx, [ebp - 0x68]
jmp 0x48496d
lea ecx, [ebp - 0x50]
jmp 0x48496d
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.00651c18
fstp qword [ebp - 0x98]
movsd xmm0, qword [ebp - 0x98]
pop ecx
call fcn.0056e7b1
mov dword [ebp - 0x94], eax
jmp case.0x484963.3
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.00651c18
fstp qword [ebp - 0xa0]
movsd xmm0, qword [ebp - 0xa0]
pop ecx
call fcn.0056e7b1
mov ecx, dword [ebp - 0x94]
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x34], eax
jmp case.0x484963.3
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.00651c18
fstp qword [ebp - 0xa0]
movsd xmm0, qword [ebp - 0xa0]
jmp 0x4849af
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.00651c18
fstp qword [ebp - 0xa0]
movsd xmm0, qword [ebp - 0xa0]
pop ecx
call fcn.0056e7b1
mov ecx, dword [ebp - 0x94]
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x2c], eax
jmp case.0x484963.3
mov ecx, dword [ebp - 0x90]
inc eax
mov dword [ebp - 0x84], eax
lea eax, [ebp - 0x84]
push eax
lea eax, [ebp - 0xa8]
mov dword [ebp - 0x88], ebx
push eax
call fcn.00483b47
mov ecx, dword [ebp - 0xa8]
lea eax, [ebp - 0x80]
push eax
lea ecx, [ecx + 0x14]
call fcn.004840ae
push ebx
push 0x6c7302
lea ecx, [ebp - 0x28]
call fcn.00427cd7
inc esi
mov al, byte [esi + edi]
lea ecx, [ebp - 0x28]
mov byte [ebp - 0xac], al
push dword [ebp - 0xac]
push 1
call fcn.0042bf7a
inc esi
cmp esi, dword [ebp - 0x8c]
jae 0x484ac4
mov eax, dword [ebp - 0x84]
mov ecx, dword [ebp - 0x88]
jmp 0x484947
cmp dword [ebp - 0x84], 0
jne 0x484b0b
cmp dword [ebp - 0x88], 0
jle 0x484b0b
mov ecx, dword [ebp - 0x90]
lea eax, [ebp - 0x84]
push eax
lea eax, [ebp - 0xa8]
mov dword [ebp - 0x84], 1
push eax
call fcn.00483b47
mov ecx, dword [ebp - 0xa8]
lea eax, [ebp - 0x80]
push eax
lea ecx, [ecx + 0x14]
call fcn.004840ae
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x28]
push ebx
push 1
call fcn.0041c86a
mov esi, dword [ebp - 0xb0]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x484b34
push 1
push edi
call fcn.0056df27
pop ecx
pop ecx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x80]
call fcn.00484045
mov eax, ebx
call fcn.0056e1e5
ret 8