Function at 0x446b18
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.00447c85
cmp byte [eax + 0x1c], 0
je 0x446b47
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.004528aa
pop ecx
pop ecx
test al, al
jne 0x446b7b
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x446b76
mov edx, dword [ecx]
xor eax, eax
push eax
push edi
push dword [esi]
call dword [edx]
test eax, eax
jne 0x446b7b
push 0xa
pop eax
jmp 0x446b3e
mov eax, dword [ebp + 0xc]
mov ecx, dword [esp + 0x18]
call fcn.00447c85
cmp dword [eax + 4], 0xc
push esi
lea eax, [esp + 0x18]
push eax
sete byte [esp + 0x1b]
call fcn.00416651
mov eax, dword [ebp + 0xc]
mov ecx, dword [esp + 0x18]
call fcn.00447c85
add eax, 0x18
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
lea eax, [esp + 0x1c]
call fcn.0042e514
mov eax, dword [ebp + 0x10]
mov edi, dword [eax]
xor esi, esi
cmp edi, esi
je 0x446c15
mov esi, dword [edi]
mov eax, dword [ebp + 0xc]
mov ecx, dword [esp + 0x18]
add esi, 0x1c
call fcn.00447c85
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.0043faa0
test al, al
je 0x446bf8
add dword [esp + 0x24], 8
mov esi, dword [edi]
mov eax, dword [ebp + 0xc]
mov ecx, dword [esp + 0x18]
add esi, 0x14
call fcn.00447c85
push dword [eax]
mov ecx, edi
push dword [esp + 0x28]
call dword [esi]
xor esi, esi
cmp byte [esp + 0x13], 0
je 0x446c30
lea esi, [ebx + 0x90]
lea ebx, [esp + 0x14]
call fcn.0043d540
mov ebx, dword [ebp + 8]
xor esi, esi
lea eax, [ebx + 0x9c]
push eax
push esi
lea ecx, [esp + 0x1c]
call fcn.0043ff30
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 0x446c7c
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x14]
call fcn.004071b8
push 2
jmp 0x446b78
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.00447c85
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 0x446ccd
cmp dword [esp + 0x30], esi
je 0x446cba
push dword [esp + 0x30]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 2
pop esi
lea ecx, [esp + 0x14]
call fcn.004071b8
mov eax, esi
jmp 0x446b3e
push 0x10000
lea eax, [esp + 0x20]
push eax
mov dword [esp + 0x24], esi
call fcn.0042ca3a
mov eax, dword [ebp + 0xc]
mov ecx, dword [esp + 0x18]
call fcn.00447c85
mov eax, dword [eax + 0xc]
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], esi
cmp edi, esi
je 0x446d0a
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x24]
test al, al
jne 0x446dbd
mov ecx, dword [esp + 0x24]
mov eax, 0x10000
cmp ecx, eax
jbe 0x446d19
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 0x446d80
cmp dword [esp + 0x20], esi
je 0x446d80
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 0x446d80
mov eax, dword [esp + 0x20]
cmp eax, esi
je 0x446d80
sub dword [esp + 0x24], eax
add dword [esp + 0x28], eax
cmp edi, esi
je 0x446d76
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 0x446cf7
push dword [esp + 0x30]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov eax, dword [ebp + 0xc]
mov ecx, dword [esp + 0x18]
call fcn.00447c85
push dword [esp + 0x1c]
mov byte [eax + 0x1c], 1
call fcn.00476c1b
pop ecx
cmp dword [esp + 0x30], esi
je 0x446cbd
push dword [esp + 0x30]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x446cbd
push dword [esp + 0x1c]
call fcn.00476c1b
pop ecx
cmp dword [esp + 0x30], esi
je 0x446dd7
push dword [esp + 0x30]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0xe
jmp 0x446cbc