Function at 0x1004ad2b
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10068b70
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
sub esp, 0x74
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
movzx eax, byte [ebp + 0x18]
test eax, eax
je 0x1004afaf
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x50], eax
lea eax, [ebp + 8]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x44]
movzx eax, byte [eax]
test eax, eax
je 0x1004ae52
mov dword [ebp - 0x28], 0x4d99
mov dword [ebp - 0x4c], 0x10008ce8
cmp dword [ebp - 0x28], 0x4fd0
jle 0x1004ae0b
push 0
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_ControlService]
and dword [ebp - 0x1c], 0
jmp 0x1004ada9
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0x7f02
jge 0x1004ae0b
and dword [ebp - 0x20], 0
jmp 0x1004adbf
mov eax, dword [ebp - 0x20]
inc eax
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0x64f5
jge 0x1004ae09
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x20]
sar eax, cl
cdq
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x68], edx
push dword [ebp - 0x68]
push dword [ebp - 0x6c]
lea ecx, [ebp - 0x84]
call fcn.1000a30e
pop ecx
pop ecx
mov dword [ebp - 0x48], eax
mov ecx, dword [ebp - 0x48]
call fcn.10021159
push eax
call fcn.1005137c
pop ecx
lea ecx, [ebp - 0x84]
call fcn.1002114f
jmp 0x1004adb8
jmp 0x1004ada2
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
and dword [ebp - 4], 0
cmp dword [ebp - 0x28], 0x4b6b
jge 0x1004ae27
push dword [ebp - 0x4c]
call fcn.1005137c
pop ecx
jmp 0x1004ae43
or dword [ebp - 4], 0xffffffff
jmp 0x1004ae4d
jmp 0x1004afad
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x14]
mov dword [eax], 0
jmp 0x1004ae80
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 0x14]
mov dword [ecx], eax
mov eax, dword [ebp - 0x14]
cmp dword [eax], 0
jg 0x1004afad
mov dword [ebp - 0x24], 0xfffffffa
mov dword [ebp - 0x34], 0xffffffff
push dword [ebp - 0x18]
push dword [ebp - 0x14]
push 0x71e8
push 0
push 1
lea eax, [ebp - 0x24]
push eax
push 1
call fcn.10041bc7
add esp, 0x1c
mov eax, dword [ebp - 0x14]
push dword [eax]
mov ecx, dword [ebp - 0x18]
call fcn.100214c8
cmp dword [eax], 0
je 0x1004af95
mov eax, dword [ebp - 0x14]
cmp dword [eax], 0
je 0x1004aef0
mov eax, dword [ebp - 0x14]
push dword [eax]
mov ecx, dword [ebp - 0x18]
call fcn.100214c8
cmp dword [eax], 0
je 0x1004aef0
mov dword [ebp - 0x2c], 1
jmp 0x1004aef4
and dword [ebp - 0x2c], 0
mov esi, dword [ebp - 0x2c]
neg esi
mov eax, dword [ebp - 0x14]
push dword [eax]
mov ecx, dword [ebp - 0x18]
call fcn.100214c8
sub esi, dword [eax]
mov eax, dword [ebp - 0x14]
push dword [eax]
mov ecx, dword [ebp - 0x18]
call fcn.100214c8
imul esi, dword [eax]
neg esi
cmp esi, 0x1ac3dc99
jge 0x1004af2b
mov dword [ebp - 0x30], 1
jmp 0x1004af2f
and dword [ebp - 0x30], 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
add eax, dword [ebp - 0x30]
mov dword [ebp - 0x34], eax
mov esi, dword [ebp - 0x34]
mov eax, dword [ebp - 0x14]
push dword [eax]
mov ecx, dword [ebp - 0x18]
call fcn.100214c8
cmp dword [eax], esi
jg 0x1004af57
mov dword [ebp - 0x38], 1
jmp 0x1004af5b
and dword [ebp - 0x38], 0
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
cmp eax, dword [ebp - 0x38]
jl 0x1004af72
mov dword [ebp - 0x3c], 1
jmp 0x1004af76
and dword [ebp - 0x3c], 0
mov esi, dword [ebp - 0x3c]
neg esi
mov eax, dword [ebp - 0x14]
push dword [eax]
mov ecx, dword [ebp - 0x18]
call fcn.100214c8
add esi, dword [eax]
je 0x1004af95
mov dword [ebp - 0x40], 1
jmp 0x1004af99
and dword [ebp - 0x40], 0
push 0
mov ecx, dword [ebp - 0x18]
call fcn.100214c8
mov ecx, dword [ebp - 0x40]
mov dword [eax], ecx
jmp 0x1004ae75
jmp 0x1004afd5
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x64], eax
push 0x78e
push 0
push dword [ebp - 0x60]
push dword [ebp - 0x64]
push 0x59a9
call fcn.100365d7
add esp, 0x14
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret