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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c411d
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x67c3c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push eax
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x14], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x28], eax
cmp eax, 0xffffffff
jne 0x44a89a
xor al, al
jmp 0x44a9e3
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x38], ecx
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
push 0
push 0
push eax
mov dword [ebp - 4], 0
call edi
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [ebp - 0x14]
push 0
push eax
push 4
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x28]
call esi
test eax, eax
je 0x44a9d6
cmp dword [ebp - 0x14], 4
jne 0x44a9d6
mov eax, dword [ebp - 0x24]
cmp eax, 0x50523654
je 0x44aa95
cmp eax, 0x50523754
je 0x44aa95
push 0
push 0
push 0xc
push dword [ebp - 0x28]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x18], 0
call edi
push 0
lea eax, [ebp - 0x14]
push eax
push 4
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x28]
call esi
test eax, eax
je 0x44a9d6
cmp dword [ebp - 0x14], 4
jne 0x44a9d6
push 0
push 0
push dword [ebp - 0x1c]
push dword [ebp - 0x28]
call edi
push 0
lea eax, [ebp - 0x14]
push eax
push 4
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x28]
call esi
test eax, eax
je 0x44a9d6
cmp dword [ebp - 0x14], 4
jne 0x44a9d6
cmp dword [ebp - 0x20], 0x52455355
jne 0x44a9d6
push 0
lea eax, [ebp - 0x14]
push eax
push 4
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 0x28]
call esi
test eax, eax
je 0x44a9d6
cmp dword [ebp - 0x14], 4
jne 0x44a9d6
push 0
lea eax, [ebp - 0x14]
push eax
push 4
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x28]
call esi
test eax, eax
je 0x44a9d6
cmp dword [ebp - 0x14], 4
jne 0x44a9d6
mov eax, dword [ebp - 0x2c]
add eax, 0xfffffff4
cmp dword [ebp - 0x18], 0x43415250
je 0x44a9ff
push 1
push 0
push eax
push dword [ebp - 0x28]
call edi
push 0
lea eax, [ebp - 0x14]
push eax
push 4
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x28]
call esi
test eax, eax
jne 0x44a963
xor bl, bl
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0059a5ad
mov esp, ebp
pop ebp
ret
add eax, 1
mov ecx, 0xffffffff
cmovb eax, ecx
push eax
call fcn.005aaec4
add esp, 4
mov dword [ebp - 0x30], eax
test eax, eax
je 0x44a9d6
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x34], ecx
mov ecx, dword [ebp - 0x2c]
add ecx, 0xfffffff5
mov byte [ebp - 4], 2
push ecx
push 0
push eax
call fcn.0059c4a0
add esp, 0xc
lea eax, [ebp - 0x14]
push 0
push eax
mov eax, dword [ebp - 0x2c]
add eax, 0xfffffff4
push eax
push dword [ebp - 0x30]
push dword [ebp - 0x28]
call esi
mov edx, dword [ebp - 0x2c]
test eax, eax
je 0x44aa7c
lea eax, [edx - 0xc]
cmp dword [ebp - 0x14], eax
jne 0x44aa7c
lea eax, [edx - 0xb]
push eax
push dword [ebp - 0x30]
lea ecx, [ebp - 0x50]
call fcn.004496a0
push eax
mov ecx, ebx
call fcn.00449770
lea ecx, [ebp - 0x50]
call fcn.004443a0
mov edx, dword [ebp - 0x2c]
lea eax, [edx - 0xc]
cmp dword [ebp - 0x14], eax
push dword [ebp - 0x30]
sete bl
call fcn.005aaea9
add esp, 4
jmp 0x44a9d8
push 0
push dword [ebp - 0x28]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x2c], 0
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 2
push 0
push 0xfffffffffffffffc
push dword [ebp - 0x28]
mov ebx, eax
call edi
push 0
lea eax, [ebp - 0x14]
push eax
push 4
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x28]
call esi
test eax, eax
je 0x44a9d6
cmp dword [ebp - 0x14], 4
jne 0x44a9d6
cmp dword [ebp - 0x18], 0x43415250
jne 0x44a9d6
push 1
push 0
push 0xfffffffffffffff8
push dword [ebp - 0x28]
call edi
push 0
lea eax, [ebp - 0x14]
push eax
push 4
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 0x28]
call esi
test eax, eax
je 0x44a9d6
cmp dword [ebp - 0x14], 4
jne 0x44a9d6
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x44a9d6
cmp eax, ebx
jae 0x44a9d6
cmp eax, 0x200
jae 0x44a9d6
push 1
not eax
push 0
sub eax, 3
push eax
push dword [ebp - 0x28]
call edi
mov eax, dword [ebp - 0x2c]
mov ecx, 0xffffffff
add eax, 1
cmovb eax, ecx
push eax
call fcn.005aaec4
add esp, 4
mov dword [ebp - 0x30], eax
test eax, eax
je 0x44a9d6
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x34], ecx
mov ecx, dword [ebp - 0x2c]
inc ecx
mov byte [ebp - 4], 1
push ecx
push 0
push eax
call fcn.0059c4a0
add esp, 0xc
lea eax, [ebp - 0x14]
push 0
push eax
push dword [ebp - 0x2c]
push dword [ebp - 0x30]
push dword [ebp - 0x28]
call esi
test eax, eax
mov eax, dword [ebp - 0x2c]
je 0x44aa7f
cmp dword [ebp - 0x14], eax
jne 0x44aa82
push eax
push dword [ebp - 0x30]
lea ecx, [ebp - 0x50]
call fcn.004496a0
mov ecx, dword [ebp - 0x1c]
push eax
call fcn.00449770
lea ecx, [ebp - 0x50]
call fcn.004443a0
mov eax, dword [ebp - 0x2c]
jmp 0x44aa7f