Function at 0x100247be
Capabilities:
Accept command line arguments
Create thread
Query service status

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1005fbe9
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
sub esp, 0x50
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
movzx eax, byte [ebp + 0x18]
test eax, eax
je 0x10024964
lea eax, [ebp + 0x1c]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x2c]
movzx eax, byte [eax]
test eax, eax
je 0x1002484e
mov dword [ebp - 0x58], 0xa049fe38
mov byte [ebp - 0x11], 0
movzx eax, byte [ebp - 0x11]
test eax, eax
je 0x10024833
push 0
push 0xfdb
push 0
push 0
push 0x473
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov byte [ebp - 0x12], 0
movzx eax, byte [ebp - 0x12]
test eax, eax
je 0x10024849
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
jmp 0x10024962
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x28], 0x46a2
mov dword [ebp - 0x40], 0x10009334
cmp dword [ebp - 0x28], 0x4a7f
jle 0x100248e9
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
and dword [ebp - 0x1c], 0
jmp 0x1002488a
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0x11c6
jge 0x100248e9
and dword [ebp - 0x20], 0
jmp 0x100248a0
mov eax, dword [ebp - 0x20]
inc eax
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0x71a9
jge 0x100248e7
and dword [ebp - 0x24], 0
jmp 0x100248b6
mov eax, dword [ebp - 0x24]
inc eax
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0x3759
jge 0x100248e5
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x20]
shl eax, cl
mov ecx, dword [ebp - 0x24]
shl eax, cl
cdq
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x5c], edx
push dword [ebp - 0x5c]
push dword [ebp - 0x60]
mov ecx, 0x10607df8
call fcn.1002c3bf
jmp 0x100248af
jmp 0x10024899
jmp 0x10024883
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x44], eax
and dword [ebp - 4], 0
cmp dword [ebp - 0x28], 0x42fc
jge 0x10024909
mov edx, dword [ebp - 0x40]
mov ecx, 0x10607df8
call fcn.1002de69
jmp 0x10024925
or dword [ebp - 4], 0xffffffff
jmp 0x1002492f
mov eax, dword [ebp - 0x18]
mov dword [eax], 0
jmp 0x10024945
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 0x18]
mov dword [ecx], eax
mov eax, dword [ebp - 0x18]
cmp dword [eax], 2
jge 0x10024962
mov eax, dword [ebp - 0x18]
push dword [eax]
mov ecx, dword [ebp - 0x44]
call fcn.1002c572
mov dword [eax], 0x68169b2b
jmp 0x1002493a
jmp 0x100249bf
lea eax, [ebp + 0x14]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x48]
movzx eax, byte [eax]
test eax, eax
je 0x10024993
push 0x24f2
push 0xde2
push 0
push 0x1073
call dword [sym.imp.USER32.dll_CreateCaret]
jmp 0x100249bf
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x54]
movzx eax, byte [eax]
test eax, eax
je 0x100249bf
push 0
push 0
push 0x154e
push 0xbfc
push 0
call dword [sym.imp.USER32.dll_InsertMenuW]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret