Function at 0x40668f
Capabilities:
Copy file
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x298
and dword [ebp - 8], 0
and dword [ebp - 0x34], 0
mov dword [ebp - 0x3c], 0x40cd18
and dword [ebp - 0x30], 0
and dword [ebp - 0x38], 0
and dword [ebp - 4], 0
push 0xffffffffffffffff
call fcn.00406e09
cmp dword [ebp + 8], 0
je 0x4066c6
cmp dword [ebp + 8], 4
jne 0x40670d
mov eax, dword [0x4122fc]
add eax, 0x139c
mov dword [ebp - 8], eax
mov eax, dword [0x4122fc]
add eax, 0x12b4
mov dword [ebp - 0x34], eax
mov eax, dword [0x4122fc]
mov eax, dword [eax + 0x12b0]
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x30], 0x412a88
cmp dword [ebp + 8], 0
jne 0x406704
mov dword [ebp - 4], 1
jmp 0x40670b
mov dword [ebp - 4], 3
jmp 0x406742
cmp dword [ebp + 8], 1
jne 0x406742
mov eax, dword [0x4122fc]
add eax, 0x2154
mov dword [ebp - 8], eax
mov eax, dword [0x4122fc]
add eax, 0x2124
mov dword [ebp - 0x34], eax
mov eax, dword [0x4122fc]
mov eax, dword [eax + 0x2120]
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x3c], 0x40cd1c
push 0x104
push 0
lea eax, [ebp - 0x148]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
push dword [ebp - 0x3c]
call fcn.004024be
push eax
push 0x412310
push str._s_x._s
lea eax, [ebp - 0x148]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
push 0x24
push 0
lea eax, [ebp - 0x2c]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
push 0x40
push 0
lea eax, [ebp - 0x188]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
push dword [ebp - 4]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x188]
push eax
push dword [ebp - 8]
call fcn.00406363
cmp eax, 1
jne 0x4067c1
xor eax, eax
inc eax
jmp 0x40691d
lea eax, [ebp - 0x148]
push eax
push dword [ebp - 0x34]
push dword [ebp - 0x38]
lea eax, [ebp - 0x188]
push eax
call fcn.00405e02
cmp eax, 1
jne 0x4068a1
cmp dword [ebp + 8], 0
jne 0x40689d
push 0x104
push 0
lea eax, [ebp - 0x290]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
push dword [ebp - 0x3c]
call fcn.004024be
push eax
push 0x412310
push str._s_x._s
lea eax, [ebp - 0x290]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
push 0
lea eax, [ebp - 0x290]
push eax
lea eax, [ebp - 0x148]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
lea eax, [ebp - 0x290]
push eax
call fcn.00405c5a
cmp eax, 1
jne 0x406881
mov eax, dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 0x294], eax
push 0
push 0
lea eax, [ebp - 0x290]
push eax
push 0x405920
push 0
push 0
call dword [ebp - 0x294]
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4068b1
lea eax, [ebp - 0x290]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp - 0x148]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x40689f
jmp 0x4068b1
jmp 0x4068ac
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x40678b
cmp dword [ebp + 8], 1
jne 0x4068e7
and dword [ebp - 0x298], 0
call fcn.00405889
mov dword [ebp - 0x298], eax
push dword [ebp - 0x298]
lea eax, [ebp - 0x148]
push eax
call fcn.004057f9
push dword [ebp - 0x298]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp + 8], 0
je 0x4068f9
cmp dword [ebp + 8], 2
je 0x4068f9
cmp dword [ebp + 8], 3
jne 0x40691b
push 0x104
push 0
push dword [ebp - 0x30]
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 0x148]
push eax
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
xor eax, eax
leave
ret 4