Function at 0x46ae40
Capabilities:
Create thread

Disassembly:
push 0xffffffffffffffff
push 0x486243
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x84
push ebx
push ebp
push edi
mov ebx, ecx
push str.services.exe
call fcn.0046a7a0
mov ebp, eax
test ebp, ebp
mov dword [esp + 0x1c], ebp
jne 0x46ae85
push eax
push eax
push 0x4b4288
call sub.MFC42.DLL_AfxMessageBox
jmp 0x46b1ef
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
mov dword [esp + 0x34], edi
jne 0x46aeaf
push eax
push eax
push 0x4b4264
call sub.MFC42.DLL_AfxMessageBox
jmp 0x46b1ef
mov eax, dword [esp + 0xa0]
push 0x10
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
test eax, eax
mov dword [esp + 0x2c], eax
jne 0x46aee2
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push 0
push 0
push 0x4b4264
call sub.MFC42.DLL_AfxMessageBox
jmp 0x46b1ef
push esi
mov esi, dword [esp + 0xa8]
lea ecx, [esp + 0x2c]
push esi
push ecx
mov ecx, ebx
call fcn.0046a6d0
mov eax, dword [esp + 0x2c]
xor edx, edx
mov dword [esp + 0x9c], edx
cmp dword [eax - 8], edx
jne 0x46b1ca
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0x55]
mov byte [esp + 0x54], dl
rep stosd dword es:[edi], eax
mov dword [esp + 0x18], edx
lea ecx, [esp + 0x18]
lea edx, [esp + 0x54]
push ecx
stosw word es:[edi], ax
push edx
push esi
push ebp
mov ecx, ebx
stosb byte es:[edi], al
call fcn.0046a9d0
mov ebp, eax
xor esi, esi
cmp ebp, esi
mov dword [esp + 0x4c], ebp
jne 0x46af55
push esi
push esi
push 0x4b4288
call sub.MFC42.DLL_AfxMessageBox
jmp 0x46b1c6
mov ecx, dword [esp + 0x30]
lea eax, [esp + 0x50]
push eax
push esi
push ecx
push 0x46ae20
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edx, dword [esp + 0x20]
mov dword [esp + 0x28], eax
push edx
push esi
push 0x458
call dword [sym.imp.KERNEL32.dll_OpenProcess]
lea ecx, [esp + 0x14]
mov edi, eax
call sub.MFC42.DLL_CString::CString_5
xor eax, eax
mov dword [esp + 0x3c], esi
mov dword [esp + 0x40], eax
mov dword [esp + 0x24], esi
mov dword [esp + 0x44], eax
mov dword [esp + 0x1c], esi
mov esi, dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov byte [esp + 0x9c], 1
mov dword [esp + 0x48], eax
mov ecx, dword [esp + 0x28]
push 0xf
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x46b060
lea edx, [esp + 0x34]
lea eax, [esp + 0x24]
push edx
push 4
lea ecx, [ebp + 0xf08]
push eax
push ecx
push edi
call esi
test eax, eax
je 0x46b092
lea edx, [esp + 0x34]
lea eax, [esp + 0x10]
push edx
push 4
lea ecx, [ebp + 0xf04]
push eax
push ecx
push edi
mov dword [esp + 0x24], 0
call esi
test eax, eax
je 0x46b092
mov eax, dword [esp + 0x10]
test eax, eax
je 0x46b02a
lea edx, [esp + 0x34]
lea ecx, [esp + 0x3c]
push edx
push 0x10
push ecx
push eax
push edi
call esi
test eax, eax
je 0x46b092
mov eax, dword [esp + 0x24]
test eax, eax
je 0x46b04a
mov eax, dword [esp + 0x44]
test eax, eax
je 0x46b04a
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x46b04a
mov eax, dword [esp + 0x40]
test eax, eax
jne 0x46b092
mov eax, dword [esp + 0x1c]
inc eax
cmp eax, 0x3e8
mov dword [esp + 0x1c], eax
jl 0x46afb5
jmp 0x46b092
mov eax, dword [esp + 0x28]
lea edx, [esp + 0x1c]
push edx
push eax
mov dword [esp + 0x24], 0
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
je 0x46b092
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x46b092
push 0x4b4254
lea ecx, [esp + 0x18]
call fcn.0047dd2a
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x46b0d8
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x54]
push ecx
push edx
push ebp
push eax
mov ecx, ebx
call fcn.0046a960
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x46b0ca
push 0x4b4240
lea ecx, [esp + 0x18]
call fcn.0047dd2a
mov edx, dword [esp + 0x14]
push 0
push 0
push edx
jmp 0x46b1a5
push 2
push 0
lea eax, [esp + 0x18]
push 0
push eax
mov dword [esp + 0x20], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov ecx, dword [esp + 0x34]
push eax
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x46b184
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x54]
push edx
push eax
push 0
push ecx
mov ecx, ebx
call fcn.0046a960
lea edx, [esp + 0x3c]
mov ecx, ebx
push edx
push edi
call fcn.0046ac40
mov esi, eax
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
test esi, esi
je 0x46b163
push 0x14
call ebp
mov edx, dword [esp + 0x44]
mov ecx, ebx
push edx
mov dword [ebx + 0x850], esi
call fcn.0046a180
push 0x50
call ebp
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x4c]
lea ecx, [esp + 0x54]
push eax
mov eax, dword [esp + 0x24]
push ecx
push edx
push eax
mov ecx, ebx
call fcn.0046a960
jmp 0x46b1aa
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x54]
push ecx
push edx
push 0
push eax
mov ecx, ebx
call fcn.0046a960
push 0
push 0
push 0x4b4230
call sub.MFC42.DLL_AfxMessageBox
test edi, edi
je 0x46b1b5
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x14]
mov byte [esp + 0x9c], 0
call sub.MFC42.DLL_CString::CString
mov edi, dword [esp + 0x38]
mov ecx, dword [esp + 0x30]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push ecx
call esi
push edi
call esi
lea ecx, [esp + 0x2c]
mov dword [esp + 0x9c], 0xffffffff
call sub.MFC42.DLL_CString::CString
pop esi
mov ecx, dword [esp + 0x90]
pop edi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x90
ret 8