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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov byte [ebp - 0x19], 0
push 0
push 0
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffff
je 0x432109
lea ecx, [ebp - 0x24]
push ecx
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x24], 0
jne 0x4320ff
cmp dword [ebp - 0x28], 0x1000000
jae 0x4320ff
mov eax, dword [ebp - 0x28]
add eax, 2
push eax
push 8
mov ecx, dword [0x45a5e0]
push ecx
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x4320ff
push 0
lea edx, [ebp - 0x2c]
push edx
mov eax, dword [ebp - 0x28]
push eax
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 8], 0
je 0x43223d
mov ecx, dword [ebp - 8]
movzx edx, byte [ecx]
cmp edx, 0xff
jne 0x43213f
mov eax, dword [ebp - 8]
movzx ecx, byte [eax + 1]
cmp ecx, 0xfe
jne 0x43213f
mov edx, dword [ebp - 8]
add edx, 2
mov dword [ebp - 0x30], edx
mov byte [ebp - 0x19], 0
jmp 0x432154
push 0
mov eax, dword [ebp - 8]
push eax
call fcn.00431cc0
add esp, 8
mov dword [ebp - 0x30], eax
mov byte [ebp - 0x19], 1
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x18]
movzx eax, word [edx]
test eax, eax
je 0x432210
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
movzx eax, word [edx]
test eax, eax
je 0x432199
mov ecx, dword [ebp - 4]
movzx edx, word [ecx]
cmp edx, 0xa
je 0x432199
mov eax, dword [ebp - 4]
movzx ecx, word [eax]
cmp ecx, 0xd
je 0x432199
mov edx, dword [ebp - 4]
add edx, 2
mov dword [ebp - 4], edx
jmp 0x43216e
mov eax, dword [ebp - 4]
movzx ecx, word [eax]
cmp ecx, 0xa
je 0x4321af
mov edx, dword [ebp - 4]
movzx eax, word [edx]
cmp eax, 0xd
jne 0x4321c0
xor ecx, ecx
mov edx, dword [ebp - 4]
mov word [edx], cx
mov eax, dword [ebp - 4]
add eax, 2
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call fcn.00402e30
add esp, 8
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0xc]
add eax, 1
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 4]
movzx edx, word [ecx]
cmp edx, 0xa
je 0x4321f2
mov eax, dword [ebp - 4]
movzx ecx, word [eax]
cmp ecx, 0xd
jne 0x432205
xor edx, edx
mov eax, dword [ebp - 4]
mov word [eax], dx
mov ecx, dword [ebp - 4]
add ecx, 2
mov dword [ebp - 4], ecx
jmp 0x4321dc
mov edx, dword [ebp - 4]
mov dword [ebp - 0x18], edx
jmp 0x43215a
movzx eax, byte [ebp - 0x19]
test eax, eax
je 0x43222a
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x34], ecx
mov edx, dword [ebp - 0x34]
push edx
call fcn.0040564f
add esp, 4
mov eax, dword [ebp - 8]
push eax
push 0
mov ecx, dword [0x45a5e0]
push ecx
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 0xc]
mov dword [edx], eax
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret