Function at 0x40a180
Capabilities:
Copy file
Enumerate gui resources
Get common file path
Get file attributes
Terminate thread

Disassembly:
sub esp, 0x9a4
push ebx
push ebp
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_ActivateActCtx]
xor esi, esi
cmp esi, 0xfac
jne 0x40a1a5
mov eax, 0x38d6
add dword [0x4a96a0], eax
cmp dword [0x4a96a0], 0xc3c
jne 0x40a1ba
push 0
lea eax, [esp + 0x18]
push eax
call edi
inc esi
cmp esi, 0x319da6
jl 0x40a192
mov ecx, dword [0x4a96a0]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, dword [sym.imp.KERNEL32.dll_EnumCalendarInfoExA]
mov edi, dword [sym.imp.KERNEL32.dll_EnumCalendarInfoA]
mov ebx, dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
mov ebp, dword [sym.imp.KERNEL32.dll_CopyFileW]
mov dword [0x4a8d84], eax
mov eax, dword [0x4a96a0]
mov dword [esp + 0x10], 0x962ae8
lea esp, [esp]
cmp eax, 3
jne 0x40a217
lea edx, [esp + 0x70]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
mov eax, dword [0x4a96a0]
cmp eax, 0xd
jne 0x40a24b
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 + 0x1b4]
push eax
push 0
call ebx
push 0
push 0
push 0
call ebp
mov eax, dword [0x4a96a0]
dec dword [esp + 0x10]
jne 0x40a200
xor esi, esi
test eax, eax
je 0x40a287
mov edi, dword [sym.imp.KERNEL32.dll__llseek]
mov ebx, dword [sym.imp.KERNEL32.dll_TerminateThread]
cmp eax, 0xfe
jne 0x40a278
push 0
push 0
push 0
call edi
push 0
push 0
call ebx
call fcn.00409f10
mov eax, dword [0x4a96a0]
inc esi
cmp esi, eax
jb 0x40a263
mov ebx, dword [sym.imp.KERNEL32.dll_AddAtomA]
cmp eax, 0x19c
jne 0x40a2df
push 0x402a7c
call ebx
push 0
lea ecx, [esp + 0x1b4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumTimeFormatsW]
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 0x402ab0
push 0x402ae0
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
mov edi, dword [sym.imp.USER32.dll_LoadMenuA]
mov esi, 0x8dc
lea ebx, [ebx]
push 0
push 0
call edi
dec esi
jne 0x40a2f0
mov esi, 0x2594b
mov edi, 0x15a
cmp dword [0x4a96a0], edi
jne 0x40a319
push 0
call ebx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SleepEx]
dec esi
jne 0x40a303
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 0x40a33c
push 0
call ebp
cmp esi, 0x1ea070d5
jle 0x40a354
cmp edi, 0xacc0b8
je 0x40a354
cmp ebx, 0xad642ec
jne 0x40a35d
inc esi
cmp esi, 0x8ded45c8
jb 0x40a330
mov byte [0x42de80], 0
call fcn.00409a60
call fcn.0040a150
call fcn.00409ef0
mov esi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileSectionW]
mov edi, dword [sym.imp.KERNEL32.dll_GetConsoleAliasA]
mov ebp, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ebx, dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov dword [esp + 0x10], 0xdd7b3
cmp dword [0x4a96a0], 0x21
jne 0x40a3c9
push 0
push 0
push 0
call esi
push 0
push 0
lea edx, [esp + 0x1b8]
push edx
push 0
call edi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SleepEx]
lea eax, [esp + 0x14]
push eax
call ebp
push 0
call ebx
dec dword [esp + 0x10]
jne 0x40a393
call fcn.00409fe0
cmp dword [0x4a96a0], 0x58c
mov byte [0x42de81], 0x73
jne 0x40a485
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.00409f00
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x9a4
ret