Function at 0x409ff0
Capabilities:
Copy file
Enumerate files on windows
Enumerate gui resources
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xab0
push ebx
push ebp
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_AddRefActCtx]
xor esi, esi
cmp esi, 0xfac
jne 0x40a01b
mov eax, 0x38d6
add dword [0x4b7b58], eax
cmp dword [0x4b7b58], 0xc3c
jne 0x40a02e
lea eax, [esp + 0x14]
push eax
call edi
inc esi
cmp esi, 0x319da6
jl 0x40a008
mov ecx, dword [0x4b7b58]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, dword [sym.imp.KERNEL32.dll_EnumCalendarInfoExW]
mov edi, dword [sym.imp.KERNEL32.dll_EnumCalendarInfoW]
mov ebx, dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
mov ebp, dword [sym.imp.KERNEL32.dll_CopyFileW]
mov dword [0x4b723c], eax
mov eax, dword [0x4b7b58]
mov dword [esp + 0x10], 0x962ae8
cmp eax, 3
jne 0x40a087
lea edx, [esp + 0x70]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov eax, dword [0x4b7b58]
cmp eax, 0xd
jne 0x40a0be
push 0
push 0
push 0
push 0
call esi
push 0
push 0
push 0
push 0
call edi
push 0
lea eax, [esp + 0x2c4]
push eax
push 0x402a98
call ebx
push 0
push 0
push 0
call ebp
mov eax, dword [0x4b7b58]
dec dword [esp + 0x10]
jne 0x40a070
xor esi, esi
test eax, eax
je 0x40a0fd
mov edi, dword [sym.imp.KERNEL32.dll__llseek]
mov ebx, dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
cmp eax, 0xfe
jne 0x40a0ee
push 0
push 0
push 0
call edi
lea ecx, [esp + 0x10]
push ecx
push 0
call ebx
call fcn.00409db0
mov eax, dword [0x4b7b58]
inc esi
cmp esi, eax
jb 0x40a0d6
mov ebx, dword [sym.imp.KERNEL32.dll_AddAtomW]
cmp eax, 0x19c
jne 0x40a155
push 0x402ab8
call ebx
push 0
lea edx, [esp + 0x2c4]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumTimeFormatsA]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetCalendarInfoA]
push 0x402b20
push 0x402aa4
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
mov edi, dword [sym.imp.USER32.dll_LoadMenuW]
mov esi, 0x8dc
push 0
push 0
call edi
dec esi
jne 0x40a160
mov esi, 0x2594b
mov edi, 0x15a
cmp dword [0x4b7b58], edi
jne 0x40a189
push 0
call ebx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SleepEx]
dec esi
jne 0x40a173
mov edi, dword [esp + 0x10]
mov ebx, dword [esp + 0x20]
mov ebp, dword [sym.imp.KERNEL32.dll_SetLastError]
lea ebx, [ebx]
cmp esi, 0x1b2e9
jge 0x40a1ac
push 0
call ebp
cmp esi, 0x1ea070d5
jle 0x40a1c4
cmp edi, 0xacc0b8
je 0x40a1c4
cmp ebx, 0xad642ec
jne 0x40a1cd
inc esi
cmp esi, 0x8ded45c8
jb 0x40a1a0
mov byte [0x43c338], 0
call fcn.00409940
call fcn.00409fc0
call fcn.00409d90
mov esi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileSectionW]
mov edi, dword [sym.imp.KERNEL32.dll_GetConsoleAliasW]
mov ebp, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ebx, dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [esp + 0x10], 0xdd7b3
cmp dword [0x4b7b58], 0x21
jne 0x40a239
push 0
push 0
push 0
call esi
push 0
push 0
lea eax, [esp + 0x2c8]
push eax
push 0
call edi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SleepEx]
lea ecx, [esp + 0x14]
push ecx
call ebp
push 0
call ebx
dec dword [esp + 0x10]
jne 0x40a203
call fcn.00409e80
cmp dword [0x4b7b58], 0x58c
mov byte [0x43c339], 0x73
jne 0x40a2f5
xor esi, esi
push esi
call dword [sym.imp.KERNEL32.dll_LocalSize]
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_RaiseException]
call fcn.00409da0
pop edi
xor eax, eax
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret