Function at 0x10001290
Capabilities:
Query environment variable
Query service status
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push esi
and esp, 0xfffffff8
sub esp, 0x108
mov dword [esp + 0x100], 0
mov eax, esp
lea ecx, [esp + 0x100]
mov dword [eax + 4], ecx
mov dword [eax + 0x10], 0xb3d18b
mov dword [eax + 0xc], 0x2f2382
mov dword [eax + 8], 0x907
mov dword [eax], 0x9f1
mov eax, dword [sym.imp.USER32.dll_BroadcastSystemMessageA]
call eax
sub esp, 0x14
mov dword [esp + 0xfc], 0
mov dword [esp + 0x80], eax
jmp 0x100013a2
jmp 0x1000153c
mov eax, esp
mov dword [eax], 0x3747d5
mov eax, dword [sym.imp.USER32.dll_SetMessageExtraInfo]
call eax
sub esp, 4
mov byte [esp + 0xc3], 2
mov dword [esp + 0xbc], 0xa46
mov ecx, esp
lea edx, [esp + 0xbc]
mov dword [ecx + 0x10], edx
lea edx, [esp + 0xc3]
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], 0x4e2
mov dword [ecx + 4], 0x3f
mov dword [ecx], 0xa246b5
mov ecx, dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
mov dword [esp + 0x7c], eax
call ecx
sub esp, 0x14
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0xb0]
mov dword [esp + 0xa8], eax
mov eax, dword [esp + 0xb4]
mov dword [esp + 0xac], eax
mov eax, dword [esp + 0xa8]
mov ecx, dword [esp + 0xac]
mov edx, esp
mov dword [edx + 8], ecx
mov dword [edx + 4], eax
mov dword [edx], 0xcbf8e
mov eax, dword [sym.imp.USER32.dll_RealChildWindowFromPoint]
call eax
sub esp, 0xc
mov dword [esp + 0x74], eax
jmp 0x1000159e
cmp dword [esp + 0xfc], 0x119
jne 0x10001419
jmp 0x1000169c
mov eax, dword [esp + 0xc4]
and eax, 0xf
mov ecx, eax
sub ecx, 3
mov dword [esp + 0x70], eax
mov dword [esp + 0x6c], ecx
je 0x100014fb
jmp 0x100013d3
mov eax, dword [esp + 0x70]
sub eax, 9
mov dword [esp + 0x68], eax
je 0x100014fd
jmp 0x100012f0
mov eax, dword [esp + 0xfc]
add eax, 1
mov dword [esp + 0xfc], eax
jmp 0x100013a2
mov eax, dword [esp + 0xc4]
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x64]
cmp eax, 0x2cc
jne 0x100013b4
jmp 0x10001554
mov dword [esp + 0xf8], 0x109
mov eax, esp
lea ecx, [esp + 0xe0]
mov dword [eax + 8], ecx
lea ecx, [esp + 0xf8]
mov dword [eax + 4], ecx
mov dword [eax], 0x965eae
mov eax, dword [sym.imp.KERNEL32.dll_WaitCommEvent]
call eax
sub esp, 0xc
mov ecx, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov dword [esp + 0x60], eax
call ecx
mov ecx, esp
mov dword [ecx + 0x10], 0x2b0
mov dword [ecx + 0xc], 0xdf9
mov dword [ecx + 8], 0x45a
mov dword [ecx + 4], 0x2b0
mov dword [ecx], 0x5f1441
mov ecx, dword [sym.imp.USER32.dll_CopyImage]
mov dword [esp + 0x5c], eax
call ecx
sub esp, 0x14
mov ecx, esp
mov dword [ecx], 0x52fc2a
mov ecx, dword [sym.imp.KERNEL32.dll_HeapUnlock]
mov dword [esp + 0x58], eax
call ecx
sub esp, 4
xor ecx, ecx
mov edx, 0x18
lea esi, [esp + 0xc8]
mov dword [esp], esi
mov dword [esp + 4], 0
mov dword [esp + 8], 0x18
mov dword [esp + 0x54], eax
mov dword [esp + 0x50], ecx
mov dword [esp + 0x4c], edx
call fcn.10153ed0
mov eax, esp
lea ecx, [esp + 0xc8]
mov dword [eax], ecx
mov eax, dword [sym.imp.GDI32.dll_CreateBitmapIndirect]
call eax
sub esp, 4
mov dword [esp + 0xc4], 0
mov dword [esp + 0x48], eax
jmp 0x100013fe
jmp 0x100014fd
mov eax, esp
mov dword [eax + 4], 0x513
mov dword [eax], 0xcc5d65
mov eax, dword [sym.imp.GDI32.dll_RestoreDC]
call eax
sub esp, 8
mov dword [esp + 0x44], eax
mov eax, esp
mov dword [eax + 4], 0xa2f
mov dword [eax], 0x54
mov eax, dword [sym.imp.GDI32.dll_CreateHatchBrush]
call eax
sub esp, 8
mov dword [esp + 0x40], eax
jmp 0x100012f0
mov eax, dword [esp + 0xc4]
add eax, 1
mov dword [esp + 0xc4], eax
jmp 0x100013fe
mov eax, dword [sym.imp.KERNEL32.dll_GetOEMCP]
call eax
mov ecx, dword [esp + 0xfc]
mov edx, 0xcc29786d
mov dword [esp + 0x3c], eax
mov eax, ecx
mul edx
shr edx, 8
imul eax, edx, 0x141
sub ecx, eax
mov eax, ecx
sub eax, 0x33
mov dword [esp + 0x38], ecx
mov dword [esp + 0x34], eax
je 0x100012f5
jmp 0x1000158f
mov eax, dword [esp + 0x38]
sub eax, 7
mov dword [esp + 0x30], eax
jne 0x100015f2
jmp 0x1000159e
mov eax, esp
mov dword [eax], 0xcd4bee
mov eax, dword [sym.imp.USER32.dll_SwitchDesktop]
call eax
sub esp, 4
mov ecx, esp
mov dword [ecx + 8], 0xdab
mov dword [ecx + 4], 0x2bc
mov dword [ecx], 0xbe4
mov ecx, dword [sym.imp.KERNEL32.dll_OpenThread]
mov dword [esp + 0x2c], eax
call ecx
sub esp, 0xc
mov ecx, esp
mov dword [ecx], 0xeab90a
mov ecx, dword [sym.imp.GDI32.dll_CloseFigure]
mov dword [esp + 0x28], eax
call ecx
sub esp, 4
mov dword [esp + 0x24], eax
jmp 0x1000166c
mov dword [esp + 0xa4], 0
cmp dword [esp + 0xa4], 0xa
je 0x1000166a
xor eax, eax
mov ecx, 0x18
lea edx, [esp + 0x88]
mov dword [esp], edx
mov dword [esp + 4], 0
mov dword [esp + 8], 0x18
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], ecx
call fcn.10153ed0
mov eax, esp
lea ecx, [esp + 0x88]
mov dword [eax], ecx
mov eax, dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
call eax
sub esp, 4
mov eax, dword [esp + 0xa4]
add eax, 1
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0xa4], eax
jmp 0x100015fd
jmp 0x1000166c
mov dword [esp + 0x84], 0xce
mov eax, esp
lea ecx, [esp + 0x84]
mov dword [eax + 4], ecx
mov dword [eax], 0x745f62
mov eax, dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
call eax
sub esp, 8
mov dword [esp + 0x14], eax
jmp 0x100013e9
lea esp, [ebp - 4]
pop esi
pop ebp
ret