Function at 0x406c50
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x470150
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x4b700c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, ecx
mov dword [ebp - 0x1c], ebx
call fcn.00403a70
mov ecx, eax
test ecx, ecx
je 0x4070f4
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x2c], eax
mov dword [ebp - 4], 1
sub esp, 0x18
mov dword [ebp - 0x28], esp
mov ecx, esp
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 7
xor eax, eax
mov word [ecx], ax
push 9
push str.stemp.bat
call fcn.004029c0
mov byte [ebp - 4], 2
sub esp, 0x18
mov dword [ebp - 0x24], esp
mov ecx, esp
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 7
xor eax, eax
mov word [ecx], ax
push 6
push 0x487a74
call fcn.004029c0
mov byte [ebp - 4], 3
mov byte [ebp - 4], 1
mov edx, 0x90
lea ecx, [ebp - 0x20]
call fcn.00401370
add esp, 0x30
mov byte [ebp - 4], 4
mov byte [ebp - 4], 5
push 0x4878b4
lea ecx, [ebp - 0x24]
call fcn.0045d100
mov byte [ebp - 4], 6
mov byte [ebp - 0x11], 1
push ecx
mov ecx, esp
mov dword [ebp - 0x28], esp
lea eax, [ebp - 0x24]
push eax
lea edx, [ebp - 0x20]
call fcn.0045c7c0
add esp, 4
mov byte [ebp - 4], 7
mov byte [ebp - 4], 6
mov dl, byte [ebp - 0x11]
lea ecx, [ebp - 0x18]
call fcn.00460ee0
add esp, 4
mov byte [ebp - 4], 0xa
mov byte [ebp - 4], 9
mov edx, dword [ebp - 0x24]
add edx, 0xfffffff0
or esi, 0xffffffff
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x406d78
mov ecx, dword [edx]
mov eax, dword [ecx]
push edx
call dword [eax + 4]
push ecx
push str.ChangeServiceConfig_SUCCESS
lea ecx, [ebp - 0x18]
call fcn.0045cc50
test eax, eax
jle 0x406de3
push ecx
push str.SUCCESS
lea ecx, [ebp - 0x18]
call fcn.0045cc50
test eax, eax
jle 0x406de3
push ecx
mov ecx, esp
mov dword [ebp - 0x28], esp
push 0x48780e
call fcn.0045d100
mov byte [ebp - 4], 0x11
push ecx
mov ecx, esp
mov dword [ebp - 0x24], esp
push str.BES_Client_Service_changes_has_been_done.
call fcn.0045d100
mov byte [ebp - 4], 0x12
push ecx
mov ecx, esp
mov dword [ebp - 0x30], esp
push str.Success
call fcn.0045d100
mov byte [ebp - 4], 0x13
mov byte [ebp - 4], 9
mov ecx, ebx
jmp 0x406eab
push ecx
mov dword [ebp - 0x30], esp
mov dword [ebp - 0x28], esp
mov edi, dword [ebp - 0x18]
mov ecx, dword [edi - 0x10]
mov eax, dword [ecx]
call dword [eax + 0x10]
mov ecx, eax
lea eax, [edi - 4]
cmp dword [eax], 0
jl 0x406e0c
cmp ecx, dword [edi - 0x10]
jne 0x406e0c
lea ebx, [edi - 0x10]
lock inc dword [eax]
jmp 0x406e36
mov eax, dword [ecx]
push 2
push dword [edi - 0xc]
call dword [eax]
mov ebx, eax
test ebx, ebx
je 0x4070fe
mov eax, dword [edi - 0xc]
mov dword [ebx + 4], eax
mov edx, dword [edi - 0xc]
inc edx
push edx
push edi
lea ecx, [ebx + 0x10]
call fcn.004031c0
add esp, 8
lea eax, [ebx + 0x10]
mov ecx, dword [ebp - 0x28]
mov dword [ecx], eax
mov byte [ebp - 4], 0xb
mov byte [ebp - 4], 0xc
push ecx
mov ecx, esp
mov dword [ebp - 0x28], esp
push str._Restart_BES_service_Error
call fcn.0045d100
mov byte [ebp - 4], 0xd
mov byte [ebp - 4], 9
or ecx, 0xffffffff
call fcn.0045f800
add esp, 4
mov ecx, esp
mov dword [ebp - 0x30], esp
push 0x48780e
call fcn.0045d100
mov byte [ebp - 4], 0xe
push ecx
mov ecx, esp
mov dword [ebp - 0x28], esp
push str.The_BES_Client_Service_is_not_present_on_your_system.
call fcn.0045d100
mov byte [ebp - 4], 0xf
push ecx
mov ecx, esp
mov dword [ebp - 0x24], esp
push str.Failure
call fcn.0045d100
mov byte [ebp - 4], 0x10
mov byte [ebp - 4], 9
mov ecx, dword [ebp - 0x1c]
call fcn.0045fd10
add esp, 0xc
mov byte [ebp - 4], 0x14
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x406ed5
mov ecx, dword [edx]
mov eax, dword [ecx]
push edx
call dword [eax + 4]
mov dword [ebp - 4], 4
jmp 0x406f78
call fcn.00403a70
mov ecx, eax
test ecx, ecx
je 0x407103
jmp 0x40701a
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 0x20
push 0x4878b4
lea ecx, [ebp - 0x18]
call fcn.00402f20
test al, al
jne 0x407047
push 0x4878b4
lea ecx, [ebp - 0x18]
call fcn.0045d070
mov byte [ebp - 4], 0x21
lea eax, [ebp - 0x18]
push eax
lea edx, [ebp - 0x20]
lea ecx, [ebp - 0x28]
call fcn.0045c7c0
add esp, 4
mov byte [ebp - 4], 0x22
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov byte [ebp - 4], 0x21
mov edx, dword [ebp - 0x28]
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x407087
mov ecx, dword [edx]
mov eax, dword [ecx]
push edx
call dword [eax + 4]
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4070a5
mov ecx, dword [edx]
mov eax, dword [ecx]
push edx
call dword [eax + 4]
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x20]
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4070c3
mov ecx, dword [edx]
mov eax, dword [ecx]
push edx
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x2c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x4070e2
mov ecx, dword [edx]
mov eax, dword [ecx]
push edx
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00403850
call fcn.004031b0
push 0x80004005
call fcn.00403850
int3