Function at 0x44abd0
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
sub esp, 0x18
mov eax, dword [0x67c3c0]
xor eax, esp
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x1c]
push esi
mov esi, dword [esp + 0x24]
push edi
push 0
push 0x80
push 3
push 0
push 1
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x44ae13
push 0
push 0
push 0
push edi
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x44ae0c
push 0
lea eax, [esp + 0x18]
push eax
push 4
lea eax, [esp + 0x1c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x44ae0c
mov eax, dword [esp + 0x10]
push ebx
push ebp
cmp eax, 0x50523654
je 0x44acf5
cmp eax, 0x50523754
je 0x44acf5
mov ebx, dword [esi + 0x10]
lea eax, [esi + 0x10]
add ebx, 0xd
mov dword [esp + 0x10], eax
test bl, 3
je 0x44ac86
nop dword [eax]
inc ebx
test bl, 3
jne 0x44ac80
push ebx
call fcn.005aaec4
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x44ae0a
push ebx
push 0
push ebp
call fcn.0059c4a0
mov dword [ebp], 0x52455355
add esp, 0xc
mov dword [ebp + 4], ebx
mov dword [ebp + 8], 0x43415250
cmp dword [esi + 0x14], 0xf
jbe 0x44acbe
mov esi, dword [esi]
mov eax, dword [esp + 0x10]
push dword [eax]
lea eax, [ebp + 0xc]
push esi
push eax
call fcn.0059ce90
mov eax, dword [sym.imp.KERNEL32.dll_SetFilePointer]
add esp, 0xc
push 2
push 0
push 0
push edi
call eax
push 0
lea eax, [esp + 0x20]
push eax
push ebx
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebp
jmp 0x44ae02
mov ebx, dword [esi + 0x10]
lea eax, [esi + 0x10]
inc ebx
mov dword [esp + 0x14], eax
test bl, 3
je 0x44ad0b
inc ebx
test bl, 3
jne 0x44ad05
mov eax, ebx
mov ecx, 0xffffffff
add eax, 8
cmovb eax, ecx
push eax
call fcn.005aaec4
mov ebp, eax
add esp, 4
mov dword [esp + 0x10], ebp
test ebp, ebp
je 0x44ae0a
push ebx
push 0
push ebp
call fcn.0059c4a0
add esp, 0xc
cmp dword [esi + 0x14], 0xf
jbe 0x44ad43
mov esi, dword [esi]
mov eax, dword [esp + 0x14]
push dword [eax]
push esi
push ebp
call fcn.0059ce90
mov eax, dword [sym.imp.KERNEL32.dll_SetFilePointer]
add esp, 0xc
mov dword [ebx + ebp], ebx
mov dword [ebx + ebp + 4], 0x43415250
push 2
push 0
push 0
push edi
call eax
push 0
lea eax, [esp + 0x20]
push eax
lea eax, [ebx + 8]
push eax
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
xor edx, edx
mov esi, eax
cmp dword [esp + 0x18], 0x50523654
mov ecx, esi
sete dl
add edx, 0xd
sub ecx, edx
push ecx
call fcn.005aaec4
mov ebp, eax
add esp, 4
mov dword [esp + 0x14], ebp
test ebp, ebp
je 0x44adfe
xor ecx, ecx
cmp dword [esp + 0x18], 0x50523654
push 0
sete cl
push 0
add ecx, 0xd
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
xor ecx, ecx
lea eax, [esp + 0x1c]
cmp dword [esp + 0x18], 0x50523654
push 0
push eax
sete cl
mov eax, esi
add ecx, 0xd
sub eax, ecx
push eax
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x44ae26
push ebp
call fcn.005aaea9
add esp, 4
push dword [esp + 0x10]
call fcn.005aaea9
add esp, 4
pop ebp
pop ebx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x1c]
xor al, al
pop edi
pop esi
xor ecx, esp
call fcn.0059a5ad
add esp, 0x18
ret
mov bl, byte [ebp]
xor edx, edx
cmp dword [esp + 0x18], 0x50523654
mov eax, esi
setne dl
xor ecx, ecx
lea edx, [edx*2 + 1]
add edx, ebp
xor ebp, ebp
cmp dword [esp + 0x18], 0x50523654
setne cl
add ecx, 0xf
sub eax, ecx
je 0x44ae78
sub byte [edx], bl
lea edx, [edx + 1]
xor ecx, ecx
add bl, 7
inc ebp
mov eax, esi
cmp dword [esp + 0x18], 0x50523654
setne cl
add ecx, 0xf
sub eax, ecx
cmp ebp, eax
jb 0x44ae57
mov ebx, dword [esp + 0x14]
xor eax, eax
cmp dword [esp + 0x18], 0x50523654
mov edx, ebx
mov dword [esp + 0x20], 0x3f000318
sete al
add eax, 0xd
sub esi, eax
je 0x44aeb1
mov ecx, 0x3f000318
nop
movzx eax, byte [edx]
lea edx, [edx + 1]
add ecx, eax
mov dword [esp + 0x20], ecx
sub esi, 1
jne 0x44aea0
push 0
push 0
push 8
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [esp + 0x20]
push eax
push 4
lea eax, [esp + 0x2c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
call fcn.005aaea9
push dword [esp + 0x14]
call fcn.005aaea9
add esp, 8
jmp 0x44ae0a