Function at 0x40bd30
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x418e10
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14c
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x10], esp
push 0
push 0x13
mov dword [ebp - 0x24], edi
call fcn.0040aab0
push 0x17
push edi
call fcn.0040bff0
add esp, 8
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebx, eax
test ebx, ebx
mov dword [ebp - 0x1c], ebx
jne 0x40bda3
push eax
push 0x10000005
mov ecx, edi
call fcn.0040aab0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 0x18], 0
push 0x34
push str.Client32
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
jne 0x40be05
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 0x18]
inc eax
cmp eax, 0x1e
mov dword [ebp - 0x18], eax
jl 0x40bdaa
push esi
push 0x10000005
mov ecx, edi
call fcn.0040aab0
push 0x18
push edi
call fcn.0040bff0
add esp, 8
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor ebx, ebx
lea eax, [ebp - 0x54]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
cmp dword [ebp - 0x50], 4
je 0x40be29
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
inc ebx
cmp ebx, 0x1e
jl 0x40be07
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
mov ecx, dword [ebp - 0x1c]
push ecx
call esi
cmp dword [ebp - 0x50], 4
jne 0x40bfc4
xor esi, esi
push 0x19
push edi
xor ebx, ebx
mov dword [ebp - 0x20], esi
call fcn.0040bff0
add esp, 8
lea edx, [ebp - 0x158]
push edx
push str.Call_GetClientInfo__s
push edi
call fcn.00406270
add esp, 0xc
lea eax, [ebp - 0x158]
mov ecx, edi
push ebx
push eax
call fcn.0040ab90
test eax, eax
jne 0x40bfa6
lea ecx, [ebp - 0x158]
push ecx
push str.Call_GetDBIInfo__s
push edi
call fcn.00406270
lea edx, [ebp - 0x38]
lea eax, [ebp - 0x158]
push edx
push str.pcichek.dll
push eax
call fcn.0040ef20
add esp, 0x18
test eax, eax
je 0x40bfa6
lea ecx, [ebp - 0x38]
push ecx
push 0x1a
push edi
call fcn.0040bff0
add esp, 0xc
mov dword [ebp - 4], ebx
lea esi, [ebp - 0x38]
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x11], bl
mov al, byte [esi]
test al, al
je 0x40bee6
movsx edx, al
push edx
call fcn.00410606
add esp, 4
test eax, eax
jne 0x40bee6
inc esi
jmp 0x40becd
cmp byte [esi], 0
jne 0x40bef2
push ebx
push ebx
call fcn.00411977
push 0x2e
push esi
call fcn.00401310
mov edi, eax
add esp, 8
cmp edi, ebx
jne 0x40bf0a
push ebx
push ebx
call fcn.00411977
push esi
mov byte [edi], 0
call fcn.004104c3
add esp, 4
inc edi
mov dword [ebp - 0x18], eax
cmp byte [edi], 0
jne 0x40bf2c
push ebx
push ebx
call fcn.00411977
mov eax, 0x40bf99
ret
mov esi, edi
mov al, byte [esi]
test al, al
je 0x40bf47
movsx eax, al
push eax
call fcn.00410606
add esp, 4
test eax, eax
je 0x40bf47
inc esi
jmp 0x40bf2e
mov al, byte [esi]
test al, al
je 0x40bf69
push edi
mov byte [ebp - 0x11], al
mov byte [esi], 0
call fcn.004104c3
mov ebx, eax
lea eax, [esi + 1]
push eax
call fcn.004104c3
add esp, 8
jmp 0x40bf77
push edi
call fcn.004104c3
mov ebx, eax
mov eax, dword [ebp - 0x1c]
add esp, 4
xor ecx, ecx
xor edx, edx
mov ch, byte [ebp - 0x18]
mov dh, byte [ebp - 0x11]
mov cl, bl
and edx, 0xffff
shl ecx, 0x10
or ecx, edx
and eax, 0xff
or ecx, eax
mov esi, ecx
jmp 0x40bf9c
mov edi, dword [ebp - 0x24]
mov dword [ebp - 4], 0xffffffff
push esi
push 0x60000004
mov ecx, edi
call fcn.0040aab0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push 0x10000005
mov ecx, edi
call fcn.0040aab0
push 0x1b
push edi
call fcn.0040bff0
mov ecx, dword [ebp - 0xc]
add esp, 8
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret