Function at 0x10394a9
Capabilities:
Query service status

Disassembly:
push 0x28
push 0x10397e0
call fcn.010015a0
or dword [ebp - 0x1c], 0xffffffff
xor ebx, ebx
mov dword [ebp - 4], ebx
mov edi, dword [ebp + 0x14]
mov dword [edi], 1
mov esi, dword [ebp + 0xc]
cmp dword [esi + 0x238], ebx
jne 0x1039584
push 5
push dword [esi + 0x234]
mov eax, dword [ebp + 8]
push dword [eax + 0x14]
call dword [sym.imp.API_MS_WIN_Service_Management_L1_1_0.dll_OpenServiceW]
mov dword [esi + 0x238], eax
cmp eax, ebx
jne 0x1039584
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x424
jne 0x103954b
mov dword [ebp - 0x1c], ebx
mov dword [edi], ebx
mov eax, dword [0x1040184]
cmp eax, 0x1040184
je 0x10397ba
test byte [eax + 0x1c], 1
je 0x10397ba
cmp byte [eax + 0x19], 3
jb 0x10397ba
push dword [esi + 0x234]
push 0x1003b94
push 0x2c
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010020c5
jmp 0x10397ba
mov ecx, dword [0x1040184]
cmp ecx, 0x1040184
je 0x10397ba
test byte [ecx + 0x1c], 1
je 0x10397ba
cmp byte [ecx + 0x19], 3
jb 0x10397ba
push eax
push dword [esi + 0x234]
push 0x1003b94
push 0x2d
jmp 0x10397af
lea eax, [ebp + 0xc]
push eax
push ebx
push ebx
push dword [esi + 0x238]
mov ebx, dword [sym.imp.API_MS_WIN_Service_Management_L2_1_0.dll_QueryServiceConfigW]
call ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
cmp eax, 0x7a
je 0x10395e9
mov eax, dword [0x1040184]
cmp eax, 0x1040184
je 0x10397ba
test byte [eax + 0x1c], 1
je 0x10397ba
cmp byte [eax + 0x19], 3
jb 0x10397ba
call edi
push eax
push dword [esi + 0x234]
push 0x1003b94
push 0x2e
mov eax, dword [0x1040184]
push dword [eax + 0x14]
push dword [eax + 0x10]
jmp 0x10397b5
push dword [ebp + 0xc]
call fcn.010068b2
mov dword [ebp + 8], eax
test eax, eax
je 0x10397ba
lea ecx, [ebp + 0xc]
push ecx
push dword [ebp + 0xc]
push eax
push dword [esi + 0x238]
call ebx
test eax, eax
jne 0x1039646
mov eax, dword [0x1040184]
cmp eax, 0x1040184
je 0x10397ba
test byte [eax + 0x1c], 1
je 0x10397ba
cmp byte [eax + 0x19], 2
jb 0x10397ba
call edi
push eax
push dword [esi + 0x234]
push 0x1003b94
push 0x2f
jmp 0x10395d9
mov eax, dword [ebp + 8]
cmp dword [eax + 4], 2
je 0x1039688
mov eax, dword [0x1040184]
cmp eax, 0x1040184
je 0x103967f
test byte [eax + 0x1c], 1
je 0x103967f
cmp byte [eax + 0x19], 3
jb 0x103967f
push dword [esi + 0x234]
push 0x1003b94
push 0x30
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010020c5
and dword [ebp - 0x1c], 0
jmp 0x10397ba
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi + 0x23c], eax
lea eax, [ebp - 0x38]
push eax
push dword [esi + 0x238]
call dword [sym.imp.API_MS_WIN_Service_winsvc_L1_1_0.dll_QueryServiceStatus]
test eax, eax
je 0x1039785
mov edx, dword [ebp - 0x34]
xor edi, edi
inc edi
cmp edx, edi
jne 0x10396fa
mov ecx, 0x43c
cmp dword [ebp - 0x2c], ecx
jne 0x10396fa
mov eax, dword [0x1040184]
cmp eax, 0x1040184
je 0x10396f2
test byte [eax + 0x1c], 1
je 0x10396f2
cmp byte [eax + 0x19], 3
jb 0x10396f2
push ecx
push edi
push dword [esi + 0x234]
push 0x1003b94
push 0x31
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0103924a
mov eax, dword [ebp + 0x14]
jmp 0x103977c
cmp edx, 3
je 0x1039745
cmp edx, edi
jne 0x103970c
cmp dword [ebp - 0x2c], 0x435
jne 0x1039745
mov eax, dword [0x1040184]
cmp eax, 0x1040184
je 0x1039740
test byte [eax + 0x1c], 1
je 0x1039740
cmp byte [eax + 0x19], 3
jb 0x1039740
push dword [ebp - 0x2c]
push edx
push dword [esi + 0x234]
push 0x1003b94
push 0x33
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0103924a
mov dword [ebp - 0x1c], edi
jmp 0x10397ba
mov eax, dword [0x1040184]
cmp eax, 0x1040184
je 0x1039779
test byte [eax + 0x1c], 1
je 0x1039779
cmp byte [eax + 0x19], 3
jb 0x1039779
push dword [ebp - 0x2c]
push edx
push dword [esi + 0x234]
push 0x1003b94
push 0x32
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0103924a
mov eax, dword [ebp + 0x10]
and dword [ebp - 0x1c], 0
and dword [eax], 0
jmp 0x10397ba
call edi
mov ecx, dword [0x1040184]
cmp ecx, 0x1040184
je 0x10397ba
test byte [ecx + 0x1c], 1
je 0x10397ba
cmp byte [ecx + 0x19], 3
jb 0x10397ba
push eax
push dword [esi + 0x234]
push 0x1003b94
push 0x34
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.0100d355
mov dword [ebp - 4], 0xfffffffe
call fcn.010397d6
mov eax, dword [ebp - 0x1c]
call fcn.01001580
ret 0x10