Function at 0x11199560
Capabilities:
Create process on windows
Query service status

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x111ea530
mov eax, dword fs:[0]
push eax
sub esp, 0x6ac
mov eax, dword [0x11279148]
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 esi, dword [ebp + 8]
mov edi, dword [sym.imp.MSVCR100.dll__wcsicmp]
push 0x1120c91c
xor ebx, ebx
push esi
mov dword [ebp - 0x650], ebx
call edi
add esp, 8
test eax, eax
jne 0x1119970a
push 0x104
lea eax, [ebp - 0x62c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [ebp - 0x62c]
push 0x5c
push ecx
call dword [sym.imp.MSVCR100.dll_wcsrchr]
add esp, 8
cmp eax, ebx
je 0x1119970a
add eax, 2
push str.client32.exe
push eax
call edi
add esp, 8
test eax, eax
jne 0x1119970a
mov eax, dword [ebp + 0x10]
cmp eax, 0x20
je 0x11199609
cmp eax, 4
jne 0x11199703
push ebx
call fcn.111bb510
mov esi, dword [sym.imp.USER32.dll_wsprintfW]
push eax
lea edx, [ebp - 0x424]
push str.__sWINSTALL.EXE_
push edx
call esi
lea eax, [ebp - 0x424]
push ebx
push eax
call fcn.111be4e0
add esp, 0x18
test eax, eax
jne 0x11199650
push ebx
call fcn.111bb510
push eax
lea ecx, [ebp - 0x424]
push str.__sWINST32.EXE_
push ecx
call esi
add esp, 0x10
lea eax, [ebp - 0x424]
add eax, 0xfffffffe
lea esp, [esp]
mov cx, word [eax + 2]
add eax, 2
cmp cx, bx
jne 0x11199660
mov edx, dword [str.__EM]
mov ecx, dword [0x11206944]
mov dword [eax], edx
mov dx, word [0x11206948]
mov dword [eax + 4], ecx
push 0x44
mov word [eax + 8], dx
lea eax, [ebp - 0x6b8]
push ebx
push eax
call sub.MSVCR100.dll_memset
xor ecx, ecx
push str.Restart_client32_service_n
mov dword [ebp - 0x6b8], 0x44
mov dword [ebp - 0x68c], 1
mov word [ebp - 0x688], cx
call fcn.111bd7b0
add esp, 0x10
lea edx, [ebp - 0x674]
push edx
lea eax, [ebp - 0x6b8]
push eax
push ebx
push ebx
push 0x4000000
push ebx
push ebx
push ebx
lea ecx, [ebp - 0x424]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x11199703
mov edx, dword [ebp - 0x674]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call esi
mov eax, dword [ebp - 0x670]
push eax
call esi
xor eax, eax
jmp 0x11199856
push 0xf003f
push ebx
push ebx
mov dword [ebp - 0x64c], ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebx, eax
mov dword [ebp - 0x65c], ebx
test ebx, ebx
jne 0x11199743
push 0x112619ec
lea ecx, [ebp - 0x664]
push ecx
mov dword [ebp - 0x664], eax
call sub.MSVCR100.dll__CxxThrowException
push 0x74
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
xor esi, esi
mov dword [ebp - 0x64c], edi
cmp edi, esi
jne 0x11199772
push 0x112619ec
lea edx, [ebp - 0x658]
push edx
mov dword [ebp - 0x658], esi
call sub.MSVCR100.dll__CxxThrowException
lea eax, [ebp - 0x648]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x1119979b
push 0x112619ec
lea ecx, [ebp - 0x660]
push ecx
mov dword [ebp - 0x660], esi
call sub.MSVCR100.dll__CxxThrowException
mov eax, dword [ebp + 0x10]
add eax, 0xfffffffc
cmp eax, 0x1c
ja case.0x111997ad.5
movzx edx, byte [eax + 0x11199888]
jmp dword [edx*4 + 0x11199874]
push 1
call fcn.11199410
add esp, 4
jmp 0x1119983a
cmp dword [ebp - 0x644], 1
jne 0x111997d5
push 2
call fcn.11199410
add esp, 4
jmp 0x1119983a
push 4
call fcn.11199410
add esp, 4
jmp 0x1119983a
push 3
call fcn.11199410
add esp, 4
jmp 0x1119983a
push 1
call fcn.11199410
add esp, 4
push 2
call fcn.11199410
add esp, 4
jmp 0x1119983a
push 0x112619ec
lea eax, [ebp - 0x654]
push eax
mov dword [ebp - 0x654], esi
call sub.MSVCR100.dll__CxxThrowException
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x650], eax
mov eax, 0x1119982c
ret
cmp edi, esi
je 0x11199845
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmp ebx, esi
je 0x11199850
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [ebp - 0x650]
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.111d9022
mov esp, ebp
pop ebp
ret 0xc