Function at 0x40968a
Capabilities:
Check if file exists
Copy file
Create thread
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2dc
and dword [ebp - 0x144], 0
and dword [ebp - 4], 0
and dword [ebp - 0x24], 0
mov dword [ebp - 0x34], 0x410e2c
and dword [ebp - 0x20], 0
and dword [ebp - 0x2c], 0
and dword [ebp - 0x28], 0
and dword [ebp - 0x30], 0
cmp dword [ebp + 8], 4
jne 0x4096d6
push 0x416110
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
cmp eax, 1
jne 0x4096d6
xor eax, eax
jmp 0x409a98
push 0xffffffffffffffff
call fcn.0040a398
cmp dword [ebp + 8], 1
jne 0x409717
mov eax, dword [0x415930]
add eax, 0xc68
mov dword [ebp - 4], eax
mov eax, dword [0x415930]
add eax, 0xb80
mov dword [ebp - 0x24], eax
mov eax, dword [0x415930]
mov eax, dword [eax + 0xb7c]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x20], 0x416360
jmp 0x4097ca
cmp dword [ebp + 8], 3
jne 0x40974a
mov eax, dword [0x415930]
add eax, 0xe98
mov dword [ebp - 4], eax
mov eax, dword [0x415930]
add eax, 0xdb0
mov dword [ebp - 0x24], eax
mov eax, dword [0x415930]
mov eax, dword [eax + 0xdac]
mov dword [ebp - 0x2c], eax
jmp 0x4097ca
cmp dword [ebp + 8], 4
jne 0x409781
mov eax, dword [0x415930]
add eax, 0x1214
mov dword [ebp - 4], eax
mov eax, dword [0x415930]
add eax, 0x11e4
mov dword [ebp - 0x24], eax
mov eax, dword [0x415930]
mov eax, dword [eax + 0x11e0]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x20], 0x416110
jmp 0x4097ca
cmp dword [ebp + 8], 5
jne 0x4097ca
mov eax, dword [0x415930]
add eax, 0x1878
mov dword [ebp - 0x24], eax
mov eax, dword [0x415930]
mov eax, dword [eax + 0x1874]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x34], 0x410e30
cmp dword [0x4169d0], 3
jae 0x4097bf
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4097a9
push 0x1b7740
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x104
push 0
lea eax, [ebp - 0x140]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
push dword [ebp - 0x34]
call fcn.0040246e
push eax
push 0x415940
push str._s_x._s
lea eax, [ebp - 0x140]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
push 0x18
push 0
lea eax, [ebp - 0x1c]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
mov eax, dword [ebp + 8]
mov dword [ebp - 0x28], eax
push 0x40
push 0
lea eax, [ebp - 0x188]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
cmp dword [ebp - 0x28], 5
jne 0x409876
lea eax, [ebp - 0x1c8]
push eax
lea eax, [ebp - 0x188]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.0040954d
cmp eax, 1
jne 0x409874
push 0
push 0
push 5
push fcn.0040968a
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 0x30], 1
jmp 0x409a7f
jmp 0x4098eb
cmp dword [0x4169d4], 1
jne 0x4098b8
cmp dword [ebp - 0x144], 0
jne 0x4098b8
push 0x416218
lea eax, [ebp - 0x188]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x416218
lea eax, [ebp - 0x1c8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov dword [ebp - 0x144], 1
jmp 0x4098eb
lea eax, [ebp - 0x1c8]
push eax
push dword [ebp - 0x28]
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x188]
push eax
push dword [ebp - 4]
call fcn.004093a7
cmp eax, 1
jne 0x4098eb
mov dword [ebp - 0x30], 1
jmp 0x409a7f
push dword [ebp + 8]
push 0
push 1
lea eax, [ebp - 0x1c8]
push eax
lea eax, [ebp - 0x140]
push eax
push dword [ebp - 0x24]
push dword [ebp - 0x2c]
lea eax, [ebp - 0x188]
push eax
call fcn.004083e1
cmp eax, 1
jne 0x409a02
cmp dword [ebp + 8], 1
je 0x40992b
cmp dword [ebp + 8], 3
jne 0x409a00
and dword [ebp - 0x1cc], 0
call fcn.0040246e
mov dword [ebp - 0x1cc], eax
mov eax, dword [ebp - 0x1cc]
and eax, 0xfffffff0
mov dword [ebp - 0x1cc], eax
mov eax, dword [ebp - 0x1cc]
or eax, dword [ebp + 8]
mov dword [ebp - 0x1cc], eax
push 0x104
push 0
lea eax, [ebp - 0x2d8]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
push dword [ebp - 0x34]
push dword [ebp - 0x1cc]
push 0x415940
push str._s_.8X._s
lea eax, [ebp - 0x2d8]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
push 0
lea eax, [ebp - 0x2d8]
push eax
lea eax, [ebp - 0x140]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
lea eax, [ebp - 0x2d8]
push eax
call fcn.0040819d
cmp eax, 1
jne 0x4099e4
push 0
push 0
lea eax, [ebp - 0x2d8]
push eax
push 0x407e0c
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x409a07
lea eax, [ebp - 0x2d8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp - 0x140]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x409a02
jmp 0x409a07
jmp 0x409819
cmp dword [ebp + 8], 3
jne 0x409a1c
lea eax, [ebp - 0x140]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x409a57
cmp dword [ebp + 8], 5
jne 0x409a57
and dword [ebp - 0x2dc], 0
push str.explorer.exe
call fcn.00407d85
mov dword [ebp - 0x2dc], eax
push dword [ebp - 0x2dc]
lea eax, [ebp - 0x140]
push eax
call fcn.00407cd1
push dword [ebp - 0x2dc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x20], 0
je 0x409a7f
push 0x104
push 0
push dword [ebp - 0x20]
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 0x140]
push eax
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
cmp dword [ebp - 0x1c], 0
je 0x409a95
push 0x8000
push 0
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, dword [ebp - 0x30]
leave
ret 4