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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c6a3b
mov eax, dword fs:[0]
push eax
sub esp, 0x320
mov eax, dword [0x4ebfe0]
xor eax, ebp
mov dword [ebp - 0x24], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x32c], ecx
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
call fcn.0041cb40
push eax
lea ecx, [ebp - 0xac]
call fcn.00427f20
mov dword [ebp - 4], 0
call fcn.0041cb50
mov ecx, eax
call fcn.00428180
movzx eax, al
test eax, eax
je 0x47b995
mov ecx, dword [ebp + 8]
push ecx
lea ecx, [ebp - 0xac]
call fcn.004282a0
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
lea ecx, [ebp - 0xac]
call fcn.004281e0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0xb0], eax
cmp dword [ebp - 0xb0], 0xffffffff
jne 0x47b8b7
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xac]
call fcn.00427f60
jmp 0x47bb44
push 0
mov edx, dword [ebp - 0xb0]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x47b8f3
mov eax, dword [ebp - 0xb0]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xac]
call fcn.00427f60
jmp 0x47bb44
mov dword [ebp - 0xb4], 0
mov ecx, dword [ebp - 0x1c]
add ecx, 1
push ecx
call fcn.0041bd2c
add esp, 4
mov dword [ebp - 0x300], eax
mov edx, dword [ebp - 0x300]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x18]
add eax, dword [ebp - 0x1c]
mov byte [eax], 0
push 0
lea ecx, [ebp - 0xb4]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0xb0]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, dword [ebp - 0xb0]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0xb4]
cmp eax, dword [ebp - 0x1c]
je 0x47b990
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x304], ecx
mov edx, dword [ebp - 0x304]
push edx
call fcn.004a69ed
add esp, 4
mov dword [ebp - 0x18], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xac]
call fcn.00427f60
jmp 0x47bb44
jmp 0x47bb2a
call fcn.0041cb50
push eax
lea ecx, [ebp - 0xac]
call fcn.00428270
mov dword [ebp - 0xbc], 0
call fcn.0041cb60
movzx eax, al
test eax, eax
je 0x47b9c9
call fcn.0041cb70
mov dword [ebp - 0xbc], eax
jmp 0x47b9e9
call fcn.0041cb80
push eax
lea ecx, [ebp - 0xac]
call fcn.004281e0
push eax
call fcn.0041a6f0
add esp, 8
mov dword [ebp - 0xbc], eax
cmp dword [ebp - 0xbc], 0
jne 0x47ba09
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xac]
call fcn.00427f60
jmp 0x47bb44
lea ecx, [ebp - 0x2f4]
push ecx
lea edx, [ebp - 0xc0]
push edx
push 1
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0xbc]
push ecx
call fcn.0041a7c0
add esp, 0x14
test eax, eax
je 0x47ba47
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xac]
call fcn.00427f60
jmp 0x47bb44
mov edx, dword [ebp - 0xc8]
mov dword [ebp - 0x1c], edx
cmp dword [ebp - 0x1c], 0
jne 0x47ba6d
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xac]
call fcn.00427f60
jmp 0x47bb44
mov eax, dword [ebp - 0x1c]
push eax
call fcn.0041bd2c
add esp, 4
mov dword [ebp - 0x308], eax
mov ecx, dword [ebp - 0x308]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0xc0]
push ecx
mov edx, dword [ebp - 0xbc]
push edx
call fcn.0041a8c0
add esp, 0x10
mov dword [ebp - 0xb8], eax
cmp dword [ebp - 0xb8], 0
je 0x47bb0f
cmp dword [ebp - 0xb8], 0x600
je 0x47bb0f
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x30c], eax
mov ecx, dword [ebp - 0x30c]
push ecx
call fcn.004a69ed
add esp, 4
mov dword [ebp - 0x18], 0
call fcn.0041cb60
movzx edx, al
test edx, edx
jne 0x47bafb
mov eax, dword [ebp - 0xbc]
push eax
call fcn.0041a940
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xac]
call fcn.00427f60
jmp 0x47bb44
call fcn.0041cb60
movzx ecx, al
test ecx, ecx
jne 0x47bb2a
mov edx, dword [ebp - 0xbc]
push edx
call fcn.0041a940
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xac]
call fcn.00427f60
xor eax, eax
jne 0x47b82f
cmp dword [ebp - 0x18], 0
jne 0x47bc35
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x2f8], eax
cmp dword [ebp - 0x2f8], 0xffffffff
jne 0x47bb7e
jmp 0x47bc35
push 0
mov edx, dword [ebp - 0x2f8]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x47bba8
mov eax, dword [ebp - 0x2f8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x47bc35
mov dword [ebp - 0x2fc], 0
mov ecx, dword [ebp - 0x1c]
add ecx, 1
push ecx
call fcn.0041bd2c
add esp, 4
mov dword [ebp - 0x310], eax
mov edx, dword [ebp - 0x310]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x18]
add eax, dword [ebp - 0x1c]
mov byte [eax], 0
push 0
lea ecx, [ebp - 0x2fc]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x2f8]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, dword [ebp - 0x2f8]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x2fc]
cmp eax, dword [ebp - 0x1c]
je 0x47bc2e
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x314], ecx
mov edx, dword [ebp - 0x314]
push edx
call fcn.004a69ed
add esp, 4
mov dword [ebp - 0x18], 0
jmp 0x47bc35
cmp dword [ebp - 0x18], 0
jne 0x47bc42
xor eax, eax
jmp 0x47bd47
mov eax, dword [ebp - 0x1c]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.004a85b0
add esp, 0xc
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [ebp - 0x32c]
add eax, 0x670
push eax
push 1
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
push 0
mov edx, dword [ebp - 0x32c]
mov eax, dword [edx + 0x670]
push eax
call fcn.0047c8a0
add esp, 8
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x47bcd3
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx + 8]
mov dword [ebp - 0x328], edx
mov eax, dword [ebp - 0x20]
mov dword [eax + 8], 0
cmp dword [ebp - 0x328], 0
je 0x47bd2c
mov ecx, dword [ebp - 0x32c]
mov edx, dword [ecx + 0x670]
mov eax, dword [ebp - 0x32c]
mov ecx, dword [eax + 0x670]
mov edx, dword [edx]
push ecx
mov eax, dword [edx + 8]
call eax
mov ecx, dword [ebp - 0x32c]
mov dword [ecx + 0x670], 0
cmp dword [ebp - 0x18], 0
je 0x47bd28
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x318], edx
mov eax, dword [ebp - 0x318]
push eax
call fcn.004a69ed
add esp, 4
mov dword [ebp - 0x18], 0
xor eax, eax
jmp 0x47bd47
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x31c], ecx
mov edx, dword [ebp - 0x31c]
push edx
call fcn.004a69ed
add esp, 4
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x24]
xor ecx, ebp
call fcn.004a4ea6
mov esp, ebp
pop ebp
ret 4