Function at 0x44ffbb
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
lea ecx, [ebx + 0x60]
push edi
mov dword [esp + 0x18], ecx
call fcn.00451068
cmp byte [eax + 0x1c], 0
je 0x44ffea
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov edi, dword [eax + 0xc]
xor eax, eax
push eax
lea esi, [ebx + 0x58]
mov ecx, dword [esi]
push edi
call fcn.0045b181
pop ecx
pop ecx
test al, al
jne 0x45001e
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x450019
mov edx, dword [ecx]
xor eax, eax
push eax
push edi
push dword [esi]
call dword [edx]
test eax, eax
jne 0x45001e
push 0xa
pop eax
jmp 0x44ffe1
mov eax, dword [ebp + 0xc]
mov ecx, dword [esp + 0x18]
call fcn.00451068
cmp dword [eax + 4], 0xc
push esi
lea eax, [esp + 0x18]
push eax
sete byte [esp + 0x1b]
call fcn.00418dc7
mov eax, dword [ebp + 0xc]
mov ecx, dword [esp + 0x18]
call fcn.00451068
add eax, 0x18
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
lea eax, [esp + 0x1c]
call fcn.0043164c
mov eax, dword [ebp + 0x10]
mov edi, dword [eax]
xor esi, esi
cmp edi, esi
je 0x4500b8
mov esi, dword [edi]
mov eax, dword [ebp + 0xc]
mov ecx, dword [esp + 0x18]
add esi, 0x1c
call fcn.00451068
push 0
push dword [eax + 0xc]
mov ecx, edi
call dword [esi]
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x14]
mov dword [esp + 0x24], eax
call fcn.004443c0
test al, al
je 0x45009b
add dword [esp + 0x24], 8
mov esi, dword [edi]
mov eax, dword [ebp + 0xc]
mov ecx, dword [esp + 0x18]
add esi, 0x14
call fcn.00451068
push dword [eax]
mov ecx, edi
push dword [esp + 0x28]
call dword [esi]
xor esi, esi
cmp byte [esp + 0x13], 0
je 0x4500d3
lea esi, [ebx + 0x90]
lea ebx, [esp + 0x14]
call fcn.004420b0
mov ebx, dword [ebp + 8]
xor esi, esi
lea eax, [ebx + 0x9c]
push eax
push esi
lea ecx, [esp + 0x1c]
call fcn.00444860
pop ecx
pop ecx
push esi
push 0x80
push 2
push esi
push esi
push 0x40000000
push dword [esp + 0x2c]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esp + 0x30], eax
cmp eax, 0xffffffff
jne 0x45011f
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x14]
call fcn.00403833
push 2
jmp 0x45001b
mov eax, dword [ebx + 0x6c]
mov ecx, dword [esp + 0x18]
push esi
mov dword [esp + 0x2c], eax
mov eax, dword [ebp + 0xc]
push esi
call fcn.00451068
mov eax, dword [eax + 0x10]
add eax, dword [ebx + 0x80]
push eax
push dword [esp + 0x34]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x450170
cmp dword [esp + 0x30], esi
je 0x45015d
push dword [esp + 0x30]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 2
pop esi
lea ecx, [esp + 0x14]
call fcn.00403833
mov eax, esi
jmp 0x44ffe1
push 0x10000
lea eax, [esp + 0x20]
push eax
mov dword [esp + 0x24], esi
call fcn.0042f797
mov eax, dword [ebp + 0xc]
mov ecx, dword [esp + 0x18]
call fcn.00451068
mov eax, dword [eax + 0xc]
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], esi
cmp edi, esi
je 0x4501ad
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x24]
test al, al
jne 0x450260
mov ecx, dword [esp + 0x24]
mov eax, 0x10000
cmp ecx, eax
jbe 0x4501bc
mov ecx, eax
mov eax, dword [ebx + 0x6c]
push esi
lea edx, [esp + 0x24]
push edx
push ecx
push dword [esp + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x450223
cmp dword [esp + 0x20], esi
je 0x450223
push esi
lea eax, [esp + 0x24]
push eax
push dword [esp + 0x28]
push dword [esp + 0x28]
push dword [esp + 0x40]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x450223
mov eax, dword [esp + 0x20]
cmp eax, esi
je 0x450223
sub dword [esp + 0x24], eax
add dword [esp + 0x28], eax
cmp edi, esi
je 0x450219
mov eax, dword [esp + 0x28]
cdq
push edx
push eax
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x20]
cmp dword [esp + 0x24], esi
jg 0x45019a
push dword [esp + 0x30]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov eax, dword [ebp + 0xc]
mov ecx, dword [esp + 0x18]
call fcn.00451068
push dword [esp + 0x1c]
mov byte [eax + 0x1c], 1
call fcn.00482a4b
pop ecx
cmp dword [esp + 0x30], esi
je 0x450160
push dword [esp + 0x30]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x450160
push dword [esp + 0x1c]
call fcn.00482a4b
pop ecx
cmp dword [esp + 0x30], esi
je 0x45027a
push dword [esp + 0x30]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0xe
jmp 0x45015f