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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c8a4e
mov eax, dword fs:[0]
push eax
sub esp, 0x320
mov eax, dword [0x4f1040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x2dc], ecx
mov dword [ebp - 0x2c8], 0
mov dword [ebp - 0x2cc], 0
call fcn.0040f0b0
push eax
lea ecx, [ebp - 0x94]
call fcn.0041b5f0
mov dword [ebp - 4], 0
call fcn.0040f0c0
mov ecx, eax
call fcn.0041c340
movzx eax, al
test eax, eax
je 0x48ee1c
mov ecx, dword [ebp + 8]
push ecx
lea ecx, [ebp - 0x94]
call fcn.0041b950
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
lea ecx, [ebp - 0x94]
call fcn.0041c020
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x2d4], eax
cmp dword [ebp - 0x2d4], 0xffffffff
jne 0x48ed1d
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call fcn.0041b780
jmp 0x48efe3
push 0
mov edx, dword [ebp - 0x2d4]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x2cc], eax
cmp dword [ebp - 0x2cc], 0
jne 0x48ed5f
mov eax, dword [ebp - 0x2d4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call fcn.0041b780
jmp 0x48efe3
mov dword [ebp - 0x2e8], 0
mov ecx, dword [ebp - 0x2cc]
add ecx, 1
push ecx
call fcn.0040b9b9
add esp, 4
mov dword [ebp - 0x2fc], eax
mov edx, dword [ebp - 0x2fc]
mov dword [ebp - 0x2c8], edx
mov eax, dword [ebp - 0x2c8]
add eax, dword [ebp - 0x2cc]
mov byte [eax], 0
push 0
lea ecx, [ebp - 0x2e8]
push ecx
mov edx, dword [ebp - 0x2cc]
push edx
mov eax, dword [ebp - 0x2c8]
push eax
mov ecx, dword [ebp - 0x2d4]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, dword [ebp - 0x2d4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x2e8]
cmp eax, dword [ebp - 0x2cc]
je 0x48ee17
mov ecx, dword [ebp - 0x2c8]
mov dword [ebp - 0x300], ecx
mov edx, dword [ebp - 0x300]
push edx
call fcn.0040b779
add esp, 4
mov dword [ebp - 0x2c8], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call fcn.0041b780
jmp 0x48efe3
jmp 0x48efc9
call fcn.0040f0c0
push eax
lea ecx, [ebp - 0x94]
call fcn.0041b920
mov dword [ebp - 0x2d0], 0
call fcn.0040f3f0
movzx eax, al
test eax, eax
je 0x48ee50
call fcn.0040f0d0
mov dword [ebp - 0x2d0], eax
jmp 0x48ee70
call fcn.0040f0e0
push eax
lea ecx, [ebp - 0x94]
call fcn.0041c020
push eax
call fcn.0041ff50
add esp, 8
mov dword [ebp - 0x2d0], eax
cmp dword [ebp - 0x2d0], 0
jne 0x48ee90
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call fcn.0041b780
jmp 0x48efe3
lea ecx, [ebp - 0x2c4]
push ecx
lea edx, [ebp - 0x308]
push edx
push 1
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x2d0]
push ecx
call fcn.0041f220
add esp, 0x14
test eax, eax
je 0x48eece
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call fcn.0041b780
jmp 0x48efe3
mov edx, dword [ebp - 0x98]
mov dword [ebp - 0x2cc], edx
cmp dword [ebp - 0x2cc], 0
jne 0x48eefa
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call fcn.0041b780
jmp 0x48efe3
mov eax, dword [ebp - 0x2cc]
push eax
call fcn.0040b9b9
add esp, 4
mov dword [ebp - 0x304], eax
mov ecx, dword [ebp - 0x304]
mov dword [ebp - 0x2c8], ecx
mov edx, dword [ebp - 0x2cc]
push edx
mov eax, dword [ebp - 0x2c8]
push eax
mov ecx, dword [ebp - 0x308]
push ecx
mov edx, dword [ebp - 0x2d0]
push edx
call fcn.00420880
add esp, 0x10
mov dword [ebp - 0x2ec], eax
cmp dword [ebp - 0x2ec], 0
je 0x48efae
cmp dword [ebp - 0x2ec], 0x600
je 0x48efae
mov eax, dword [ebp - 0x2c8]
mov dword [ebp - 0x30c], eax
mov ecx, dword [ebp - 0x30c]
push ecx
call fcn.0040b779
add esp, 4
mov dword [ebp - 0x2c8], 0
call fcn.0040f3f0
movzx edx, al
test edx, edx
jne 0x48ef9a
mov eax, dword [ebp - 0x2d0]
push eax
call fcn.0041eb80
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call fcn.0041b780
jmp 0x48efe3
call fcn.0040f3f0
movzx ecx, al
test ecx, ecx
jne 0x48efc9
mov edx, dword [ebp - 0x2d0]
push edx
call fcn.0041eb80
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call fcn.0041b780
xor eax, eax
jne 0x48ec95
cmp dword [ebp - 0x2c8], 0
jne 0x48f0f8
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 - 0x2d8], eax
cmp dword [ebp - 0x2d8], 0xffffffff
jne 0x48f020
jmp 0x48f0f8
push 0
mov edx, dword [ebp - 0x2d8]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x2cc], eax
cmp dword [ebp - 0x2cc], 0
jne 0x48f050
mov eax, dword [ebp - 0x2d8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x48f0f8
mov dword [ebp - 0x2f0], 0
mov ecx, dword [ebp - 0x2cc]
add ecx, 1
push ecx
call fcn.0040b9b9
add esp, 4
mov dword [ebp - 0x310], eax
mov edx, dword [ebp - 0x310]
mov dword [ebp - 0x2c8], edx
mov eax, dword [ebp - 0x2c8]
add eax, dword [ebp - 0x2cc]
mov byte [eax], 0
push 0
lea ecx, [ebp - 0x2f0]
push ecx
mov edx, dword [ebp - 0x2cc]
push edx
mov eax, dword [ebp - 0x2c8]
push eax
mov ecx, dword [ebp - 0x2d8]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, dword [ebp - 0x2d8]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x2f0]
cmp eax, dword [ebp - 0x2cc]
je 0x48f0f1
mov ecx, dword [ebp - 0x2c8]
mov dword [ebp - 0x314], ecx
mov edx, dword [ebp - 0x314]
push edx
call fcn.0040b779
add esp, 4
mov dword [ebp - 0x2c8], 0
jmp 0x48f0f8
cmp dword [ebp - 0x2c8], 0
jne 0x48f108
xor eax, eax
jmp 0x48f29a
mov eax, dword [ebp - 0x2cc]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 0x2e4], eax
mov ecx, dword [ebp - 0x2e4]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 0x318], eax
mov edx, dword [ebp - 0x2cc]
push edx
mov eax, dword [ebp - 0x2c8]
push eax
mov ecx, dword [ebp - 0x318]
push ecx
call fcn.004a02a0
add esp, 0xc
mov edx, dword [ebp - 0x2e4]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [ebp - 0x2dc]
add eax, 0x670
push eax
push 1
mov ecx, dword [ebp - 0x2e4]
push ecx
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
mov edx, dword [ebp - 0x2dc]
mov eax, dword [edx + 0x670]
mov dword [ebp - 0x31c], eax
push 0x10
call sub.gdiplus.dll_GdipAlloc
mov dword [ebp - 0x2f4], eax
mov dword [ebp - 4], 1
cmp dword [ebp - 0x2f4], 0
je 0x48f1c0
push 0
mov ecx, dword [ebp - 0x31c]
push ecx
mov ecx, dword [ebp - 0x2f4]
call fcn.0048e8b0
mov dword [ebp - 0x2f8], eax
jmp 0x48f1ca
mov dword [ebp - 0x2f8], 0
mov edx, dword [ebp - 0x2f8]
mov dword [ebp - 0x320], edx
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x320]
mov dword [ebp - 0x2e0], eax
cmp dword [ebp - 0x2e0], 0
je 0x48f217
mov ecx, dword [ebp - 0x2e0]
mov edx, dword [ecx + 8]
mov dword [ebp - 0x324], edx
mov eax, dword [ebp - 0x2e0]
mov dword [eax + 8], 0
cmp dword [ebp - 0x324], 0
je 0x48f279
mov ecx, dword [ebp - 0x2dc]
mov edx, dword [ecx + 0x670]
mov eax, dword [ebp - 0x2dc]
mov ecx, dword [eax + 0x670]
mov edx, dword [edx]
push ecx
mov eax, dword [edx + 8]
call eax
mov ecx, dword [ebp - 0x2dc]
mov dword [ecx + 0x670], 0
cmp dword [ebp - 0x2c8], 0
je 0x48f275
mov edx, dword [ebp - 0x2c8]
mov dword [ebp - 0x328], edx
mov eax, dword [ebp - 0x328]
push eax
call fcn.0040b779
add esp, 4
mov dword [ebp - 0x2c8], 0
xor eax, eax
jmp 0x48f29a
mov ecx, dword [ebp - 0x2c8]
mov dword [ebp - 0x32c], ecx
mov edx, dword [ebp - 0x32c]
push edx
call fcn.0040b779
add esp, 4
mov eax, dword [ebp - 0x2e0]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040b76b
mov esp, ebp
pop ebp
ret 4