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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4aff4b
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.004197b0
push eax
lea ecx, [ebp - 0xac]
call fcn.00424bb0
mov dword [ebp - 4], 0
call fcn.004197c0
mov ecx, eax
call fcn.00424e10
movzx eax, al
test eax, eax
je 0x478385
mov ecx, dword [ebp + 8]
push ecx
lea ecx, [ebp - 0xac]
call fcn.00424f30
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
lea ecx, [ebp - 0xac]
call fcn.00424e70
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0xb0], eax
cmp dword [ebp - 0xb0], 0xffffffff
jne 0x4782a7
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xac]
call fcn.00424bf0
jmp 0x478534
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 0x4782e3
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.00424bf0
jmp 0x478534
mov dword [ebp - 0xb4], 0
mov ecx, dword [ebp - 0x1c]
add ecx, 1
push ecx
call fcn.004189fc
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 0x478380
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x304], ecx
mov edx, dword [ebp - 0x304]
push edx
call fcn.00493b0b
add esp, 4
mov dword [ebp - 0x18], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xac]
call fcn.00424bf0
jmp 0x478534
jmp 0x47851a
call fcn.004197c0
push eax
lea ecx, [ebp - 0xac]
call fcn.00424f00
mov dword [ebp - 0xbc], 0
call fcn.004197d0
movzx eax, al
test eax, eax
je 0x4783b9
call fcn.004197e0
mov dword [ebp - 0xbc], eax
jmp 0x4783d9
call fcn.004197f0
push eax
lea ecx, [ebp - 0xac]
call fcn.00424e70
push eax
call fcn.00417390
add esp, 8
mov dword [ebp - 0xbc], eax
cmp dword [ebp - 0xbc], 0
jne 0x4783f9
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xac]
call fcn.00424bf0
jmp 0x478534
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.00417460
add esp, 0x14
test eax, eax
je 0x478437
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xac]
call fcn.00424bf0
jmp 0x478534
mov edx, dword [ebp - 0xc8]
mov dword [ebp - 0x1c], edx
cmp dword [ebp - 0x1c], 0
jne 0x47845d
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xac]
call fcn.00424bf0
jmp 0x478534
mov eax, dword [ebp - 0x1c]
push eax
call fcn.004189fc
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.00417560
add esp, 0x10
mov dword [ebp - 0xb8], eax
cmp dword [ebp - 0xb8], 0
je 0x4784ff
cmp dword [ebp - 0xb8], 0x600
je 0x4784ff
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x30c], eax
mov ecx, dword [ebp - 0x30c]
push ecx
call fcn.00493b0b
add esp, 4
mov dword [ebp - 0x18], 0
call fcn.004197d0
movzx edx, al
test edx, edx
jne 0x4784eb
mov eax, dword [ebp - 0xbc]
push eax
call fcn.004175e0
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xac]
call fcn.00424bf0
jmp 0x478534
call fcn.004197d0
movzx ecx, al
test ecx, ecx
jne 0x47851a
mov edx, dword [ebp - 0xbc]
push edx
call fcn.004175e0
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xac]
call fcn.00424bf0
xor eax, eax
jne 0x47821f
cmp dword [ebp - 0x18], 0
jne 0x478625
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 0x47856e
jmp 0x478625
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 0x478598
mov eax, dword [ebp - 0x2f8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x478625
mov dword [ebp - 0x2fc], 0
mov ecx, dword [ebp - 0x1c]
add ecx, 1
push ecx
call fcn.004189fc
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 0x47861e
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x314], ecx
mov edx, dword [ebp - 0x314]
push edx
call fcn.00493b0b
add esp, 4
mov dword [ebp - 0x18], 0
jmp 0x478625
cmp dword [ebp - 0x18], 0
jne 0x478632
xor eax, eax
jmp 0x478737
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.004956b0
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.004792b0
add esp, 8
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x4786c3
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 0x47871c
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 0x478718
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x318], edx
mov eax, dword [ebp - 0x318]
push eax
call fcn.00493b0b
add esp, 4
mov dword [ebp - 0x18], 0
xor eax, eax
jmp 0x478737
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x31c], ecx
mov edx, dword [ebp - 0x31c]
push edx
call fcn.00493b0b
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.004922e7
mov esp, ebp
pop ebp
ret 4