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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x260
mov eax, dword [0x6eb874]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x240], 0
mov dword [ebp - 0x230], 0
mov dword [ebp - 0x234], 0
mov dword [ebp - 0x23c], 0
mov dword [ebp - 0x248], 0
xor eax, eax
mov dword [ebp - 0x260], eax
mov dword [ebp - 0x25c], eax
mov ecx, dword [ebp + 8]
call fcn.00425220
test eax, eax
jne 0x480ab6
xor eax, eax
jmp 0x480d68
mov ecx, dword [ebp + 8]
call fcn.00424f20
push eax
lea ecx, [ebp - 0x244]
call fcn.0044a380
lea ecx, [ebp - 0x244]
push ecx
lea edx, [ebp - 0x238]
push edx
call fcn.00480970
add esp, 8
lea ecx, [ebp - 0x244]
call fcn.00413870
lea ecx, [ebp - 0x238]
call fcn.0040dcd0
cmp eax, 0x104
jl 0x480b1d
mov dword [ebp - 0x24c], 0
lea ecx, [ebp - 0x238]
call fcn.00413870
mov eax, dword [ebp - 0x24c]
jmp 0x480d68
push 0
push 0x80
push 3
push 0
push 3
push 0xc0000000
lea ecx, [ebp - 0x238]
call fcn.0040d3c0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x230], eax
cmp dword [ebp - 0x230], 0
je 0x480cd4
cmp dword [ebp - 0x230], 0xffffffff
je 0x480cd4
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
lea ecx, [ebp - 0x260]
push ecx
push 0
push 0
mov edx, dword [ebp - 0x230]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
je 0x480bf7
lea eax, [ebp - 0x22c]
push eax
lea ecx, [ebp - 0x260]
push ecx
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
movzx edx, word [ebp - 0x216]
movzx eax, word [ebp - 0x226]
cmp edx, eax
jne 0x480bf2
movzx ecx, word [ebp - 0x21a]
movzx edx, word [ebp - 0x22a]
cmp ecx, edx
jne 0x480bf2
movzx eax, word [ebp - 0x21c]
movzx ecx, word [ebp - 0x22c]
cmp eax, ecx
jne 0x480bf2
movzx edx, word [ebp - 0x214]
movzx eax, word [ebp - 0x224]
sub edx, eax
push edx
call fcn.00643b3a
add esp, 4
cmp eax, 2
jle 0x480bf7
jmp 0x480cd4
push 0
mov ecx, dword [ebp - 0x230]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x23c], eax
mov edx, dword [ebp - 0x23c]
push edx
call fcn.00613615
add esp, 4
mov dword [ebp - 0x250], eax
mov eax, dword [ebp - 0x250]
mov dword [ebp - 0x234], eax
cmp dword [ebp - 0x234], 0
je 0x480cbd
push 0
lea ecx, [ebp - 0x248]
push ecx
mov edx, dword [ebp - 0x23c]
push edx
mov eax, dword [ebp - 0x234]
push eax
mov ecx, dword [ebp - 0x230]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x480c98
mov edx, dword [ebp - 0x23c]
cmp edx, dword [ebp - 0x248]
jne 0x480c98
mov ecx, dword [ebp + 0xc]
call fcn.0047d9f0
mov eax, dword [ebp - 0x23c]
push eax
mov ecx, dword [ebp - 0x234]
push ecx
mov ecx, dword [ebp + 0xc]
call fcn.00424dc0
mov dword [ebp - 0x240], 1
mov edx, dword [ebp - 0x234]
mov dword [ebp - 0x254], edx
mov eax, dword [ebp - 0x254]
push eax
call fcn.0061361e
add esp, 4
mov dword [ebp - 0x234], 0
mov ecx, dword [ebp - 0x230]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x230], 0
cmp dword [ebp - 0x240], 0
jne 0x480d4b
push ecx
mov ecx, esp
lea edx, [ebp - 0x238]
push edx
call fcn.00421650
call fcn.005b03e0
add esp, 4
mov ax, word [0x68c090]
mov word [ebp - 0x20c], ax
push 0x206
push 0
lea ecx, [ebp - 0x20a]
push ecx
call fcn.0063a460
add esp, 0xc
lea ecx, [ebp - 0x238]
call fcn.0040d3c0
push eax
lea edx, [ebp - 0x20c]
push edx
call fcn.0064244e
add esp, 8
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea ecx, [ebp - 0x20c]
push ecx
call fcn.00557b90
mov edx, dword [ebp - 0x240]
mov dword [ebp - 0x258], edx
lea ecx, [ebp - 0x238]
call fcn.00413870
mov eax, dword [ebp - 0x258]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.006135ac
mov esp, ebp
pop ebp
ret