Function at 0x404290
Capabilities:
Copy file
Delete file
Read file on windows

Disassembly:
sub esp, 0x5c
mov ax, word [0x413df0]
push ebx
push ebp
push esi
xor edx, edx
mov esi, ecx
mov word [esp + 0x40], ax
mov dword [esp + 0x52], edx
xor ecx, ecx
xor eax, eax
mov dword [esp + 0x56], edx
mov dword [esp + 0x42], ecx
mov dword [esp + 0x54], eax
mov dword [esp + 0x5a], edx
mov dword [esp + 0x46], ecx
mov dword [esp + 0x58], eax
mov dword [esp + 0x4a], ecx
mov dword [esp + 0x5c], eax
lea ecx, [esp + 0x40]
push edi
xor ebx, ebx
mov dword [esp + 0x64], eax
push ecx
mov dword [esp + 0x40], esi
mov byte [esp + 0x17], 1
mov dword [esp + 0x28], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x58], ebx
mov dword [esp + 0x6c], eax
call fcn.0040aa50
add esp, 4
test eax, eax
jne 0x40431a
xor al, al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x5c
ret 4
mov eax, dword [esi + 0xf8]
lea edx, [esp + 0x44]
push ebx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov ecx, dword [esi + 0xf8]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, esi
call fcn.00403500
test al, al
jne 0x40434f
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x5c
ret 4
push ebx
push 0xc000080
push 3
push ebx
push 1
lea edx, [esp + 0x58]
push 0x80000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x404649
mov ebp, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
push ebx
push ebx
push esi
call ebp
cmp eax, 0xffffffff
je 0x404649
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [esp + 0x14]
push ebx
push eax
lea ecx, [esp + 0x48]
push 4
push ecx
push esi
call edi
test eax, eax
je 0x404649
cmp dword [esp + 0x14], 4
jb 0x404649
push 1
push ebx
push 8
push esi
call ebp
cmp eax, 0xffffffff
je 0x404649
lea edx, [esp + 0x14]
push ebx
push edx
lea eax, [esp + 0x20]
push 2
push eax
push esi
call edi
test eax, eax
je 0x404649
cmp dword [esp + 0x14], 2
jb 0x404649
movsx ecx, word [esp + 0x18]
push 1
push ebx
push ecx
push esi
call ebp
cmp eax, 0xffffffff
je 0x404649
lea edx, [esp + 0x14]
push ebx
push edx
lea eax, [esp + 0x20]
push 2
push eax
push esi
call edi
test eax, eax
je 0x404649
cmp dword [esp + 0x14], 2
jb 0x404649
movsx ecx, word [esp + 0x18]
push 1
push ebx
push ecx
push esi
call ebp
cmp eax, 0xffffffff
je 0x404649
lea edx, [esp + 0x14]
push ebx
push edx
lea eax, [esp + 0x20]
push 2
push eax
push esi
call edi
test eax, eax
je 0x404649
cmp dword [esp + 0x14], 2
jb 0x404649
movsx ecx, word [esp + 0x18]
push 1
push ebx
push ecx
push esi
call ebp
cmp eax, 0xffffffff
je 0x404649
lea edx, [esp + 0x14]
push ebx
push edx
lea eax, [esp + 0x20]
push 2
push eax
push esi
call edi
test eax, eax
je 0x404649
cmp dword [esp + 0x14], 2
jb 0x404649
movsx edx, word [esp + 0x18]
lea ecx, [esp + 0x14]
push ebx
push ecx
lea eax, [esp + 0x40]
push edx
push eax
push esi
call edi
test eax, eax
je 0x404649
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
and ecx, 0xffff
cmp eax, ecx
jb 0x404649
mov eax, dword [esp + 0x38]
mov dword [esp + 0x34], ebx
cmp eax, ebx
jbe 0x40464d
lea edx, [esp + 0x14]
push ebx
mov ebp, 4
push edx
lea eax, [esp + 0x2c]
push ebp
push eax
push esi
call edi
test eax, eax
je 0x404649
cmp dword [esp + 0x14], ebp
jb 0x404649
lea ecx, [esp + 0x14]
push ebx
push ecx
lea edx, [esp + 0x34]
push ebp
push edx
push esi
call edi
test eax, eax
je 0x404649
cmp dword [esp + 0x14], ebp
jb 0x404649
lea eax, [esp + 0x14]
push ebx
push eax
lea ecx, [esp + 0x30]
push ebp
push ecx
push esi
call edi
test eax, eax
je 0x404649
cmp dword [esp + 0x14], ebp
jb 0x404649
lea edx, [esp + 0x14]
push ebx
push edx
lea eax, [esp + 0x38]
push 2
push eax
push esi
call edi
test eax, eax
je 0x404649
cmp dword [esp + 0x14], 2
jb 0x404649
lea ecx, [esp + 0x14]
push ebx
push ecx
lea edx, [esp + 0x24]
push ebp
push edx
push esi
call edi
test eax, eax
je 0x404649
cmp dword [esp + 0x14], ebp
jb 0x404649
mov eax, dword [esp + 0x1c]
push eax
call fcn.0040a590
mov ebp, eax
add esp, 4
cmp ebp, ebx
je 0x404649
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x14]
push ebx
push ecx
push edx
push ebp
push esi
call edi
test eax, eax
je 0x404649
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
cmp eax, ecx
jb 0x404649
lea ecx, [esp + 0x14]
push ebx
push ecx
lea edx, [esp + 0x28]
push 4
push edx
push esi
call edi
test eax, eax
je 0x404649
cmp dword [esp + 0x14], 4
jb 0x404649
mov eax, dword [esp + 0x20]
push 1
push ebx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x404649
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x54], ecx
mov cx, word [esp + 0x30]
mov dword [esp + 0x58], edx
mov edx, dword [esp + 0x1c]
mov word [esp + 0x60], cx
mov ecx, dword [esp + 0x70]
mov dword [esp + 0x64], edx
lea edx, [esp + 0x54]
mov dword [esp + 0x5c], eax
mov eax, dword [ecx]
push edx
push ebp
call dword [eax + 8]
mov eax, dword [esp + 0x70]
mov ecx, dword [esp + 0x3c]
push ebx
push eax
call fcn.00404820
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x38]
inc eax
cmp eax, ecx
mov dword [esp + 0x34], eax
jb 0x4044d1
jmp 0x40464d
mov byte [esp + 0x13], bl
cmp esi, 0xffffffff
je 0x404659
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [esp + 0x13]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x5c
ret 4