Function at 0x472490
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x512973
mov eax, dword fs:[0]
push eax
sub esp, 0x300
mov eax, dword [0x58fa2c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, dword [ebp + 8]
mov dword [ebp - 0x2f8], edi
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x2e8], esi
xor ebx, ebx
mov dword [ebp - 0x300], ebx
lea ecx, [ebp - 0x2ed]
call fcn.00410840
mov dword [ebp - 4], ebx
xor eax, eax
mov dword [ebp - 0x2fc], eax
mov dword [ebp - 0x304], eax
mov dword [ebp - 0x308], eax
push 1
call fcn.00492380
add esp, 4
mov byte [ebp - 4], 1
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x308], eax
test eax, eax
je 0x47254c
push ebx
push 2
push 0x58f310
push eax
lea ecx, [ebp - 0x2ed]
call fcn.00445400
xor ecx, ecx
mov edx, 1
test eax, eax
cmovne ecx, edx
mov dword [ebp - 0x2fc], ecx
mov dword [ebp - 0x304], ecx
mov dword [ebp - 4], 0
jmp 0x472580
mov dword [ebp - 0x300], 0
push 0x104
push 0
lea eax, [ebp - 0x198]
push eax
call fcn.004b8570
add esp, 0xc
push 0x104
lea eax, [ebp - 0x198]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x198]
push eax
call fcn.004c9375
push str.spclientsvc
lea eax, [ebp - 0x198]
push eax
call fcn.004c9190
add esp, 0xc
test eax, eax
je 0x472697
mov dword [0x591a7c], 1
push 0x104
push 0x592288
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x592288
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
push 0x592288
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashA]
mov ecx, 0x592288
dec ecx
mov al, byte [ecx + 1]
lea ecx, [ecx + 1]
test al, al
jne 0x472614
mov eax, dword [str.msocxushell2.dll]
mov dword [ecx], eax
mov eax, dword [0x520514]
mov dword [ecx + 4], eax
mov eax, dword [0x520518]
mov dword [ecx + 8], eax
mov eax, dword [0x52051c]
mov dword [ecx + 0xc], eax
mov al, byte [0x520520]
mov byte [ecx + 0x10], al
mov dword [ebp - 0x300], 1
push 0x2d4
call fcn.00472260
add esp, 4
mov dword [ebp - 0x30c], eax
mov byte [ebp - 4], 3
test eax, eax
je 0x472675
mov ecx, eax
call fcn.00484f00
mov ebx, eax
jmp 0x472677
xor ebx, ebx
mov byte [ebp - 4], 0
mov dword [ebx + 0x38], 0
mov eax, dword [ebx]
push esi
push str.Start_of_Client_Service_code___s_
push ebx
call dword [eax + 4]
add esp, 0xc
mov dword [0x591a90], ebx
push edi
call fcn.00491dc0
or eax, 0xffffffff
mov dword [ebp - 0x2f8], eax
mov dword [0x591ad8], edi
mov dword [ebp - 0x2d4], 0
mov dword [ebp - 0x2d0], 0
mov dword [ebp - 0x2d0], 0xf
mov dword [ebp - 0x2d4], 0
mov byte [ebp - 0x2e4], 0
mov byte [ebp - 4], 4
mov dword [ebp - 0x2bc], 0
mov dword [ebp - 0x2b8], 0
mov dword [ebp - 0x2b8], 0xf
mov dword [ebp - 0x2bc], 0
mov byte [ebp - 0x2cc], 0
mov byte [ebp - 4], 5
push str._sr__
push esi
call fcn.004b9010
add esp, 0xc
test eax, eax
je 0x4728ce
lea edx, [eax + 5]
mov dword [ebp - 0x2a4], 0
mov dword [ebp - 0x2a0], 0
mov dword [ebp - 0x2a0], 0xf
mov dword [ebp - 0x2a4], 0
mov byte [ebp - 0x2b4], 0
cmp byte [edx], 0
jne 0x472763
xor ecx, ecx
jmp 0x472771
mov ecx, edx
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x472768
sub ecx, edi
push ecx
push edx
lea ecx, [ebp - 0x2b4]
call fcn.00406070
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x2d0]
cmp eax, 0x10
jb 0x4727a0
inc eax
push eax
push dword [ebp - 0x2e4]
lea ecx, [ebp - 0x2e4]
call fcn.004066b0
mov dword [ebp - 0x2d0], 0xf
mov dword [ebp - 0x2d4], 0
mov byte [ebp - 0x2e4], 0
lea eax, [ebp - 0x2b4]
push eax
lea ecx, [ebp - 0x2e4]
call fcn.004061c0
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x2a0]
cmp eax, 0x10
jb 0x4727ef
inc eax
push eax
push dword [ebp - 0x2b4]
lea ecx, [ebp - 0x2b4]
call fcn.004066b0
mov dword [ebp - 0x2a0], 0xf
mov dword [ebp - 0x2a4], 0
mov byte [ebp - 0x2b4], 0
mov byte [ebp - 0x2ec], 0x22
push 1
push 0
lea eax, [ebp - 0x2ec]
push eax
lea ecx, [ebp - 0x2e4]
call fcn.0040f9f0
push eax
push 0
lea eax, [ebp - 0x2b4]
push eax
lea ecx, [ebp - 0x2e4]
call fcn.0040f960
mov edi, eax
mov byte [ebp - 4], 7
lea eax, [ebp - 0x2e4]
cmp eax, edi
je 0x472891
mov eax, dword [ebp - 0x2d0]
cmp eax, 0x10
jb 0x47286a
inc eax
push eax
push dword [ebp - 0x2e4]
lea ecx, [ebp - 0x2e4]
call fcn.004066b0
mov dword [ebp - 0x2d0], 0xf
mov dword [ebp - 0x2d4], 0
mov byte [ebp - 0x2e4], 0
push edi
lea ecx, [ebp - 0x2e4]
call fcn.004061c0
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x2a0]
cmp eax, 0x10
jb 0x4728b3
inc eax
push eax
push dword [ebp - 0x2b4]
lea ecx, [ebp - 0x2b4]
call fcn.004066b0
mov dword [ebp - 0x2a0], 0xf
mov dword [ebp - 0x2a4], 0
mov byte [ebp - 0x2b4], 0
push 0x520550
push esi
call fcn.004b9010
add esp, 8
test eax, eax
je 0x472a8a
lea edx, [eax + 6]
mov dword [ebp - 0x2a4], 0
mov dword [ebp - 0x2a0], 0
mov dword [ebp - 0x2a0], 0xf
mov dword [ebp - 0x2a4], 0
mov byte [ebp - 0x2b4], 0
cmp byte [edx], 0
jne 0x47291f
xor ecx, ecx
jmp 0x47292d
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x472924
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x2b4]
call fcn.00406070
mov byte [ebp - 4], 8
mov eax, dword [ebp - 0x2b8]
cmp eax, 0x10
jb 0x47295c
inc eax
push eax
push dword [ebp - 0x2cc]
lea ecx, [ebp - 0x2cc]
call fcn.004066b0
mov dword [ebp - 0x2b8], 0xf
mov dword [ebp - 0x2bc], 0
mov byte [ebp - 0x2cc], 0
lea eax, [ebp - 0x2b4]
push eax
lea ecx, [ebp - 0x2cc]
call fcn.004061c0
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x2a0]
cmp eax, 0x10
jb 0x4729ab
inc eax
push eax
push dword [ebp - 0x2b4]
lea ecx, [ebp - 0x2b4]
call fcn.004066b0
mov dword [ebp - 0x2a0], 0xf
mov dword [ebp - 0x2a4], 0
mov byte [ebp - 0x2b4], 0
mov byte [ebp - 0x2ec], 0x22
push 1
push 0
lea eax, [ebp - 0x2ec]
push eax
lea ecx, [ebp - 0x2cc]
call fcn.0040f9f0
push eax
push 0
lea eax, [ebp - 0x2b4]
push eax
lea ecx, [ebp - 0x2cc]
call fcn.0040f960
mov esi, eax
mov byte [ebp - 4], 9
lea eax, [ebp - 0x2cc]
cmp eax, esi
je 0x472a4d
mov eax, dword [ebp - 0x2b8]
cmp eax, 0x10
jb 0x472a26
inc eax
push eax
push dword [ebp - 0x2cc]
lea ecx, [ebp - 0x2cc]
call fcn.004066b0
mov dword [ebp - 0x2b8], 0xf
mov dword [ebp - 0x2bc], 0
mov byte [ebp - 0x2cc], 0
push esi
lea ecx, [ebp - 0x2cc]
call fcn.004061c0
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x2a0]
cmp eax, 0x10
jb 0x472a6f
inc eax
push eax
push dword [ebp - 0x2b4]
lea ecx, [ebp - 0x2b4]
call fcn.004066b0
mov dword [ebp - 0x2a0], 0xf
mov dword [ebp - 0x2a4], 0
mov byte [ebp - 0x2b4], 0
lea eax, [ebp - 0x2e4]
push eax
call fcn.00473da0
add esp, 4
mov edi, eax
mov dword [ebp - 0x2f4], edi
cmp dword [ebp - 0x2fc], 0
je 0x472abe
push 2
push 0x58f310
push dword [ebp - 0x308]
mov ecx, edi
call fcn.00475d20
xor esi, esi
mov dword [ebp - 0x2fc], esi
push 0x520558
push dword [ebp - 0x2e8]
call fcn.004b9010
add esp, 8
test eax, eax
je 0x472ce5
mov ecx, dword [0x58f3dc]
mov dword [ebp - 0x2e8], ecx
mov byte [ebp - 4], 0xa
add eax, 2
push eax
lea ecx, [ebp - 0x2e8]
call fcn.00488c70
lea ecx, [ebp - 0x2e8]
call fcn.00489b60
lea ecx, [ebp - 0x2e8]
call fcn.00489bc0
mov eax, dword [ebp - 0x2e8]
cmp dword [eax - 8], esi
cmovg esi, eax
mov dword [ebp - 0x2fc], esi
test ebx, ebx
je 0x472b45
mov ecx, dword [ebx]
mov eax, str.local
test esi, esi
cmovne eax, esi
push eax
push str.Client_Install_Machine_Name___s_
push ebx
call dword [ecx + 4]
add esp, 0xc
test esi, esi
je 0x472b63
cmp byte [esi], 0
je 0x472b63
mov ecx, esi
mov edx, 0x591af8
sub edx, esi
mov al, byte [ecx]
mov byte [edx + ecx], al
lea ecx, [ecx + 1]
test al, al
jne 0x472b57
xor eax, eax
test esi, esi
je 0x472c5e
cmp byte [esi], al
je 0x472c5e
push 0x5c
lea eax, [ebp - 0x198]
push eax
call fcn.004b8c50
add esp, 8
mov edx, eax
test edx, edx
je 0x472b8f
inc edx
jmp 0x472b95
lea edx, [ebp - 0x198]
movups xmm0, xmmword [str._SystemRoot_System32_]
movups xmmword [ebp - 0x29c], xmm0
mov eax, dword [0x520598]
mov dword [ebp - 0x28c], eax
mov ax, word [0x52059c]
mov word [ebp - 0x288], ax
mov al, byte [0x52059e]
mov byte [ebp - 0x286], al
mov esi, edx
mov al, byte [edx]
inc edx
test al, al
jne 0x472bc8
sub edx, esi
lea edi, [ebp - 0x29c]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x472bd8
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea eax, [ebp - 0x29c]
mov dword [ebp - 0x30c], eax
test ebx, ebx
je 0x472c13
mov eax, dword [ebx]
lea ecx, [ebp - 0x29c]
push ecx
push str.Client_Service_Path___s_
push ebx
call dword [eax + 4]
add esp, 0xc
mov edi, dword [ebp - 0x2f4]
lea esi, [edi + 4]
push 0x40
push 0
push esi
call fcn.004b8570
push 0x3f
push str.Systems_Events_Dispatchers_Bootstrap_
push esi
call fcn.004c59d0
lea esi, [edi + 0x44]
push 0x40
push 0
push esi
call fcn.004b8570
push 0x3f
push str.Systems_Events_Dispatchers_Bootstrap_
push esi
call fcn.004c59d0
add esp, 0x30
mov esi, dword [ebp - 0x2fc]
mov eax, dword [ebp - 0x30c]
jmp 0x472c7a
cmp dword [ebp - 0x2bc], eax
je 0x472c7a
lea eax, [ebp - 0x2cc]
cmp dword [ebp - 0x2b8], 0x10
cmovae eax, dword [ebp - 0x2cc]
push 0
push 0
push esi
push 0x100
push eax
push 2
mov ecx, edi
call fcn.00452a30
test eax, eax
je 0x472cb9
test ebx, ebx
je 0x472ca8
mov ecx, dword [ebx]
lea eax, [edi + 4]
push eax
push str.Client_Service_Name___s_
push ebx
call dword [ecx + 4]
add esp, 0xc
mov ecx, edi
call fcn.00475d50
xor eax, eax
mov dword [ebp - 0x2f8], eax
jmp 0x472cbc
or eax, 0xffffffff
test esi, esi
jne 0x472ccb
test eax, eax
jne 0x472ccb
mov ecx, edi
call fcn.00473c10
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x2e8]
call fcn.00488bc0
mov esi, dword [ebp - 0x2f8]
jmp 0x4730fd
push 0x520600
push dword [ebp - 0x2e8]
call fcn.004b9010
add esp, 8
test eax, eax
je 0x472e69
test ebx, ebx
je 0x472d12
mov eax, dword [ebx]
push str.Uninstalling_service...
push ebx
call dword [eax + 4]
add esp, 8
mov eax, dword [0x58f3dc]
mov dword [ebp - 0x2f4], eax
mov byte [ebp - 4], 0xb
push 0x52061c
push dword [ebp - 0x2e8]
call fcn.004b9010
add esp, 8
test eax, eax
je 0x472ddb
add eax, 3
push eax
lea ecx, [ebp - 0x2f4]
call fcn.00488c70
lea ecx, [ebp - 0x2f4]
call fcn.00489b60
lea ecx, [ebp - 0x2f4]
call fcn.00489bc0
mov eax, dword [ebp - 0x2f4]
cmp dword [eax - 8], 0
jle 0x472d8c
mov dword [ebp - 0x2fc], eax
cmp byte [eax], 0
je 0x472d8c
mov edx, 0x591af8
sub edx, eax
nop
mov cl, byte [eax]
mov byte [edx + eax], cl
lea eax, [eax + 1]
test cl, cl
jne 0x472d80
test ebx, ebx
je 0x472d9e
mov eax, dword [ebx]
push str.Uninstalling_service...service_only
push ebx
call dword [eax + 4]
add esp, 8
lea esi, [edi + 4]
push 0x40
push 0
push esi
call fcn.004b8570
push 0x3f
push str.Systems_Events_Dispatchers_Bootstrap_
push esi
call fcn.004c59d0
lea esi, [edi + 0x44]
push 0x40
push 0
push esi
call fcn.004b8570
push 0x3f
push str.Systems_Events_Dispatchers_Bootstrap_
push esi
call fcn.004c59d0
add esp, 0x30
mov esi, dword [ebp - 0x2fc]
test ebx, ebx
je 0x472dfc
mov ecx, dword [ebx]
mov eax, str.local
test esi, esi
cmovne eax, esi
push eax
lea eax, [edi + 4]
push eax
push str.Uninstall_service_name___s__on___s_
push ebx
call dword [ecx + 4]
add esp, 0x10
mov ecx, edi
call fcn.00475de0
test eax, eax
je 0x472e17
push esi
mov ecx, edi
call fcn.00453e90
xor eax, eax
mov dword [ebp - 0x2f8], eax
push 0x520668
push dword [ebp - 0x2e8]
call fcn.004b9010
add esp, 8
test eax, eax
je 0x472e4f
push 0
lea eax, [ebp - 0x198]
push eax
call fcn.0048d3e0
add esp, 8
push 0xbb8
call dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.0048c670
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x2f4]
call fcn.00488bc0
mov esi, dword [ebp - 0x2f8]
jmp 0x4730fd
push 0x52066c
mov esi, dword [ebp - 0x2e8]
push esi
call fcn.004b9010
add esp, 8
test eax, eax
je 0x472f1a
call fcn.004723b0
mov esi, eax
test esi, esi
je 0x472f01
push 0x104
push 0
lea eax, [ebp - 0x29c]
push eax
call fcn.004b8570
push 0
push 0
push 0x104
lea eax, [ebp - 0x29c]
push eax
call fcn.0049d330
add esp, 0x1c
test eax, eax
je 0x472ee4
xor ecx, ecx
nop dword [eax]
nop word [eax + eax]
mov al, byte [ebp + ecx - 0x29c]
mov byte [ecx + str.msocxushell.dll], al
lea ecx, [ecx + 1]
test al, al
jne 0x472ed0
mov eax, dword [esi]
mov dword [0x591ae8], eax
push 1
mov ecx, edi
call fcn.004741f0
call fcn.00472330
or esi, 0xffffffff
jmp 0x4730fd
push str.Could_not_open_global_test_info__
push 0x30
push 0
call fcn.0048c120
add esp, 0xc
or esi, 0xffffffff
jmp 0x4730fd
push 0x520694
push esi
call fcn.004b9010
add esp, 8
test eax, eax
je 0x472fe8
add eax, 2
push eax
lea ecx, [ebp - 0x2e8]
call fcn.00488b60
mov byte [ebp - 4], 0xc
push 0x520698
push esi
call fcn.004b9010
add esp, 8
lea ecx, [ebp - 0x2e8]
test eax, eax
je 0x472fc1
add eax, 3
push eax
call fcn.00488c70
lea ecx, [ebp - 0x2e8]
call fcn.00489b60
lea ecx, [ebp - 0x2e8]
call fcn.00489bc0
mov eax, dword [ebp - 0x2e8]
cmp dword [eax - 8], 0
jle 0x472f9d
push eax
call fcn.004c8c4e
add esp, 4
test eax, eax
je 0x472f9d
push 6
push eax
mov ecx, edi
call fcn.00454480
xor eax, eax
push eax
push 0
push 0
mov ecx, edi
call fcn.004533e0
xor esi, esi
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x2e8]
call fcn.00488bc0
jmp 0x4730fd
call fcn.00489b60
lea ecx, [ebp - 0x2e8]
call fcn.00489bc0
mov eax, dword [ebp - 0x2e8]
cmp dword [eax - 8], 0
jle 0x472f9d
push eax
call fcn.004c8c4e
add esp, 4
jmp 0x472f9f
push 0x52069c
push esi
call fcn.004b9010
add esp, 8
test eax, eax
je 0x47300b
push 0
mov ecx, edi
call fcn.004741f0
or esi, 0xffffffff
jmp 0x4730fd
push 0x5206a0
push esi
call fcn.004b9010
add esp, 8
test eax, eax
je 0x47302e
push 0
mov ecx, edi
call fcn.00453280
or esi, 0xffffffff
jmp 0x4730fd
cmp dword [ebp - 0x300], 0
jne 0x4730f4
push 0x7f
push 0
lea eax, [ebp - 0x93]
push eax
call fcn.004b8570
add esp, 0xc
movups xmm0, xmmword [str.SYSTEMCurrentControlSetServices_]
movups xmmword [ebp - 0x94], xmm0
movups xmm0, xmmword [0x51c35c]
movups xmmword [ebp - 0x84], xmm0
mov ax, word [0x51c36c]
mov word [ebp - 0x74], ax
mov al, byte [0x51c36e]
mov byte [ebp - 0x72], al
lea edi, [ebp - 0x94]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x473083
mov ecx, 9
mov esi, str.Systems_Events_Dispatchers_Bootstrap_
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov dword [ebp - 0x2f8], 0
lea eax, [ebp - 0x2f8]
push eax
push 0xf003f
push 0
lea eax, [ebp - 0x94]
push eax
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4730ee
mov eax, dword [ebp - 0x2f8]
test eax, eax
je 0x4730ee
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0
lea eax, [ebp - 0x94]
push eax
push reloc.WS2_32.dll_bind
call fcn.0048c700
add esp, 0xc
mov edi, dword [ebp - 0x2f4]
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
xor esi, esi
cmp dword [ebp - 0x300], 0
jne 0x47314a
push 0x2e
lea eax, [ebp - 0x198]
push eax
call fcn.004b8c50
add esp, 8
test eax, eax
je 0x47314a
mov ecx, dword [str..log]
mov dword [eax], ecx
mov cl, byte [0x5206a8]
mov byte [eax + 4], cl
push 0
lea eax, [ebp - 0x198]
push eax
call fcn.0048d3e0
add esp, 8
lea eax, [ebp - 0x198]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov dword [0x591a90], 0
test ebx, ebx
je 0x473160
mov eax, dword [ebx]
push 1
mov ecx, ebx
call dword [eax]
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x2b8]
cmp eax, 0x10
jb 0x473182
inc eax
push eax
push dword [ebp - 0x2cc]
lea ecx, [ebp - 0x2cc]
call fcn.004066b0
mov dword [ebp - 0x2b8], 0xf
mov dword [ebp - 0x2bc], 0
mov byte [ebp - 0x2cc], 0
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x2d0]
cmp eax, 0x10
jb 0x4731bf
inc eax
push eax
push dword [ebp - 0x2e4]
lea ecx, [ebp - 0x2e4]
call fcn.004066b0
mov dword [ebp - 0x2d0], 0xf
mov dword [ebp - 0x2d4], 0
mov byte [ebp - 0x2e4], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2ed]
call fcn.00419680
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004a4566
mov esp, ebp
pop ebp
ret 0x10