Function at 0x1004795d
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x9c
movzx eax, byte [ebp + 0x14]
test eax, eax
je 0x100479bb
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x68], eax
lea eax, [ebp + 0x18]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x60]
movzx eax, byte [eax]
test eax, eax
je 0x10047992
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x100479b6
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0x90], eax
mov eax, dword [ebp - 0x90]
mov dword [ebp - 0x70], eax
mov eax, dword [ebp - 0x70]
movzx eax, byte [eax]
test eax, eax
je 0x100479b6
push 0
call dword [sym.imp.KERNEL32.dll_GetTimeZoneInformation]
jmp 0x10047c54
lea eax, [ebp + 0x1c]
mov dword [ebp - 0x88], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x80], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x78], eax
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x98], eax
mov eax, dword [ebp - 0x88]
movzx eax, byte [eax]
test eax, eax
je 0x100479fb
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
jmp 0x10047c54
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0x98]
mov dword [ebp - 0x74], eax
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x84], eax
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x74]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x7c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x84]
mov dword [ebp - 0x94], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov ecx, dword [ebp - 4]
add eax, dword [ecx]
mov ecx, dword [ebp - 4]
cmp eax, dword [ecx]
je 0x10047a51
mov dword [ebp - 0x44], 1
jmp 0x10047a55
and dword [ebp - 0x44], 0
cmp dword [ebp - 0x44], 1
jle 0x10047a64
mov dword [ebp - 0x18], 1
jmp 0x10047a68
and dword [ebp - 0x18], 0
cmp dword [ebp - 0x18], 0xffffffff
jb 0x10047a77
mov dword [ebp - 0x54], 1
jmp 0x10047a7b
and dword [ebp - 0x54], 0
mov eax, dword [ebp - 4]
mov eax, dword [eax]
cmp dword [ebp - 0x54], eax
jl 0x10047a8e
mov dword [ebp - 0x20], 1
jmp 0x10047a92
and dword [ebp - 0x20], 0
mov eax, dword [ebp - 4]
mov eax, dword [eax]
add eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 4]
imul eax, dword [ecx]
mov ecx, dword [ebp - 0xc]
sub eax, dword [ecx]
cmp eax, 0x43818264
jl 0x10047ab5
mov dword [ebp - 0x5c], 1
jmp 0x10047ab9
and dword [ebp - 0x5c], 0
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
cmp dword [ebp - 0x5c], eax
je 0x10047acc
mov dword [ebp - 0x28], 1
jmp 0x10047ad0
and dword [ebp - 0x28], 0
mov eax, dword [ebp - 4]
mov eax, dword [eax]
cmp dword [ebp - 0x28], eax
jne 0x10047ae3
mov dword [ebp - 0x50], 1
jmp 0x10047ae7
and dword [ebp - 0x50], 0
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
cmp dword [ebp - 0x50], eax
jg 0x10047afa
mov dword [ebp - 0x30], 1
jmp 0x10047afe
and dword [ebp - 0x30], 0
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
cmp eax, dword [ebp - 0x30]
jg 0x10047b11
mov dword [ebp - 0x48], 1
jmp 0x10047b15
and dword [ebp - 0x48], 0
cmp dword [ebp - 0x48], 0x4283
jne 0x10047b27
mov dword [ebp - 0x38], 1
jmp 0x10047b2b
and dword [ebp - 0x38], 0
cmp dword [ebp - 0x38], 0x3fa9
jne 0x10047b3d
mov dword [ebp - 0x58], 1
jmp 0x10047b41
and dword [ebp - 0x58], 0
mov eax, dword [ebp - 8]
mov eax, dword [eax]
add eax, dword [ebp - 0x58]
cmp eax, 0xfff9
je 0x10047b5b
or eax, 0xffffffff
jne 0x10047b5b
and dword [ebp - 0x40], 0
jmp 0x10047b62
mov dword [ebp - 0x40], 1
mov eax, dword [ebp - 8]
mov eax, dword [eax]
cmp eax, dword [ebp - 0x40]
jg 0x10047b75
mov dword [ebp - 0x24], 1
jmp 0x10047b79
and dword [ebp - 0x24], 0
cmp dword [ebp - 0x24], 0x8a06
jle 0x10047b8b
mov dword [ebp - 0x2c], 1
jmp 0x10047b8f
and dword [ebp - 0x2c], 0
mov eax, dword [ebp - 8]
mov eax, dword [eax]
cmp dword [ebp - 0x2c], eax
jle 0x10047ba5
mov dword [ebp - 0x8c], 1
jmp 0x10047bac
and dword [ebp - 0x8c], 0
mov eax, dword [ebp - 8]
mov eax, dword [eax]
mov dword [ebp - 0x9c], eax
mov eax, dword [ebp - 0x94]
cmp dword [eax], 0
je 0x10047bd3
mov eax, dword [ebp - 0xc]
cmp dword [eax], 0
je 0x10047bd3
mov dword [ebp - 0x34], 1
jmp 0x10047bd7
and dword [ebp - 0x34], 0
cmp dword [ebp - 0x34], 0xfffa
je 0x10047be9
mov dword [ebp - 0x3c], 1
jmp 0x10047bed
and dword [ebp - 0x3c], 0
mov eax, dword [ebp - 8]
mov eax, dword [eax]
cmp dword [ebp - 0x3c], eax
jle 0x10047c02
or eax, 0xffffffff
jne 0x10047c02
and dword [ebp - 0x10], 0
jmp 0x10047c09
mov dword [ebp - 0x10], 1
cmp dword [ebp - 0x10], 0x5156be82
jne 0x10047c1b
mov dword [ebp - 0x4c], 1
jmp 0x10047c1f
and dword [ebp - 0x4c], 0
mov eax, dword [ebp - 8]
mov eax, dword [eax]
cmp dword [ebp - 0x4c], eax
jne 0x10047c32
mov dword [ebp - 0x14], 1
jmp 0x10047c36
and dword [ebp - 0x14], 0
cmp dword [ebp - 0x14], 0x3d06ce12
je 0x10047c48
mov dword [ebp - 0x1c], 1
jmp 0x10047c4c
and dword [ebp - 0x1c], 0
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x1c]
mov dword [eax], ecx
mov esp, ebp
pop ebp
ret