Function at 0x40986c
Capabilities:
Copy file
Create directory
Enumerate files on windows
Enumerate files recursively
Move file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc54
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
push esi
push edi
push 0x64
mov dword [esp + 0x10], ecx
call ebx
xor edi, edi
push edi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
xor eax, eax
mov esi, 0x206
push esi
mov word [esp + 0x674], ax
lea eax, [esp + 0x676]
push edi
push eax
call fcn.0040e740
xor eax, eax
push esi
mov word [esp + 0x228], ax
lea eax, [esp + 0x22a]
push edi
push eax
call fcn.0040e740
xor eax, eax
push esi
mov word [esp + 0x2c], ax
lea eax, [esp + 0x2e]
push edi
push eax
call fcn.0040e740
add esp, 0x24
lea eax, [esp + 0x670]
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0x41b13c
lea eax, [esp + 0x674]
push eax
call esi
push 0x64
call ebx
push edi
push edi
push edi
lea eax, [esp + 0x42c]
push eax
push edi
lea eax, [esp + 0x684]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov edi, eax
cmp edi, 0xffffffff
je 0x409bd2
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcmpW]
test byte [esp + 0x420], 0x10
push 0x418d64
lea eax, [esp + 0x450]
push eax
jne 0x409ae1
call ebx
test eax, eax
je 0x409bb4
push 0x41b140
lea eax, [esp + 0x450]
push eax
call ebx
test eax, eax
je 0x409bb4
push 0x208
lea eax, [esp + 0x21c]
push 0
push eax
call fcn.0040e740
add esp, 0xc
lea eax, [esp + 0x218]
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [esp + 0x44c]
push eax
lea eax, [esp + 0x21c]
push eax
call esi
push 0x208
lea eax, [esp + 0x14]
push 0
push eax
call fcn.0040e740
add esp, 0xc
lea eax, [esp + 0x10]
push dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0x41b158
lea eax, [esp + 0x450]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x4099fa
call fcn.004030a5
push eax
lea eax, [esp + 0x14]
push eax
call esi
push str..tmp
jmp 0x409a20
push str.Autoupdate.exe.tmp
lea eax, [esp + 0x450]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x409a18
call fcn.0040313f
jmp 0x4099eb
lea eax, [esp + 0x44c]
push eax
lea eax, [esp + 0x14]
push eax
call esi
cmp dword [ebp + 0x18], 0
je 0x409a45
push 0x2e
push 0
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.SHLWAPI.dll_StrRChrIW]
test eax, eax
je 0x409a45
xor ecx, ecx
mov word [eax], cx
xor eax, eax
push 0x3e6
push eax
mov word [esp + 0x880], ax
lea eax, [esp + 0x882]
push eax
call fcn.0040e740
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x888]
push str.ck_W_rY6R
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x18
cmp dword [ebp + 0x10], 0
je 0x409aa2
cmp dword [ebp + 0x14], 0
je 0x409aa2
lea eax, [esp + 0x878]
push eax
push dword [ebp + 0x14]
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov ecx, dword [ebp + 0x10]
call fcn.00409598
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x409bb4
push 4
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
jmp 0x409bb4
call ebx
test eax, eax
je 0x409bb4
push 0x41b140
lea eax, [esp + 0x450]
push eax
call ebx
test eax, eax
je 0x409bb4
push 0x208
lea eax, [esp + 0x21c]
push 0
push eax
call fcn.0040e740
add esp, 0xc
lea eax, [esp + 0x218]
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [esp + 0x44c]
push eax
lea eax, [esp + 0x21c]
push eax
call esi
push 0x418d78
lea eax, [esp + 0x21c]
push eax
call esi
push 0x208
lea eax, [esp + 0x14]
push 0
push eax
call fcn.0040e740
add esp, 0xc
lea eax, [esp + 0x10]
push dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [esp + 0x44c]
push eax
lea eax, [esp + 0x14]
push eax
call esi
push 0x418d78
lea eax, [esp + 0x14]
push eax
call esi
push 0
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push dword [ebp + 0x18]
mov ecx, dword [esp + 0x10]
push dword [ebp + 0x14]
lea eax, [esp + 0x18]
push dword [ebp + 0x10]
push eax
lea eax, [esp + 0x228]
push eax
call fcn.0040986c
lea eax, [esp + 0x420]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x409937
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14