Function at 0x401e70
Capabilities:
Stop service

Disassembly:
sub esp, 0x168
mov eax, dword [0x4c822c]
xor eax, esp
mov dword [esp + 0x164], eax
mov eax, dword [0x532cac]
push ebx
push ebp
push esi
push edi
xor ebp, ebp
mov dword [esp + 0x20], eax
push 0xff
lea eax, [esp + 0x75]
mov dword [esp + 0x38], edx
push ebp
push eax
xor edi, edi
mov dword [esp + 0x24], ebp
call fcn.0046e580
mov eax, dword [0x532c94]
lea ecx, [esp + 0x44]
add esp, 0xc
mov dword [esp + 0x70], eax
mov eax, dword [0x532c8c]
xorps xmm0, xmm0
mov dword [esp + 0x44], eax
movq qword [esp + 0x48], xmm0
push ecx
lea ecx, [esp + 0x48]
mov dword [esp + 0x54], edi
push ecx
push eax
mov dword [esp + 0x44], edi
call dword [sym.imp.comsvcs.dll_CoCreateActivity]
mov esi, eax
mov eax, 0x66666667
imul esi
sar edx, 2
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
lea ebx, [ecx + ecx*4]
xor ecx, ecx
add ebx, ebx
mov dword [esp + 0x28], ecx
sub ebx, esi
mov dword [esp + 0x2c], ebx
cmp dword [esp + 0x34], ecx
jle 0x4020d9
mov esi, dword [0x532c88]
mov edx, 1
imul eax, ebx, 0xd
mov dword [esp + 0x3c], eax
imul eax, dword [esp + 0x17c], 0x2c
sub edx, eax
mov dword [esp + 0x40], edx
mov eax, dword [esp + 0x20]
mov al, byte [eax + ecx]
lea ecx, [esi + 1]
mov byte [esp + 0x17], al
mov eax, ebp
cdq
idiv ecx
mov ecx, dword [esp + 0x40]
mov ebp, eax
mov eax, dword [esp + 0x18]
cdq
idiv dword [esp + 0x17c]
add ebp, dword [esp + 0x3c]
imul ebp, edi
imul ecx, ebp
mov dword [esp + 0x30], ebp
lea edi, [eax + ebp]
mov eax, dword [esp + 0x18]
cdq
idiv ebx
lea ebx, [edi + ecx]
mov dword [esp + 0x24], edi
mov edi, dword [0x532ca0]
add ebx, eax
add ebx, dword [esp + 0x17c]
push edi
push esi
mov dword [esp + 0x24], ebx
call dword [sym.imp.USER32.dll_GetDlgItem]
sub edi, 2
jne 0x401fbd
mov eax, dword [esp + 0x30]
mov edi, dword [sym.imp.WS2_32.dll_closesocket]
cmp eax, 0xffffffff
je 0x401fa8
push eax
call edi
mov eax, dword [esp + 0x30]
cmp eax, 0xffffffff
je 0x401fb4
push eax
call edi
push 0
push esi
call dword [sym.imp.USER32.dll_EndDialog]
mov edx, dword [esp + 0x17c]
mov al, bl
xor al, byte [esp + 0x17]
test edx, edx
mov ecx, dword [esp + 0x20]
mov esi, dword [esp + 0x20]
movzx eax, al
movzx ecx, cl
cmovne ecx, eax
mov eax, dword [esp + 0x28]
mov byte [esi + eax], cl
lea eax, [edx + ebp]
mov edx, dword [esp + 0x24]
mov esi, dword [0x532c88]
mov ebp, dword [esp + 0x1c]
imul eax, ebx
mov ebx, dword [0x532c8c]
lea ecx, [esi + 1]
sub eax, ebx
add edx, eax
imul ebp, edx
mov eax, edx
mov dword [esp + 0x24], edx
cdq
idiv ecx
mov edx, dword [esp + 0x18]
imul edx, dword [esp + 0x17c]
mov ecx, edx
shl ecx, 4
sub ecx, edx
lea eax, [eax + ecx*2]
mov ecx, dword [esp + 0x30]
sub eax, dword [esp + 0x1c]
add ecx, 0xffffffe7
add eax, dword [esp + 0x2c]
add eax, ecx
mov dword [esp + 0x1c], eax
test ebx, ebx
je 0x40208a
test esi, esi
je 0x40204b
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push 2
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
test eax, eax
je 0x40207e
push 0x10020
lea ecx, [esp + 0x74]
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
test eax, eax
je 0x40207e
lea ecx, [esp + 0x54]
push ecx
push 1
push eax
call dword [sym.imp.ADVAPI32.dll_ControlService]
mov esi, dword [0x532c88]
mov ebx, dword [0x532c8c]
mov eax, ebp
lea ecx, [esi + 1]
imul eax, dword [esp + 0x24]
imul ebp, dword [esp + 0x1c]
cdq
idiv ecx
imul ecx, dword [esp + 0x18], 0x3a
imul eax, dword [esp + 0x2c]
lea edi, [eax - 0x48]
mov eax, ebp
cdq
add edi, ebx
idiv dword [esp + 0x2c]
sub eax, ecx
mov ecx, dword [esp + 0x28]
inc ecx
mov dword [esp + 0x28], ecx
lea ebp, [ebx + eax]
mov ebx, dword [esp + 0x2c]
imul ebp, edi
mov edi, dword [esp + 0x1c]
mov dword [esp + 0x18], ebp
cmp ecx, dword [esp + 0x34]
jl 0x401f32
mov ecx, dword [esp + 0x174]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0041598b
add esp, 0x168
ret 4