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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4aff9b
mov eax, dword fs:[0]
push eax
sub esp, 0x320
mov eax, dword [0x4d0c20]
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.004197d0
push eax
lea ecx, [ebp - 0xac]
call fcn.00424bd0
mov dword [ebp - 4], 0
call fcn.004197e0
mov ecx, eax
call fcn.00424e30
movzx eax, al
test eax, eax
je 0x4783a5
mov ecx, dword [ebp + 8]
push ecx
lea ecx, [ebp - 0xac]
call fcn.00424f50
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
lea ecx, [ebp - 0xac]
call fcn.00424e90
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0xb0], eax
cmp dword [ebp - 0xb0], 0xffffffff
jne 0x4782c7
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xac]
call fcn.00424c10
jmp 0x478554
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 0x478303
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.00424c10
jmp 0x478554
mov dword [ebp - 0xb4], 0
mov ecx, dword [ebp - 0x1c]
add ecx, 1
push ecx
call fcn.00418a1c
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 0x4783a0
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x304], ecx
mov edx, dword [ebp - 0x304]
push edx
call fcn.00493b5b
add esp, 4
mov dword [ebp - 0x18], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xac]
call fcn.00424c10
jmp 0x478554
jmp 0x47853a
call fcn.004197e0
push eax
lea ecx, [ebp - 0xac]
call fcn.00424f20
mov dword [ebp - 0xbc], 0
call fcn.004197f0
movzx eax, al
test eax, eax
je 0x4783d9
call fcn.00419800
mov dword [ebp - 0xbc], eax
jmp 0x4783f9
call fcn.00419810
push eax
lea ecx, [ebp - 0xac]
call fcn.00424e90
push eax
call fcn.004173b0
add esp, 8
mov dword [ebp - 0xbc], eax
cmp dword [ebp - 0xbc], 0
jne 0x478419
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xac]
call fcn.00424c10
jmp 0x478554
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.00417480
add esp, 0x14
test eax, eax
je 0x478457
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xac]
call fcn.00424c10
jmp 0x478554
mov edx, dword [ebp - 0xc8]
mov dword [ebp - 0x1c], edx
cmp dword [ebp - 0x1c], 0
jne 0x47847d
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xac]
call fcn.00424c10
jmp 0x478554
mov eax, dword [ebp - 0x1c]
push eax
call fcn.00418a1c
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.00417580
add esp, 0x10
mov dword [ebp - 0xb8], eax
cmp dword [ebp - 0xb8], 0
je 0x47851f
cmp dword [ebp - 0xb8], 0x600
je 0x47851f
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x30c], eax
mov ecx, dword [ebp - 0x30c]
push ecx
call fcn.00493b5b
add esp, 4
mov dword [ebp - 0x18], 0
call fcn.004197f0
movzx edx, al
test edx, edx
jne 0x47850b
mov eax, dword [ebp - 0xbc]
push eax
call fcn.00417600
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xac]
call fcn.00424c10
jmp 0x478554
call fcn.004197f0
movzx ecx, al
test ecx, ecx
jne 0x47853a
mov edx, dword [ebp - 0xbc]
push edx
call fcn.00417600
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xac]
call fcn.00424c10
xor eax, eax
jne 0x47823f
cmp dword [ebp - 0x18], 0
jne 0x478645
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 0x47858e
jmp 0x478645
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 0x4785b8
mov eax, dword [ebp - 0x2f8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x478645
mov dword [ebp - 0x2fc], 0
mov ecx, dword [ebp - 0x1c]
add ecx, 1
push ecx
call fcn.00418a1c
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 0x47863e
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x314], ecx
mov edx, dword [ebp - 0x314]
push edx
call fcn.00493b5b
add esp, 4
mov dword [ebp - 0x18], 0
jmp 0x478645
cmp dword [ebp - 0x18], 0
jne 0x478652
xor eax, eax
jmp 0x478757
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.00495700
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.004792d0
add esp, 8
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x4786e3
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 0x47873c
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 0x478738
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x318], edx
mov eax, dword [ebp - 0x318]
push eax
call fcn.00493b5b
add esp, 4
mov dword [ebp - 0x18], 0
xor eax, eax
jmp 0x478757
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x31c], ecx
mov edx, dword [ebp - 0x31c]
push edx
call fcn.00493b5b
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.00492337
mov esp, ebp
pop ebp
ret 4