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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x864
mov eax, dword [0x604e14]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 8]
push eax
call fcn.0048ce80
add esp, 4
mov dword [ebp - 0x854], eax
cmp dword [ebp - 0x854], 4
jge 0x4b5aa6
push 0
mov ecx, dword [ebp + 8]
push ecx
call fcn.0048de20
add esp, 8
mov eax, 1
jmp 0x4b5f81
mov dword [ebp - 0x850], 0
mov dword [ebp - 0x848], 0
mov dword [ebp - 8], 0
push 1
mov edx, dword [ebp + 8]
push edx
call fcn.0048d2f0
add esp, 8
cmp eax, 4
jne 0x4b5c2b
push 0x208
push 0
lea eax, [ebp - 0x630]
push eax
call fcn.00556110
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x630]
push ecx
push 0
push 1
mov edx, dword [ebp + 8]
push edx
call fcn.0048d7e0
add esp, 0xc
push eax
call fcn.00556680
add esp, 4
push eax
push 0
push 1
mov eax, dword [ebp + 8]
push eax
call fcn.0048d7e0
add esp, 0xc
push eax
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0
push 0
push 3
push 0
push 1
push SysReAllocString
lea ecx, [ebp - 0x630]
push ecx
call fcn.00460cf0
add esp, 0x1c
mov dword [ebp - 0x85c], eax
cmp dword [ebp - 0x85c], 0xffffffff
jne 0x4b5b77
push 0
mov edx, dword [ebp + 8]
push edx
call fcn.0048de20
add esp, 8
mov eax, 1
jmp 0x4b5f81
push 0
mov eax, dword [ebp - 0x85c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x860], eax
mov ecx, dword [ebp - 0x860]
push ecx
call fcn.0045ee00
add esp, 4
mov dword [ebp - 0x848], eax
push 0
lea edx, [ebp - 0x858]
push edx
mov eax, dword [ebp - 0x860]
push eax
mov ecx, dword [ebp - 0x848]
push ecx
mov edx, dword [ebp - 0x85c]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4b5c04
push 0x8000
push 0
mov eax, dword [ebp - 0x848]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov ecx, dword [ebp - 0x85c]
push ecx
call fcn.00460e10
add esp, 4
push 0
mov edx, dword [ebp + 8]
push edx
call fcn.0048de20
add esp, 8
mov eax, 1
jmp 0x4b5f81
mov eax, dword [ebp - 0x85c]
push eax
call fcn.00460e10
add esp, 4
mov dword [ebp - 0x850], 1
mov ecx, dword [ebp - 0x860]
mov dword [ebp - 8], ecx
jmp 0x4b5cab
push 1
mov edx, dword [ebp + 8]
push edx
call fcn.0048d710
add esp, 8
mov dword [ebp - 0x864], eax
mov eax, dword [ebp - 0x864]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x78]
push edx
call fcn.0045c640
add esp, 8
mov dword [ebp - 0x21c], eax
cmp dword [ebp - 0x21c], 0
je 0x4b5c72
mov eax, dword [ebp - 0x21c]
movzx ecx, byte [eax + 4]
test ecx, ecx
je 0x4b5c8a
push 0
mov edx, dword [ebp + 8]
push edx
call fcn.0048de20
add esp, 8
mov eax, 1
jmp 0x4b5f81
mov eax, dword [ebp - 0x21c]
mov ecx, dword [eax + 0x20e]
mov dword [ebp - 0x848], ecx
mov edx, dword [ebp - 0x21c]
mov eax, dword [edx + 0x212]
mov dword [ebp - 8], eax
push 2
mov ecx, dword [ebp + 8]
push ecx
call fcn.0048d2f0
add esp, 8
cmp eax, 4
jne 0x4b5d18
push 0x208
push 0
lea edx, [ebp - 0x428]
push edx
call fcn.00556110
add esp, 0xc
push 0x104
lea eax, [ebp - 0x428]
push eax
push 0
push 2
mov ecx, dword [ebp + 8]
push ecx
call fcn.0048d7e0
add esp, 0xc
push eax
call fcn.00556680
add esp, 4
push eax
push 0
push 2
mov edx, dword [ebp + 8]
push edx
call fcn.0048d7e0
add esp, 0xc
push eax
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [ebp - 0x844], 0
xor eax, eax
mov word [ebp - 0x220], ax
push 3
mov ecx, dword [ebp + 8]
push ecx
call fcn.0048d2f0
add esp, 8
cmp eax, 4
jne 0x4b5da4
push 0x208
push 0
lea edx, [ebp - 0x218]
push edx
call fcn.00556110
add esp, 0xc
push 0x104
lea eax, [ebp - 0x218]
push eax
push 0
push 3
mov ecx, dword [ebp + 8]
push ecx
call fcn.0048d7e0
add esp, 0xc
push eax
call fcn.00556680
add esp, 4
push eax
push 0
push 3
mov edx, dword [ebp + 8]
push edx
call fcn.0048d7e0
add esp, 0xc
push eax
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [ebp - 0x844], 1
jmp 0x4b5db9
push 3
mov eax, dword [ebp + 8]
push eax
call fcn.0048d710
add esp, 8
mov word [ebp - 0x220], ax
mov dword [ebp - 0x634], 0
xor ecx, ecx
mov word [ebp - 0x84c], cx
push 4
mov edx, dword [ebp + 8]
push edx
call fcn.0048d2f0
add esp, 8
cmp eax, 4
jne 0x4b5e45
push 0x208
push 0
lea eax, [ebp - 0x840]
push eax
call fcn.00556110
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x840]
push ecx
push 0
push 4
mov edx, dword [ebp + 8]
push edx
call fcn.0048d7e0
add esp, 0xc
push eax
call fcn.00556680
add esp, 4
push eax
push 0
push 4
mov eax, dword [ebp + 8]
push eax
call fcn.0048d7e0
add esp, 0xc
push eax
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [ebp - 0x634], 1
jmp 0x4b5e5a
push 4
mov ecx, dword [ebp + 8]
push ecx
call fcn.0048d710
add esp, 8
mov word [ebp - 0x84c], ax
mov dword [ebp - 0x638], 0
cmp dword [ebp - 0x854], 4
jne 0x4b5ec5
mov edx, dword [ebp + 0xc]
push edx
push 0
push 0
lea eax, [ebp - 0x840]
push eax
movzx ecx, word [ebp - 0x84c]
push ecx
mov edx, dword [ebp - 0x634]
push edx
lea eax, [ebp - 0x218]
push eax
movzx ecx, word [ebp - 0x220]
push ecx
mov edx, dword [ebp - 0x844]
push edx
lea eax, [ebp - 0x428]
push eax
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 0x848]
push edx
call fcn.004b5880
add esp, 0x30
mov dword [ebp - 0x638], eax
jmp 0x4b5f2e
push 5
mov eax, dword [ebp + 8]
push eax
call fcn.0048d710
add esp, 8
mov word [ebp - 4], ax
mov ecx, dword [ebp + 0xc]
push ecx
movzx edx, word [ebp - 4]
push edx
push 1
lea eax, [ebp - 0x840]
push eax
movzx ecx, word [ebp - 0x84c]
push ecx
mov edx, dword [ebp - 0x634]
push edx
lea eax, [ebp - 0x218]
push eax
movzx ecx, word [ebp - 0x220]
push ecx
mov edx, dword [ebp - 0x844]
push edx
lea eax, [ebp - 0x428]
push eax
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 0x848]
push edx
call fcn.004b5880
add esp, 0x30
mov dword [ebp - 0x638], eax
cmp dword [ebp - 0x848], 0
jne 0x4b5f4c
push 0
mov eax, dword [ebp + 8]
push eax
call fcn.0048de20
add esp, 8
mov eax, 1
jmp 0x4b5f81
cmp dword [ebp - 0x850], 0
je 0x4b5f69
push 0x8000
push 0
mov ecx, dword [ebp - 0x848]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov edx, dword [ebp - 0x638]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.0048de20
add esp, 8
mov eax, 1
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.00555ac5
mov esp, ebp
pop ebp
ret