Function at 0x460300
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5891d0
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push esi
call fcn.00505a30
add esp, 4
test al, al
mov eax, 0x5a06ec
jne 0x460335
mov eax, esi
push eax
lea ecx, [ebp - 0x10]
call fcn.0040bfb0
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x10]
mov ecx, dword [str.SCAuxiliaryService]
push 0x7530
push 0
push eax
push ecx
call fcn.0045fb90
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
add esp, 0x10
push 0x12c
call edi
mov edx, dword [ebp - 0x10]
mov eax, dword [str.SCAuxiliaryService]
push edx
push eax
call fcn.0045f6c0
mov edx, dword [0x5f5774]
mov eax, dword [edx + 0xc]
add esp, 8
mov ecx, 0x5f5774
call eax
add eax, 0x10
mov dword [ebp - 0x1c], eax
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x10]
push ecx
lea edx, [ebp - 0x1c]
push str._sADMIN_
push edx
call fcn.004060d0
mov eax, dword [0x5f5774]
mov edx, dword [eax + 0xc]
add esp, 0xc
mov ecx, 0x5f5774
call edx
add eax, 0x10
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 4
mov eax, dword [0x5f5774]
mov edx, dword [eax + 0xc]
mov ecx, 0x5f5774
call edx
add eax, 0x10
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 6
mov eax, dword [str.AuxiliarySvc.exe]
mov esi, dword [ebp - 0x1c]
push eax
push esi
lea ecx, [ebp - 0x18]
push 0x5a06c8
push ecx
call fcn.004060d0
mov edx, dword [str.SCAuxiliaryServiceCfg.dat]
push edx
push esi
lea eax, [ebp - 0x14]
push 0x5a06c8
push eax
call fcn.004060d0
add esp, 0x20
xor esi, esi
mov ecx, dword [ebp - 0x18]
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push ecx
call ebx
test eax, eax
je 0x46042c
mov edx, dword [ebp - 0x14]
push edx
call ebx
test eax, eax
jne 0x460444
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x460444
push 0x320
call edi
inc esi
cmp esi, 0x64
jl 0x460412
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x20], 0
mov edi, edi
mov eax, dword [ebp - 0x10]
push ebx
push eax
lea ecx, [ebp - 0x24]
push str._sADMIN__s
push ecx
call fcn.00434b90
add esp, 0x10
mov byte [ebp - 4], 7
mov esi, dword [eax]
mov ecx, dword [esi - 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
call eax
cmp dword [esi - 4], 0
lea edx, [esi - 4]
jl 0x460492
cmp eax, dword [esi - 0x10]
jne 0x460492
lea edi, [esi - 0x10]
mov ecx, 1
lock xadd dword [edx], ecx
jmp 0x4604ca
mov ecx, dword [esi - 0xc]
mov edx, dword [eax]
mov edx, dword [edx]
push 2
push ecx
mov ecx, eax
call edx
mov edi, eax
test edi, edi
je 0x460546
mov eax, dword [esi - 0xc]
mov dword [edi + 4], eax
mov eax, dword [esi - 0xc]
lea ecx, [eax + eax + 2]
push ecx
lea edx, [eax + eax + 2]
push esi
push edx
lea eax, [edi + 0x10]
push eax
call fcn.00554d08
add esp, 0x10
lea esi, [edi + 0x10]
mov dword [ebp - 0x28], esi
mov byte [ebp - 4], 0xa
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4604f3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x46054b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x46054b
push 0x320
call dword [sym.imp.KERNEL32.dll_Sleep]
mov byte [ebp - 4], 6
lea eax, [esi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x460534
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x20]
inc eax
mov dword [ebp - 0x20], eax
cmp eax, 0x64
jl 0x460450
jmp 0x46056b
call fcn.004021c0
mov byte [ebp - 4], 6
lea eax, [esi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46056b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
pop edi
pop esi
pop ebx
test edx, edx
jg 0x460591
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4605b4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4605d7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4605fd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret