Function at 0x409830
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4772c2
mov eax, dword fs:[0]
push eax
sub esp, 0x140
mov eax, dword [0x4a3110]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x14c]
mov dword [ebp - 0x13c], ecx
xor edi, edi
push eax
mov ecx, esi
mov dword [ebp - 0x138], edi
call fcn.00406ea0
mov eax, dword [ebp - 0x14c]
mov ecx, dword [ebp - 0x148]
mov dword [ebp - 4], edi
cmp eax, ecx
jne 0x4098c2
cmp eax, edi
je 0x4098b8
mov edx, dword [ebp - 0x138]
push edx
lea edx, [ebp - 0x140]
push edx
push ecx
push eax
call fcn.00420930
mov eax, dword [ebp - 0x14c]
push eax
call fcn.0042a9e1
add esp, 0x14
mov eax, 2
jmp 0x409f50
xor ecx, ecx
push 3
mov word [ebp - 0x2c], cx
push 0x47e6f8
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], edi
call fcn.00401f10
lea edx, [ebp - 0x2c]
push edx
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.00404ac0
mov ebx, 8
mov dword [ebp - 0x138], eax
mov byte [ebp - 4], 0
cmp dword [ebp - 0x18], ebx
jb 0x409910
mov eax, dword [ebp - 0x2c]
push eax
call fcn.0042a9e1
add esp, 4
cmp dword [ebp - 0x138], edi
je 0x40994c
call fcn.00401ab0
mov ecx, eax
call fcn.00401b20
mov ecx, eax
call fcn.00412b80
mov dword [ebp - 0x138], eax
test ax, ax
je 0x40994c
lea ecx, [ebp - 0x14c]
call fcn.00405af0
mov eax, dword [ebp - 0x138]
jmp 0x409f50
push 4
xor edx, edx
push 0x47e5a4
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x34], 7
mov dword [ebp - 0x38], edi
mov word [ebp - 0x48], dx
call fcn.00401f10
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x9c]
push ecx
mov ecx, esi
mov byte [ebp - 4], 2
call fcn.004049c0
mov byte [ebp - 4], 4
cmp dword [ebp - 0x34], ebx
jb 0x409996
mov edx, dword [ebp - 0x48]
push edx
call fcn.0042a9e1
add esp, 4
lea ecx, [ebp - 0x9c]
xor eax, eax
push ecx
mov ecx, dword [ebp - 0x13c]
mov dword [ebp - 0x34], 7
mov dword [ebp - 0x38], edi
mov word [ebp - 0x48], ax
call fcn.00407510
test eax, eax
jne 0x409b97
push 0xb
xor edx, edx
push str.ServiceType
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], edi
mov word [ebp - 0x2c], dx
call fcn.00401f10
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x80]
push ecx
mov ecx, esi
mov byte [ebp - 4], 5
call fcn.004049c0
mov byte [ebp - 4], 7
cmp dword [ebp - 0x18], ebx
jb 0x409a07
mov edx, dword [ebp - 0x2c]
push edx
call fcn.0042a9e1
add esp, 4
xor eax, eax
mov word [ebp - 0x2c], ax
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], edi
cmp dword [ebp - 0x6c], ebx
jae 0x409a22
lea eax, [ebp - 0x80]
push str.Daemon
push eax
call fcn.0042bb95
add esp, 8
test eax, eax
jne 0x409ac2
call fcn.00401ab0
mov ecx, eax
call fcn.00401b20
mov ecx, eax
call fcn.00412ad0
lea ecx, [ebp - 0x9c]
push ecx
mov ecx, dword [ebp - 0x13c]
call fcn.00408590
mov esi, eax
cmp dword [ebp - 0x6c], ebx
jb 0x409a70
mov edx, dword [ebp - 0x80]
push edx
call fcn.0042a9e1
add esp, 4
xor eax, eax
mov word [ebp - 0x80], ax
mov dword [ebp - 0x70], edi
mov dword [ebp - 0x6c], 7
cmp dword [ebp - 0x88], ebx
jb 0x409a97
mov ecx, dword [ebp - 0x9c]
push ecx
call fcn.0042a9e1
add esp, 4
xor edx, edx
lea ecx, [ebp - 0x14c]
mov dword [ebp - 0x88], 7
mov dword [ebp - 0x8c], edi
mov word [ebp - 0x9c], dx
call fcn.00405af0
mov eax, esi
jmp 0x409f50
lea ecx, [ebp - 0x134]
call fcn.004068c0
mov byte [ebp - 4], 8
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea ecx, [ebp - 0x64]
call fcn.004023c0
lea eax, [ebp - 0x64]
push eax
lea ecx, [ebp - 0x134]
mov byte [ebp - 4], 9
call fcn.00406bf0
mov byte [ebp - 4], 8
cmp dword [ebp - 0x50], ebx
jb 0x409b08
mov ecx, dword [ebp - 0x64]
push ecx
call fcn.0042a9e1
add esp, 4
push 0x47e5a4
lea ecx, [ebp - 0x64]
call fcn.004023c0
lea edx, [ebp - 0x64]
push edx
lea ecx, [ebp - 0x134]
mov byte [ebp - 4], 0xa
call fcn.00406360
mov byte [ebp - 4], 8
cmp dword [ebp - 0x50], ebx
jb 0x409b3d
mov eax, dword [ebp - 0x64]
push eax
call fcn.0042a9e1
add esp, 4
lea ecx, [ebp - 0x48]
push ecx
lea ecx, [ebp - 0x134]
call fcn.00407250
lea edx, [ebp - 0x9c]
push edx
push eax
mov byte [ebp - 4], 0xb
call fcn.004088a0
add esp, 8
mov esi, eax
cmp dword [ebp - 0x34], ebx
jb 0x409b73
mov eax, dword [ebp - 0x48]
push eax
call fcn.0042a9e1
add esp, 4
xor ecx, ecx
mov word [ebp - 0x48], cx
lea ecx, [ebp - 0x134]
mov dword [ebp - 0x34], 7
mov dword [ebp - 0x38], edi
mov byte [ebp - 4], 7
call fcn.00406240
jmp 0x409a5f
push 9
xor eax, eax
push 0x47e58c
lea ecx, [ebp - 0x80]
mov dword [ebp - 0x6c], 7
mov dword [ebp - 0x70], edi
mov word [ebp - 0x80], ax
call fcn.00401f10
lea ecx, [ebp - 0x80]
push ecx
mov ebx, 1
mov ecx, esi
mov byte [ebp - 4], 0xc
mov dword [ebp - 0x138], ebx
call fcn.00404ac0
test eax, eax
je 0x409c15
push 0x47e58c
lea ecx, [ebp - 0x2c]
call fcn.004023c0
lea edx, [ebp - 0x2c]
push edx
lea eax, [ebp - 0x64]
push eax
mov ecx, esi
mov dword [ebp - 4], 0xd
mov dword [ebp - 0x138], 3
call fcn.004049c0
mov ebx, 7
mov dword [ebp - 0x138], 1
cmp dword [eax + 0x10], edi
je 0x409c1b
mov dword [ebp - 0x138], edi
test bl, 4
je 0x409c45
and ebx, 0xfffffffb
cmp dword [ebp - 0x50], 8
jb 0x409c35
mov ecx, dword [ebp - 0x64]
push ecx
call fcn.0042a9e1
add esp, 4
xor edx, edx
mov dword [ebp - 0x50], 7
mov dword [ebp - 0x54], edi
mov word [ebp - 0x64], dx
test bl, 2
je 0x409c6f
and ebx, 0xfffffffd
cmp dword [ebp - 0x18], 8
jb 0x409c5f
mov eax, dword [ebp - 0x2c]
push eax
call fcn.0042a9e1
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], edi
mov word [ebp - 0x2c], cx
mov dword [ebp - 4], 4
test bl, 1
je 0x409c8d
cmp dword [ebp - 0x6c], 8
jb 0x409c8d
mov edx, dword [ebp - 0x80]
push edx
call fcn.0042a9e1
add esp, 4
cmp dword [ebp - 0x138], edi
je 0x409cc4
mov ecx, dword [ebp - 0x13c]
call fcn.004081a0
test eax, eax
je 0x409cc4
lea ecx, [ebp - 0x9c]
call fcn.0041e180
lea ecx, [ebp - 0x14c]
call fcn.00405af0
mov eax, 0x11
jmp 0x409f50
push 5
xor eax, eax
push str.Entry
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], edi
mov word [ebp - 0x2c], ax
call fcn.00401f10
lea ecx, [ebp - 0x2c]
push ecx
lea edx, [ebp - 0xb8]
push edx
mov ecx, esi
mov byte [ebp - 4], 0xe
call fcn.004049c0
cmp dword [ebp - 0x18], 8
mov byte [ebp - 4], 0x10
jb 0x409d0f
mov eax, dword [ebp - 0x2c]
push eax
call fcn.0042a9e1
add esp, 4
xor ecx, ecx
mov eax, 7
push 0xa
mov word [ebp - 0x2c], cx
xor edx, edx
push str.EncodePath
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x38], edi
mov word [ebp - 0x48], dx
call fcn.00401f10
lea eax, [ebp - 0x48]
push eax
mov ecx, esi
mov byte [ebp - 4], 0x11
call fcn.00404ac0
cmp dword [ebp - 0x34], 8
mov ebx, eax
mov byte [ebp - 4], 0x10
jb 0x409d62
mov ecx, dword [ebp - 0x48]
push ecx
call fcn.0042a9e1
add esp, 4
push str.OnlyVerifyCertSigner
lea ecx, [ebp - 0x64]
call fcn.004023c0
cmp ebx, edi
je 0x409dcc
mov eax, dword [ebp - 0x14c]
cmp dword [eax + 0x14], 8
mov byte [ebp - 4], 0x12
jb 0x409d85
mov eax, dword [eax]
push eax
lea edx, [ebp - 0x48]
push edx
call fcn.00416f40
add esp, 8
mov edi, eax
lea eax, [ebp - 0x64]
push eax
mov ecx, esi
mov byte [ebp - 4], 0x13
call fcn.00404ac0
cmp eax, 1
sete cl
movzx edx, cl
mov ecx, dword [ebp - 0x13c]
push edx
lea eax, [ebp - 0xb8]
push eax
push edi
call fcn.004089b0
lea ecx, [ebp - 0x48]
mov edi, eax
call fcn.0041e180
jmp 0x409e00
mov edi, dword [ebp - 0x14c]
lea ecx, [ebp - 0x64]
push ecx
mov ecx, esi
mov byte [ebp - 4], 0x14
call fcn.00404ac0
cmp eax, 1
sete dl
movzx eax, dl
push eax
lea ecx, [ebp - 0xb8]
push ecx
mov ecx, dword [ebp - 0x13c]
push edi
call fcn.004089b0
mov edi, eax
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 0x10
call fcn.0041e180
test di, di
je 0x409e39
lea ecx, [ebp - 0xb8]
call fcn.0041e180
lea ecx, [ebp - 0x9c]
call fcn.0041e180
lea ecx, [ebp - 0x14c]
call fcn.00405af0
mov eax, edi
jmp 0x409f50
mov edi, dword [ebp - 0x14c]
add edi, 0x1c
cmp edi, dword [ebp - 0x148]
je 0x409eaa
mov ebx, dword [ebp - 0x13c]
mov eax, dword [ebp - 0x13c]
cmp dword [eax + 0x2c], 0
je 0x409e6b
push 1
push 0x47e530
lea ecx, [ebx + 0x1c]
call fcn.004015f0
lea ecx, [ebp - 0x64]
push edi
push ecx
call fcn.00414ae0
add esp, 8
push 0xffffffffffffffff
push 0
push eax
lea ecx, [ebx + 0x1c]
mov byte [ebp - 4], 0x15
call fcn.004013e0
cmp dword [ebp - 0x50], 8
mov byte [ebp - 4], 0x10
jb 0x409e9f
mov edx, dword [ebp - 0x64]
push edx
call fcn.0042a9e1
add esp, 4
add edi, 0x1c
cmp edi, dword [ebp - 0x148]
jne 0x409e50
mov ecx, dword [ebp - 0x13c]
push esi
call fcn.004090e0
mov edi, 8
cmp dword [ebp - 0xa4], edi
jb 0x409ed2
mov eax, dword [ebp - 0xb8]
push eax
call fcn.0042a9e1
add esp, 4
xor esi, esi
xor ecx, ecx
mov ebx, 7
mov dword [ebp - 0xa4], ebx
mov dword [ebp - 0xa8], esi
mov word [ebp - 0xb8], cx
cmp dword [ebp - 0x88], edi
jb 0x409f05
mov edx, dword [ebp - 0x9c]
push edx
call fcn.0042a9e1
add esp, 4
xor eax, eax
mov word [ebp - 0x9c], ax
mov eax, dword [ebp - 0x14c]
mov dword [ebp - 0x88], ebx
mov dword [ebp - 0x8c], esi
cmp eax, esi
je 0x409f4e
mov ecx, dword [ebp - 0x138]
push ecx
mov ecx, dword [ebp - 0x148]
lea edx, [ebp - 0x140]
push edx
push ecx
push eax
call fcn.00420930
mov edx, dword [ebp - 0x14c]
push edx
call fcn.0042a9e1
add esp, 0x14
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042b571
mov esp, ebp
pop ebp
ret 4