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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x28], ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x460e1f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
test eax, eax
je 0x460a3f
call fcn.00402688
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x24]
call fcn.0045fc14
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 4], edx
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 8], edx
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0xc], edx
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x10], edx
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x14], edx
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x1c], edx
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x20], edx
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x18], edx
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x2c], edx
mov byte [ebp - 5], 0
mov eax, ebx
call fcn.004074d4
test al, al
je 0x460e04
lea edx, [ebp - 0x28]
mov eax, ebx
call fcn.004076a0
mov eax, dword [ebp - 0x28]
lea edx, [ebp - 0x24]
call fcn.00406f98
mov eax, dword [ebp - 0x24]
mov edx, 0x460e38
call fcn.00403d20
jne 0x460bb4
push 0x40
mov ecx, ebx
mov dl, 1
mov eax, dword [0x40cb94]
call fcn.004100f0
mov dword [ebp - 0x18], eax
mov dl, 1
mov eax, dword [0x451a4c]
call fcn.004537b4
mov dword [ebp - 0x14], eax
xor eax, eax
push ebp
push 0x460bad
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x18]
call fcn.004538d0
mov eax, dword [ebp - 0x18]
call fcn.0040fdac
call fcn.00402670
mov edx, dword [ebp - 4]
mov dword [edx + 4], eax
xor ecx, ecx
xor edx, edx
mov eax, dword [ebp - 0x18]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov eax, dword [ebp - 0x18]
call fcn.0040fdac
mov ecx, eax
mov eax, dword [ebp - 4]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 0x18]
mov ebx, dword [eax]
call dword [ebx + 4]
mov eax, dword [ebp - 0x14]
call fcn.0045383c
mov esi, eax
dec esi
test esi, esi
jl 0x460b8f
inc esi
xor edi, edi
mov edx, edi
mov eax, dword [ebp - 0x14]
call fcn.00453828
mov ebx, eax
lea edx, [ebp - 0x24]
movzx eax, word [ebx + 0xc]
call fcn.004072a0
mov eax, dword [ebp - 0x24]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
add eax, dword [ebx + 0x14]
push eax
mov eax, dword [ebx + 0x10]
push eax
push 0
mov ecx, dword [ebx + 8]
mov edx, dword [ebx + 4]
mov eax, dword [ebp - 4]
call fcn.00462804
inc edi
dec esi
jne 0x460b51
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x460e04
mov eax, dword [ebp - 0x14]
call fcn.00402de8
mov eax, dword [ebp - 0x18]
call fcn.00402de8
ret
lea edx, [ebp - 0x28]
mov eax, ebx
call fcn.004076a0
mov eax, dword [ebp - 0x28]
lea edx, [ebp - 0x24]
call fcn.00406f98
mov eax, dword [ebp - 0x24]
mov edx, 0x460e48
call fcn.00403d20
jne 0x460cd1
mov dl, 1
mov eax, dword [0x40c9e8]
call fcn.00402dc0
mov dword [ebp - 0x20], eax
xor eax, eax
push ebp
push 0x460cca
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, ebx
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax]
call dword [ecx + 0x58]
push ebx
mov eax, dword [0x4bc54c]
mov ax, word [eax]
push eax
mov ecx, dword [ebp - 0x20]
mov dl, 1
mov eax, dword [0x4597b4]
call fcn.00459974
mov dword [ebp - 0x1c], eax
xor eax, eax
push ebp
push 0x460cad
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x1c]
call fcn.00459c58
test al, al
jne 0x460c48
call fcn.0040348c
call fcn.0040348c
jmp 0x460e04
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x1c]
mov esi, dword [eax + 8]
dec esi
test esi, esi
jl 0x460c97
inc esi
xor edi, edi
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x1c]
mov edx, edi
call fcn.0040db70
mov ebx, eax
lea edx, [ebp - 0x24]
movzx eax, word [ebx + 0x10]
call fcn.004072a0
mov eax, dword [ebp - 0x24]
push eax
mov eax, dword [ebx]
push eax
mov eax, dword [ebx + 4]
push eax
push 1
mov ecx, dword [ebx + 0xc]
mov edx, dword [ebx + 8]
mov eax, dword [ebp - 4]
call fcn.00462804
xor eax, eax
mov dword [ebx], eax
inc edi
dec esi
jne 0x460c59
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x460cb4
mov eax, dword [ebp - 0x1c]
call fcn.00402de8
ret
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, ebx
call fcn.00403dd4
push eax
call sub.kernel32.dll_CreateFileA_1
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
je 0x460e04
xor eax, eax
push ebp
push 0x460d79
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
add eax, 0x40
push eax
mov eax, dword [ebp - 4]
add eax, 0x38
push eax
mov eax, dword [ebp - 4]
add eax, 0x30
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetFileTime
push 0
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetFileSize_1
mov ebx, eax
mov eax, dword [ebp - 4]
mov dword [eax + 8], ebx
mov eax, ebx
call fcn.00402670
mov esi, eax
mov eax, dword [ebp - 4]
mov dword [eax + 4], esi
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
push eax
push esi
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_ReadFile_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x460d80
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_CloseHandle_1
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x460e26
lea eax, [ebp - 0x28]
mov edx, 2
call fcn.004039b8
ret