Function at 0x405870
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47a4f9
mov eax, dword fs:[0]
push eax
sub esp, 0x1d8
mov eax, dword [0x4b0154]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x1d4]
mov esi, dword [ebp + 8]
add eax, 8
push eax
call fcn.00402510
lea ecx, [ebp - 0x1d4]
mov dword [ebp - 4], 0
call fcn.00414060
cmp al, 0x72
jne 0x4060b7
push str.EXECUTE
lea ecx, [ebp - 0x1d4]
call fcn.00414140
mov ecx, eax
call fcn.00407a60
test al, al
je 0x405924
push str.EXECUTE_AS_ADMIN
lea ecx, [ebp - 0x1d4]
call fcn.00414140
mov ecx, eax
call fcn.00407a60
test al, al
je 0x405924
push str.RESTART_OS
lea ecx, [ebp - 0x1d4]
call fcn.00414140
mov ecx, eax
call fcn.00407a60
test al, al
jne 0x4060b7
push 0x47e439
lea ecx, [ebp - 0x70]
call fcn.00406ae0
push 0x47e439
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 1
call fcn.00406ae0
push str.RESTART_OS
lea ecx, [ebp - 0x1d4]
mov byte [ebp - 4], 2
mov ebx, 0x927c0
call fcn.00414140
mov ecx, eax
call fcn.004079a0
test al, al
lea eax, [ebp - 0x28]
push eax
je 0x405a54
mov ecx, dword [edi + 0x24c]
call fcn.00406700
push eax
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 3
call fcn.00406ab0
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 4
push eax
lea ecx, [ebp - 0x58]
call fcn.00406b40
mov eax, dword [ebp - 0x2c]
cmp eax, 0x10
jb 0x4059ab
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.00420790
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x2c], 0xf
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x40], 0
mov byte [ebp - 4], 2
cmp eax, 0x10
jb 0x4059d6
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00420790
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x28]
push 0x47e504
push eax
call fcn.00407dc0
push 0x47e504
push eax
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 5
push eax
call fcn.00407d50
add esp, 0x18
push eax
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 6
call fcn.00406b40
mov eax, dword [ebp - 0x2c]
cmp eax, 0x10
jb 0x405a20
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.00420790
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x2c], 0xf
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x40], 0
mov byte [ebp - 4], 2
cmp eax, 0x10
jb 0x405b90
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00420790
jmp 0x405b90
mov ecx, esi
call fcn.004091e0
push eax
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 7
call fcn.00406b40
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], 2
cmp eax, 0x10
jb 0x405a81
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00420790
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call fcn.004091e0
push eax
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 8
call fcn.00406b40
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], 2
cmp eax, 0x10
jb 0x405ab2
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00420790
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call fcn.004091e0
mov ecx, eax
mov byte [ebp - 4], 9
call fcn.00406e50
mov ecx, dword [ebp - 0x14]
mov ebx, eax
mov byte [ebp - 4], 2
cmp ecx, 0x10
jb 0x405ae3
inc ecx
push ecx
push dword [ebp - 0x28]
lea ecx, [ebp - 0x28]
call fcn.00420790
mov eax, dword [edi + 0x30]
lea ecx, [ebp - 0x58]
push ebx
mov esi, dword [eax]
call fcn.00406e10
push eax
lea ecx, [ebp - 0x70]
call fcn.00406e10
push eax
push str.path:__s__command:__s__timeout:__d_n
push 3
push dword [edi + 0x30]
call dword [esi + 0x14]
add esp, 0x18
lea ecx, [ebp - 0x58]
call fcn.004071a0
test eax, eax
je 0x405b30
push 0
lea ecx, [ebp - 0x58]
call fcn.00407900
cmp byte [eax], 0x2f
jne 0x405b30
push 0
lea ecx, [ebp - 0x58]
call fcn.00407650
lea ecx, [ebp - 0x70]
call fcn.004071a0
test eax, eax
je 0x405b90
push 0
lea ecx, [ebp - 0x70]
call fcn.00407900
cmp byte [eax], 0x2f
jne 0x405b55
push 0
lea ecx, [ebp - 0x70]
call fcn.00407650
lea ecx, [ebp - 0x70]
call fcn.004071a0
dec eax
lea ecx, [ebp - 0x70]
push eax
call fcn.00407900
cmp byte [eax], 0x2f
je 0x405b90
lea ecx, [ebp - 0x70]
call fcn.004071a0
dec eax
lea ecx, [ebp - 0x70]
push eax
call fcn.00407900
cmp byte [eax], 0x5c
je 0x405b90
push 0x47e52c
lea ecx, [ebp - 0x70]
call fcn.00407ba0
lea eax, [ebp - 0x58]
mov ecx, edi
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00402ea0
push eax
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 0xa
call fcn.00406b40
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], 2
cmp eax, 0x10
jb 0x405bc5
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00420790
mov eax, dword [edi + 0x30]
lea ecx, [ebp - 0x58]
push ebx
mov esi, dword [eax]
call fcn.00406e10
push eax
lea ecx, [ebp - 0x70]
call fcn.00406e10
push eax
push str.executing__s_s__timeout_d_..._n
push dword [edi + 0x30]
call dword [esi + 0x18]
call fcn.0040ac70
push edx
push eax
lea eax, [ebp - 0xe8]
push eax
call fcn.00406550
add esp, 0x20
mov esi, eax
lea eax, [ebp - 0xd0]
mov byte [ebp - 4], 0xb
push eax
call fcn.004141a0
mov ecx, eax
call fcn.00414570
push str.command
push eax
lea eax, [ebp - 0xb8]
mov byte [ebp - 4], 0xc
push eax
call fcn.00401860
push esi
push eax
lea eax, [ebp - 0xa0]
mov byte [ebp - 4], 0xd
push eax
call fcn.004017f0
push str..tmp
push eax
lea eax, [ebp - 0x88]
mov byte [ebp - 4], 0xe
push eax
call fcn.00401860
add esp, 0x24
mov eax, dword [ebp - 0x8c]
cmp eax, 0x10
jb 0x405c76
inc eax
lea ecx, [ebp - 0xa0]
push eax
push dword [ebp - 0xa0]
call fcn.00420790
mov dword [ebp - 0x8c], 0xf
mov dword [ebp - 0x90], 0
mov byte [ebp - 0xa0], 0
mov eax, dword [ebp - 0xa4]
cmp eax, 0x10
jb 0x405caf
inc eax
lea ecx, [ebp - 0xb8]
push eax
push dword [ebp - 0xb8]
call fcn.00420790
mov dword [ebp - 0xa4], 0xf
mov dword [ebp - 0xa8], 0
mov byte [ebp - 0xb8], 0
mov eax, dword [ebp - 0xbc]
cmp eax, 0x10
jb 0x405ce8
inc eax
lea ecx, [ebp - 0xd0]
push eax
push dword [ebp - 0xd0]
call fcn.00420790
mov dword [ebp - 0xbc], 0xf
mov dword [ebp - 0xc0], 0
mov byte [ebp - 0xd0], 0
mov eax, dword [ebp - 0xd4]
mov byte [ebp - 4], 0x13
cmp eax, 0x10
jb 0x405d25
inc eax
lea ecx, [ebp - 0xe8]
push eax
push dword [ebp - 0xe8]
call fcn.00420790
lea eax, [ebp - 0x28]
mov dword [ebp - 0xd4], 0xf
push eax
mov dword [ebp - 0xd8], 0
mov byte [ebp - 0xe8], 0
call fcn.004141a0
mov ecx, eax
call fcn.00414570
push eax
lea ecx, [ebp - 0x134]
mov byte [ebp - 4], 0x14
call fcn.0041b3f0
mov ecx, eax
mov byte [ebp - 4], 0x15
call fcn.0041be30
lea ecx, [ebp - 0x134]
call fcn.0041b650
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], 0x13
cmp eax, 0x10
jb 0x405d8f
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00420790
cmp dword [ebp - 0x74], 0x10
lea eax, [ebp - 0x88]
cmovae eax, dword [ebp - 0x88]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp - 0x88]
push eax
lea ecx, [ebp - 0x100]
call fcn.00406ab0
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 0x16
push eax
lea eax, [ebp - 0x118]
push str._A__C
push eax
call fcn.00407dc0
push 0x47e564
push eax
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 0x17
push eax
call fcn.00407d50
lea ecx, [ebp - 0x100]
mov byte [ebp - 4], 0x18
push ecx
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.004069f0
add esp, 0x24
push eax
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 0x19
call fcn.00406b40
mov eax, dword [ebp - 0x2c]
cmp eax, 0x10
jb 0x405e1f
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.00420790
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x2c], 0xf
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x40], 0
cmp eax, 0x10
jb 0x405e46
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00420790
lea ecx, [ebp - 0x118]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.0041d110
lea ecx, [ebp - 0x100]
mov byte [ebp - 4], 0x13
call fcn.0041d110
mov eax, dword [edi + 0x30]
lea ecx, [ebp - 0x58]
mov esi, dword [eax]
call fcn.00406e10
push eax
push str.executing__s
push 3
push dword [edi + 0x30]
call dword [esi + 0x14]
add esp, 0x10
mov dword [ebp - 0x1dc], 0x66
lea eax, [ebp - 0x1dc]
lea ecx, [ebp - 0x1d4]
push eax
lea eax, [ebp - 0x3c]
push eax
call fcn.00413d40
mov edx, dword [edi]
mov ecx, edi
push 0
push 1
push eax
mov byte [ebp - 4], 0x1a
call dword [edx + 0x34]
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 0x13
call fcn.004090c0
push 7
lea ecx, [ebp - 0x58]
call fcn.00406e00
push eax
lea ecx, [ebp - 0x70]
call fcn.00406e00
push eax
push str.cmd.exe
call fcn.0040afa0
add esp, 0x10
mov dword [ebp - 0x1e4], eax
mov eax, dword [edi + 0xa8]
mov dword [ebp - 0x1e0], eax
lea eax, [ebp - 0x1e4]
push ebx
push 0
push eax
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
test eax, eax
je 0x405f7d
cmp eax, 1
mov eax, dword [edi + 0x30]
mov ecx, dword [eax]
je 0x405f6c
push str.error:_timeout_n
push eax
call dword [ecx + 0x18]
add esp, 8
mov dword [ebp - 0x1dc], 0x65
lea eax, [ebp - 0x1dc]
lea ecx, [ebp - 0x1d4]
push eax
lea eax, [ebp - 0x3c]
push eax
call fcn.00413d40
push str.Timeout_occurred
mov ecx, eax
mov byte [ebp - 4], 0x1b
call fcn.00409bc0
mov edx, dword [edi]
mov ecx, edi
push 0
push 1
push eax
call dword [edx + 0x34]
jmp 0x40606e
push str.error:_exit_loop_detected._Exit._n
push eax
call dword [ecx + 0x18]
add esp, 8
jmp 0x406076
push 0
lea ecx, [ebp - 0x3c]
call fcn.00408fc0
lea eax, [ebp - 0x1dc]
mov byte [ebp - 4], 0x1c
push eax
push dword [ebp - 0x1e4]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov eax, dword [edi + 0x30]
push dword [ebp - 0x1dc]
push str.process_exit_code__d_n
mov ecx, dword [eax]
push eax
call dword [ecx + 0x10]
add esp, 0xc
lea ecx, [ebp - 0x1d4]
cmp dword [ebp - 0x1dc], 0
je 0x405fc8
push 0x65
jmp 0x405fca
push 0x73
call fcn.00414070
lea eax, [ebp - 0x3c]
push eax
lea ecx, [ebp - 0x1d4]
call fcn.004139b0
lea eax, [ebp - 0x88]
push eax
lea ecx, [ebp - 0x100]
call fcn.00406ab0
push 0x88
push bind
push 0
push 0
lea eax, [ebp - 0x100]
mov byte [ebp - 4], 0x1d
push eax
lea ecx, [ebp - 0x130]
call fcn.0040f1c0
lea ecx, [ebp - 0x100]
mov byte [ebp - 4], 0x1f
call fcn.0041d110
mov eax, dword [ebp - 0x128]
test eax, eax
je 0x40603c
push dword [ebp - 0x108]
lea ecx, [ebp - 0x3c]
push eax
call fcn.00409150
push 1
lea eax, [ebp - 0x1d8]
mov byte [ebp - 0x1d8], 0
push eax
lea ecx, [ebp - 0x3c]
call fcn.00409150
mov eax, dword [edi]
lea ecx, [ebp - 0x3c]
push 0
push 1
push ecx
mov ecx, edi
call dword [eax + 0x34]
lea ecx, [ebp - 0x130]
call fcn.0040f480
lea ecx, [ebp - 0x3c]
call fcn.004090c0
push dword [ebp - 0x1e4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x74], 0x10
lea eax, [ebp - 0x88]
cmovae eax, dword [ebp - 0x88]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [ebp - 0x88]
call fcn.0041d110
lea ecx, [ebp - 0x58]
call fcn.0041d110
lea ecx, [ebp - 0x70]
call fcn.0041d110
jmp 0x4060ec
lea ecx, [ebp - 0x1d4]
call fcn.00414060
cmp al, 0x72
jne 0x4060ec
mov eax, dword [edi + 0x30]
lea ecx, [ebp - 0x1d4]
mov esi, dword [eax]
call fcn.00414140
mov ecx, eax
call fcn.00406e10
push eax
push str.unknown_command__s_n
push dword [edi + 0x30]
call dword [esi + 0x18]
add esp, 0xc
lea ecx, [ebp - 0x1d4]
call fcn.00402990
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00449699
mov esp, ebp
pop ebp
ret 8