Function at 0x404240
Capabilities:
Copy file
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46d296
mov eax, dword fs:[0]
push eax
sub esp, 0x27c
mov eax, dword [0x485370]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [section..data]
mov edx, dword [eax + 0xc]
mov ebx, ecx
mov ecx, section..data
call edx
add eax, 0x10
mov dword [ebp - 0x264], eax
lea esi, [ebp - 0x280]
mov eax, 0x488168
mov dword [ebp - 4], 0
call fcn.0040f420
push str.backups.ini
mov byte [ebp - 4], 1
mov eax, dword [eax]
push 0x479d80
push eax
push str._s_s_s
lea edi, [ebp - 0x264]
call fcn.00404aa0
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x280]
add eax, 0xfffffff0
add esp, 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4042e9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0x264]
push ecx
push 0x47b0b4
mov edi, 0x486640
call fcn.00404aa0
push 0x208
call fcn.00419ceb
add esp, 0xc
push 0x208
mov edi, eax
call fcn.00419ceb
add esp, 4
push 0x208
mov dword [ebp - 0x268], eax
call fcn.00419ceb
add esp, 4
push 0x208
mov dword [ebp - 0x26c], eax
call fcn.00419ceb
add esp, 4
push 0x208
mov esi, eax
call fcn.00419ceb
add esp, 4
push 0x208
mov dword [ebp - 0x274], eax
call fcn.00419ceb
mov edx, dword [ebp - 0x268]
add esp, 4
push 5
push edx
mov dword [ebp - 0x270], eax
call fcn.004119b0
mov eax, dword [ebp - 0x270]
push 6
push eax
call fcn.004119b0
mov ecx, dword [ebp - 0x268]
mov edx, dword [ebp - 0x26c]
push ecx
push 0x104
push edx
call fcn.0045152a
mov eax, dword [ebp - 0x26c]
add esp, 0x1c
add eax, 0xfffffffe
lea esp, [esp]
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x4043b0
mov ecx, dword [0x479db0]
push 0x479d80
mov dword [eax], ecx
mov edx, dword [0x479db4]
push ebx
push 0x479d98
mov dword [eax + 4], edx
mov cx, word [0x479db8]
push 0x104
push edi
mov word [eax + 8], cx
call fcn.0045150c
add esp, 0x14
push edi
call fcn.0040c690
push edi
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
mov eax, dword [ebp - 0x26c]
lea edx, [ebp - 0x260]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x27c], eax
cmp eax, 0xffffffff
jne 0x40444b
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x264]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404444
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x4045fe
cmp word [ebp - 0x234], 0x2e
je 0x4044f7
mov edx, dword [ebp - 0x268]
lea ecx, [ebp - 0x234]
push ecx
push edx
push str._s_s
push 0x104
push esi
call fcn.0045150c
mov ebx, dword [ebp - 0x274]
add esp, 0x14
lea eax, [ebp - 0x234]
push eax
push edi
push str._s_s
push 0x104
push ebx
call fcn.0045150c
add esp, 0x14
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x4044ed
mov ecx, dword [ebp - 0x270]
mov eax, esi
mov edi, edi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4044d6
test dx, dx
je 0x4044d2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4044d6
add eax, 4
add ecx, 4
test dx, dx
jne 0x4044b0
xor eax, eax
jmp 0x4044db
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4044f7
push 0
push ebx
push esi
call fcn.0040c730
add esp, 0xc
jmp 0x4044f7
push 0
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov ebx, dword [ebp - 0x27c]
lea ecx, [ebp - 0x260]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40444b
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
push esi
call fcn.004514d7
add esp, 4
push edi
call fcn.004514d7
mov edx, dword [ebp - 0x268]
add esp, 4
push edx
call fcn.004514d7
mov eax, dword [ebp - 0x274]
add esp, 4
push eax
call fcn.004514d7
mov ecx, dword [ebp - 0x270]
add esp, 4
push ecx
call fcn.004514d7
mov edx, dword [ebp - 0x26c]
add esp, 4
push edx
call fcn.004514d7
add esp, 4
push 0
call fcn.0045158d
mov dword [ebp - 0x288], eax
add esp, 4
lea eax, [ebp - 0x288]
push eax
lea esi, [ebp - 0x278]
mov dword [ebp - 0x284], edx
call fcn.00405110
mov ecx, dword [0x486640]
mov edx, dword [ebp - 0x278]
push ecx
push edx
push str.LastBack
push str.Documents
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov eax, dword [ebp - 0x278]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4045d0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x264]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4045f9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004501c4
mov esp, ebp
pop ebp
ret