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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff98
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040340c
xor eax, eax
push ebp
push 0x422805
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp - 4]
call fcn.0040341c
push eax
call sub.kernel32.dll_CreateFileA
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffff
je 0x4227ef
push 0
push 0
push 0
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_SetFilePointer
push 0
lea eax, [ebp - 0x18]
push eax
push 0x40
lea eax, [ebp - 0x66]
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_ReadFile
push 0
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_GetFileSize
sub eax, 0x40
sub eax, 0x10
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x20], 1
jmp 0x42263a
inc dword [ebp - 0x20]
imul eax, dword [ebp - 0x20], 0x17
cmp dword [eax*2 + 0x564fee], 0
jne 0x422637
imul eax, dword [ebp - 0x20], 0x17
cmp byte [eax*2 + 0x565002], 0
jne 0x422637
mov eax, 0x564f94
mov edx, 0x24
call fcn.00404364
mov dword [0x564f94], 0x24
mov dword [0x564f98], 0x82
mov eax, dword [ebp - 0x28]
mov dword [0x564f9c], eax
mov dword [0x564fa4], 0x564fb8
mov word [0x564fb8], 1
mov word [0x564fba], 1
mov dword [0x564fbc], 0x5622
mov dword [0x564fc0], 0x5622
mov word [0x564fc4], 1
mov word [0x564fc6], 8
mov word [0x564fc8], 0
push 0
imul eax, dword [ebp - 0x20], 0x17
lea eax, [eax*2 + 0x564fee]
call fcn.00403f84
push eax
push 0x564f94
mov eax, dword [0x564f90]
push eax
mov eax, dword [eax]
call dword [eax + 0xc]
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x1c], eax
push 2
push 0x489188
push 0x48918c
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x24]
push eax
push 0
push 0
imul eax, dword [ebp - 0x20], 0x17
mov eax, dword [eax*2 + 0x564fee]
push eax
mov eax, dword [eax]
call dword [eax + 0x2c]
test eax, eax
jne 0x4227da
imul eax, dword [ebp - 0x20], 0x17
lea eax, [eax*2 + 0x564fe6]
mov dword [ebp - 0x2c], eax
push 0
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x24]
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_ReadFile
push 0
push 0
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x24]
push eax
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax + 8]
push eax
mov eax, dword [eax]
call dword [eax + 0x4c]
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x2c]
mov dword [edx], eax
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 0x2c]
mov dword [edx + 4], eax
mov eax, dword [ebp - 0x2c]
xor edx, edx
mov dword [eax + 0xc], edx
mov eax, dword [ebp - 0x2c]
mov dword [eax + 0x10], 0x3e8
mov eax, dword [ebp - 0x2c]
xor edx, edx
mov dword [eax + 0x14], edx
mov eax, dword [ebp - 0x2c]
add eax, 0x18
mov edx, dword [ebp - 4]
call fcn.00403100
mov eax, dword [ebp - 0x2c]
mov byte [eax + 0x1c], 0
mov eax, dword [ebp - 0x2c]
xor edx, edx
mov dword [eax + 0x1e], edx
mov eax, dword [ebp - 0x2c]
xor edx, edx
mov dword [eax + 0x22], edx
mov eax, dword [ebp - 0x2c]
xor edx, edx
mov dword [eax + 0x2a], edx
mov eax, dword [ebp - 0x2c]
mov byte [eax + 0x1d], 0
mov eax, dword [ebp - 0x2c]
xor edx, edx
mov dword [eax + 0x26], edx
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x20]
mov dword [eax], edx
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x10], eax
jmp 0x4227e6
mov eax, dword [ebp - 8]
xor edx, edx
mov dword [eax], edx
xor eax, eax
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42280c
lea eax, [ebp - 4]
call fcn.004030ac
ret