Function at 0x401d42
Capabilities:
Copy file
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
push edi
xor ebx, ebx
mov byte [ebp - 0x44], bl
xor eax, eax
lea edi, [ebp - 0x43]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push ebx
push dword [ebp + 0xc]
stosw word es:[edi], ax
push dword [ebp + 8]
mov dword [ebp - 0x20], ebx
stosb byte es:[edi], al
mov dword [ebp - 8], ebx
mov dword [ebp - 0x14], ebx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x401f2a
push esi
push ebx
push ebx
push 3
push ebx
push 1
push 0xc0000000
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
push ebx
push 0x3c
push eax
mov dword [ebp - 4], eax
call edi
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
lea eax, [ebp - 8]
push eax
push 4
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 4]
call esi
push ebx
push ebx
push dword [ebp - 0x14]
push dword [ebp - 4]
call edi
push ebx
lea eax, [ebp - 8]
push eax
push 4
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 4]
call esi
cmp dword [ebp - 0x24], 0x4550
jne 0x401f1d
mov eax, dword [ebp - 0x14]
push ebx
add eax, 0x18
push ebx
push eax
push dword [ebp - 4]
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x18], ebx
call edi
push ebx
lea eax, [ebp - 8]
push eax
push 2
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 4]
call esi
mov eax, 0x10b
cmp word [ebp - 0x18], ax
jne 0x401e10
sub dword [ebp - 0xc], 0xffffff80
jmp 0x401e27
mov eax, 0x20b
cmp word [ebp - 0x18], ax
jne 0x401e24
add dword [ebp - 0xc], 0x90
jmp 0x401e27
mov dword [ebp - 0xc], ebx
cmp dword [ebp - 0xc], ebx
je 0x401f1d
push ebx
push ebx
push dword [ebp - 0xc]
push dword [ebp - 4]
call edi
push ebx
lea eax, [ebp - 8]
push eax
push 4
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 4]
call esi
push ebx
lea eax, [ebp - 8]
push eax
push 4
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 4]
call esi
cmp dword [ebp - 0x1c], ebx
je 0x401f1d
mov eax, dword [ebp - 0xc]
add dword [ebp - 0x10], 0x970
push ebx
push ebx
add eax, 4
push eax
push dword [ebp - 4]
call edi
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
lea eax, [ebp - 8]
push eax
push 4
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 4]
call esi
push ebx
push ebx
push dword [ebp - 0x1c]
mov dword [ebp - 0x20], ebx
push dword [ebp - 4]
call edi
push ebx
lea eax, [ebp - 8]
push eax
push 4
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
push ebx
push dword [ebp - 0x1c]
push dword [ebp - 4]
call edi
push ebx
lea eax, [ebp - 8]
push eax
push 4
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 4]
call esi
push 2
push ebx
push ebx
push dword [ebp - 4]
call edi
push ebx
lea eax, [ebp - 8]
push eax
push 0x10
lea eax, [ebp - 0x44]
push eax
push dword [ebp - 4]
call esi
push ebx
lea eax, [ebp - 8]
push eax
push 0x950
push dword [ebp + 0x10]
push dword [ebp - 4]
call esi
xor eax, eax
mov dword [ebp - 0x34], ebx
lea edi, [ebp - 0x30]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push ebx
lea eax, [ebp - 8]
push eax
push 0x10
lea eax, [ebp - 0x34]
push eax
push dword [ebp - 4]
mov dword [ebp - 0x28], 0x950
call esi
mov dword [ebp - 0x20], 1
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x20]
pop esi
pop edi
pop ebx
leave
ret