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

Disassembly:
push ebp
sub esp, 0x60
lea ebp, [esp - 4]
mov eax, dword [0x4d6080]
xor eax, ebp
mov dword [ebp + 0x60], eax
push 0x68
mov eax, 0x4a715e
call fcn.004646d0
mov eax, dword [ebp + 0x6c]
mov esi, ecx
mov ecx, dword [ebp + 0x74]
mov dword [ebp + 0x20], eax
mov eax, dword [ebp + 0x70]
xor ebx, ebx
mov dword [ebp + 0xc], eax
mov dword [ebp + 8], ecx
cmp dword [esi + 0x210], ebx
jne 0x440a02
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x60]
xor ecx, ebp
call fcn.004646c1
add ebp, 0x64
leave
ret 0xc
lea ecx, [ebp]
push ecx
lea ecx, [ebp + 4]
push ecx
push eax
mov ecx, esi
call fcn.0043fca6
test eax, eax
je 0x440a22
mov dword [esi + 0x21c], 0xffffff9c
jmp 0x4409e1
mov edi, 0x138
push edi
call fcn.00465977
push edi
push ebx
push eax
mov dword [ebp + 0x28], eax
call fcn.00465a60
add esp, 0x10
lea ecx, [ebp + 0x2c]
call fcn.004408e1
mov dword [ebp - 4], ebx
cmp byte [esi + 0x216], bl
je 0x440bad
mov eax, dword [esi + 0x220]
mov dword [ebp + 4], eax
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp + 0x2c]
call fcn.004408b0
mov byte [ebp - 4], 1
push 1
lea eax, [ebp + 0x1f]
push eax
push dword [ebp + 0x20]
lea ecx, [ebp - 0x74]
call fcn.004096ba
mov byte [ebp - 4], 2
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x74]
push eax
lea ecx, [ebp + 4]
call fcn.0049b920
mov edi, eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x74]
call fcn.004016d0
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x40]
call fcn.004016d0
cmp edi, ebx
je 0x440ad1
push dword [ebp + 0x28]
call fcn.00463f2b
mov dword [esi + 0x21c], edi
mov ebx, edi
pop ecx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x2c]
call fcn.00440875
mov eax, ebx
jmp 0x4409e3
mov ecx, dword [ebp + 0x28]
xor eax, eax
inc eax
mov word [ecx + 0x118], ax
cmp byte [esi + 0x214], bl
je 0x440b4c
mov byte [ebp + 0x20], 1
cmp byte [esi + 0x215], bl
jne 0x440b36
push 1
lea eax, [ebp + 0x1f]
push eax
push dword [ebp + 0xc]
lea ecx, [ebp - 0x40]
call fcn.004025c0
mov byte [ebp - 4], 3
mov ecx, eax
call fcn.00402d00
cmp dword [ebp + 0x48], 8
mov ecx, dword [ebp + 0x34]
jae 0x440b1a
lea ecx, [ebp + 0x34]
push eax
push ecx
call fcn.00405b7c
test eax, eax
pop ecx
setne al
pop ecx
mov byte [ebp + 0x20], al
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x40]
call fcn.00401670
movzx eax, byte [esi + 0x215]
push eax
push dword [ebp + 0x20]
lea eax, [ebp + 0x28]
push eax
mov ecx, esi
call fcn.0043fa27
cmp dword [ebp + 0x48], 8
mov eax, dword [ebp + 0x34]
jae 0x440b58
lea eax, [ebp + 0x34]
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileW]
push ebx
push 0x80
push 3
push ebx
push ebx
push SysReAllocString
push eax
call edi
mov dword [ebp + 0x14], eax
cmp eax, 0xffffffff
je 0x440bcc
push ebx
push 0x80
push 3
push ebx
push 3
push 0x40000000
lea eax, [esi + 4]
push eax
call edi
mov dword [ebp + 0x18], eax
cmp eax, 0xffffffff
jne 0x440be5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp + 0x14]
mov dword [esi + 0x21c], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x440bd8
cmp dword [ebp + 0x48], 8
mov eax, dword [ebp + 0x34]
jae 0x440bb9
lea eax, [ebp + 0x34]
push ebx
push eax
push dword [ebp + 0x20]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x440ade
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x21c], eax
push dword [ebp + 0x28]
call fcn.00463f2b
jmp 0x440abd
push dword [ebp + 0xc]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push dword [ebp + 0x28]
call edi
push ebx
push dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [ebp + 0x28]
push ebx
push ebx
mov dword [ecx + 0x10c], eax
push dword [esi + 0x218]
mov ecx, esi
push dword [ebp + 0x18]
call fcn.0043fb00
test eax, eax
je 0x440bd8
push dword [0x4d5854]
push dword [esi + 0x224]
call edi
lea ecx, [esi + 0x228]
mov dword [ebp], ecx
call fcn.0043fb96
mov ecx, dword [esi + 0x224]
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
inc eax
push ebx
mov word [ecx + 0xe], ax
lea eax, [ebp + 0x24]
push eax
push 0x2e
push dword [esi + 0x224]
push dword [ebp + 0x18]
call edi
push 2
push ebx
push ebx
push dword [ebp + 0x18]
mov ecx, esi
call fcn.0043fb00
test eax, eax
je 0x440abe
push ebx
lea eax, [ebp + 0x24]
push eax
push 0x138
push dword [ebp + 0x28]
push dword [ebp + 0x18]
call edi
cmp dword [ebp + 0x24], ebx
je 0x440bd8
push 0x400
call fcn.004447d5
pop ecx
mov ecx, dword [ebp + 8]
mov dword [ebp + 0x10], eax
mov dword [ebp + 0x20], ebx
cmp ecx, ebx
je 0x440d0c
mov edx, dword [ebp + 0x28]
push dword [edx + 0x10c]
mov eax, dword [ecx]
push ebx
call dword [eax]
jmp 0x440d0c
cmp dword [ebp + 0x24], ebx
je 0x440d26
cmp byte [esi + 0x215], bl
je 0x440cda
cmp byte [esi + 0x214], bl
je 0x440cda
push dword [ebp + 0xc]
push dword [ebp + 0x24]
push dword [ebp + 0x10]
call fcn.00405901
add esp, 0xc
push ebx
lea eax, [ebp + 0x24]
push eax
push dword [ebp + 0x24]
push dword [ebp + 0x10]
push dword [ebp + 0x18]
call edi
mov eax, dword [ebp + 0x24]
mov ecx, dword [ebp + 8]
add dword [ebp + 0x20], eax
cmp ecx, ebx
je 0x440d07
mov edx, dword [ebp + 0x28]
push dword [edx + 0x10c]
mov eax, dword [ecx]
push dword [ebp + 0x20]
call dword [eax]
cmp dword [ebp + 0x24], ebx
je 0x440d26
push ebx
lea eax, [ebp + 0x24]
push eax
push 0x400
push dword [ebp + 0x10]
push dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x440cb4
push dword [ebp + 0x28]
mov ecx, dword [ebp]
call fcn.0043feb2
push dword [ebp + 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp + 0x18]
call esi
push dword [ebp + 0x10]
call fcn.00463f2b
xor ebx, ebx
inc ebx
jmp 0x440abd