Function at 0x405a40
Capabilities:
Copy file
Delete file
Terminate process
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 0x20], 0
cmp dword [ebp - 0x20], 1
jne 0x405a58
jmp 0x405cbb
call fcn.00405cd0
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00405670
add esp, 8
mov edx, dword [ebp - 0x1c]
push edx
call fcn.00409be0
add esp, 4
cmp eax, 1
jne 0x405c96
mov eax, dword [ebp - 0x1c]
push eax
call fcn.00405d60
add esp, 4
test eax, eax
je 0x405c96
push 0x414960
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push str.wWXZOlIzwOwzIlOZXWw
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push str.82z2z2s2d2g4j6k4l62d
call dword [sym.imp.KERNEL32.dll_lstrlenW]
shl eax, 1
push eax
push str.82z2z2s2d2g4j6k4l62d
call fcn.00408110
add esp, 8
push 0x10
push 0
lea edx, [ebp - 0x14]
push edx
call fcn.0040a430
add esp, 0xc
lea eax, [ebp - 0x14]
push eax
push 0
push 0
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.00406290
add esp, 0x10
push 0x493e0
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push 0x414960
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [ebp - 4], 0
jne 0x405c96
push 0
mov edx, dword [0x41493c]
push edx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push 0
mov eax, dword [0x41494c]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push 0
mov ecx, dword [0x414930]
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov edx, dword [0x414924]
push edx
call fcn.0040a410
add esp, 4
push 0
mov eax, dword [0x414928]
push eax
push 0
push 0
mov ecx, dword [0x414944]
push ecx
call dword [sym.imp.KERNEL32.dll_UnlockFile]
mov edx, dword [0x414944]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x4148f8]
push eax
call fcn.00406560
add esp, 4
mov ecx, dword [0x414940]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [0x414978]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [0x411e94]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [0x413ee8]
add ecx, 0x10
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
mov edx, dword [0x413ee8]
add edx, 0x10
push edx
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [0x411e9c], 1
jne 0x405c49
mov edx, dword [0x41492c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x414950]
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov ecx, dword [0x414948]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [0x414950]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x4119e4], 0
push str.KOPWELERGKR23930DW
call dword [sym.imp.KERNEL32.dll_lstrlenW]
shl eax, 1
push eax
push str.KOPWELERGKR23930DW
call fcn.00408110
add esp, 8
push 0
push 0
push 0
mov eax, dword [0x413ee8]
add eax, 0x10
push eax
call fcn.00406290
add esp, 0x10
cmp dword [0x411e9c], 0
jne 0x405c8e
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push 0
call dword [sym.imp.KERNEL32.dll_ExitThread]
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.0040a410
add esp, 4
push 0xea60
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edx, dword [ebp - 0x20]
add edx, 1
mov dword [ebp - 0x20], edx
jmp 0x405a4d
mov eax, dword [ebp + 8]
push eax
call fcn.0040a410
add esp, 4
mov esp, ebp
pop ebp
ret