Function at 0x449990
Capabilities:
Link many functions at runtime

Disassembly:
push 0xffffffffffffffff
push 0x48aece
mov eax, dword fs:[0]
push eax
sub esp, 0x80
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x78], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [section..data]
xor eax, esp
push eax
lea eax, [esp + 0x94]
mov dword fs:[0], eax
mov ebx, dword [esp + 0xa4]
push dword [esp + 0x28]
mov dword [esp + 0x30], ebx
push ecx
mov edx, dword [ebx + 4]
mov ecx, dword [ebx]
call fcn.00452470
mov eax, dword [ebx]
lea ecx, [esp + 0x38]
add esp, 8
mov dword [ebx + 4], eax
xor eax, eax
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 0
mov dword [esp + 0x44], 7
push 0xc
push str.Advapi32.dll
mov dword [esp + 0x48], 0
mov word [esp + 0x38], ax
call fcn.00402f90
mov dword [esp + 0x9c], 0
mov eax, dword [0x4b025c]
test al, 1
jne 0x449a69
or eax, 1
mov dword [0x4b025c], eax
mov byte [esp + 0x9c], 1
mov dword [0x4b0258], 0
call fcn.0041d480
push 0x490fd0
call fcn.00480069
add esp, 4
mov byte [esp + 0x9c], 0
lea eax, [esp + 0x30]
mov ecx, 0x4b0258
push eax
call fcn.0041d650
mov edi, eax
mov dword [esp + 0x9c], 0xffffffff
cmp dword [esp + 0x44], 8
jb 0x449a99
push dword [esp + 0x30]
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor eax, eax
mov dword [esp + 0x44], 7
mov dword [esp + 0x40], 0
mov word [esp + 0x30], ax
test edi, edi
je 0x449d61
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.OpenSCManagerW
push edi
call esi
push str.EnumServicesStatusW
push edi
mov ebp, eax
call esi
push str.OpenServiceW
push edi
mov ebx, eax
call esi
push str.QueryServiceConfigW
push edi
mov dword [esp + 0x2c], eax
call esi
push str.CloseServiceHandle
push edi
mov dword [esp + 0x1c], eax
call esi
mov esi, eax
mov dword [esp + 0x20], esi
test ebp, ebp
je 0x449d61
test ebx, ebx
je 0x449d61
cmp dword [esp + 0x24], 0
je 0x449d61
cmp dword [esp + 0x14], 0
je 0x449d61
test esi, esi
je 0x449d61
push 4
push 0
push 0
call ebp
mov ebp, eax
mov dword [esp + 0x1c], ebp
test ebp, ebp
je 0x449d61
push 0
lea eax, [esp + 0x54]
mov dword [esp + 0x4c], 0
push eax
lea eax, [esp + 0x50]
mov dword [esp + 0x58], 0
push eax
push 0
push 0
push 3
push 0x30
push ebp
call ebx
test eax, eax
jne 0x449d5e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x449d5e
mov eax, dword [esp + 0x48]
xor ecx, ecx
mov edx, 0x24
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0047fefc
add esp, 4
mov edi, eax
lea eax, [esp + 0x50]
mov dword [esp + 0x28], edi
push 0
push eax
lea eax, [esp + 0x50]
push eax
push dword [esp + 0x54]
push edi
push 3
push 0x30
push ebp
call ebx
mov ebx, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete___void__]
cmp eax, 1
jne 0x449d58
mov ebp, 0x2800
push ebp
call fcn.0047fefc
add esp, 4
mov dword [esp + 0x18], 0
cmp dword [esp + 0x50], 0
mov esi, eax
jbe 0x449d4a
lea esp, [esp]
push ebp
push 0
push esi
call sub.MSVCR120.dll_memset
xor eax, eax
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], 0
add esp, 0xc
mov dword [esp + 0x68], 7
mov dword [esp + 0x64], 0
mov word [esp + 0x54], ax
mov dword [esp + 0x9c], 2
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], eax
mov dword [esp + 0x80], 7
mov dword [esp + 0x7c], eax
mov word [esp + 0x6c], ax
mov dword [esp + 0x9c], 4
cmp dword [edi + 0xc], 4
push 5
push dword [edi]
sete al
push dword [esp + 0x24]
mov dword [esp + 0x90], eax
call dword [esp + 0x30]
mov ebx, eax
test ebx, ebx
je 0x449d11
lea eax, [esp + 0x4c]
mov dword [esp + 0x4c], 0
push eax
push 0
push 0
push ebx
call dword [esp + 0x24]
cmp dword [esp + 0x4c], 0
jbe 0x449d11
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x449d11
mov eax, dword [esp + 0x4c]
cmp eax, ebp
jbe 0x449ccd
push esi
mov ebp, eax
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete___void__]
push ebp
call fcn.0047fefc
push ebp
mov esi, eax
push 0
push esi
call sub.MSVCR120.dll_memset
mov eax, dword [esp + 0x60]
add esp, 0x14
lea ecx, [esp + 0x4c]
push ecx
push eax
push esi
push ebx
call dword [esp + 0x24]
test eax, eax
je 0x449d11
push dword [edi]
lea ecx, [esp + 0x58]
call fcn.00403f80
mov eax, dword [esi + 0xc]
test eax, eax
je 0x449cf9
push eax
lea ecx, [esp + 0x70]
call fcn.00403f80
mov eax, dword [esi + 4]
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x88], eax
lea eax, [esp + 0x54]
push eax
call fcn.004511f0
push ebx
call dword [esp + 0x24]
mov dword [esp + 0x9c], 0xffffffff
lea ecx, [esp + 0x54]
call fcn.0042a7b0
mov eax, dword [esp + 0x18]
add edi, 0x24
inc eax
mov dword [esp + 0x18], eax
cmp eax, dword [esp + 0x50]
jb 0x449bf0
mov ebx, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete___void__]
mov edi, dword [esp + 0x28]
push esi
call ebx
mov ebp, dword [esp + 0x20]
add esp, 4
mov esi, dword [esp + 0x20]
push edi
call ebx
add esp, 4
push ebp
call esi
mov ecx, dword [esp + 0x94]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x78]
xor ecx, esp
call fcn.0047ff74
add esp, 0x8c
ret 4