Function at 0x409bd0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cd39c
mov eax, dword fs:[0]
push eax
sub esp, 0x120
mov eax, dword [0x513480]
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 ebx, ecx
mov dword [ebp - 0x120], ebx
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x12c]
push eax
mov ecx, edi
mov dword [ebp - 0x14], 0
call fcn.00405b60
mov eax, dword [ebp - 0x12c]
mov dword [ebp - 4], 0
cmp eax, dword [ebp - 0x128]
jne 0x409c3d
mov esi, 2
jmp 0x40a512
push 3
xor eax, eax
mov dword [ebp - 0x30], 0
push 0x4db858
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
call fcn.00407d60
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 1
push eax
mov ecx, edi
call fcn.004062b0
mov edx, dword [ebp - 0x2c]
mov esi, eax
mov byte [ebp - 4], 0
cmp edx, 8
jb 0x409caf
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x409ca5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a53d
push edx
push ecx
call fcn.00491e05
add esp, 8
test esi, esi
je 0x409cd1
call fcn.00403910
mov ecx, eax
call fcn.00403bb0
mov ecx, eax
call fcn.0043cb40
mov esi, eax
test si, si
jne 0x40a512
push 4
xor eax, eax
mov dword [ebp - 0x30], 0
push str.User
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
call fcn.00407d60
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x88]
mov ecx, edi
push eax
call fcn.004061d0
mov edx, dword [ebp - 0x2c]
mov byte [ebp - 4], 4
cmp edx, 8
jb 0x409d48
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x409d3e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a542
push edx
push ecx
call fcn.00491e05
add esp, 8
xor eax, eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
cmp dword [ebp - 0x78], eax
je 0x40a0b3
lea ecx, [ebp - 0x18]
call fcn.0043a390
push 0
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 5
call fcn.0043ad80
lea ecx, [ebp - 0x18]
call fcn.0043adc0
cmp dword [ebp - 0x74], 8
lea ecx, [ebp - 0x88]
push 0x4db8f0
cmovae ecx, dword [ebp - 0x88]
mov esi, eax
push ecx
call fcn.0049dae9
add esp, 8
test eax, eax
jne 0x409db2
xor ebx, ebx
cmp esi, 1
sete bl
jmp 0x409e1a
cmp dword [ebp - 0x74], 8
lea eax, [ebp - 0x88]
push str.Admin
cmovae eax, dword [ebp - 0x88]
push eax
call fcn.0049dae9
add esp, 8
test eax, eax
jne 0x409ddf
xor ebx, ebx
cmp esi, 2
sete bl
jmp 0x409e1a
cmp dword [ebp - 0x74], 8
lea eax, [ebp - 0x88]
push str.Shell
cmovae eax, dword [ebp - 0x88]
push eax
call fcn.0049dae9
add esp, 8
test eax, eax
jne 0x40a0a7
cmp esi, 2
jne 0x409e36
lea ecx, [ebp - 0x18]
call fcn.0043b830
mov ebx, eax
neg ebx
sbb ebx, ebx
inc ebx
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 4
call fcn.0043a460
test ebx, ebx
jne 0x40a0b3
mov ebx, dword [ebp - 0x120]
jmp 0x409e4b
cmp esi, 1
jne 0x40a0a7
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 4
call fcn.0043a460
push 0xb
xor eax, eax
mov dword [ebp - 0x18], 0
push str.ServiceType
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
call fcn.00407d60
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 6
push eax
lea eax, [ebp - 0x58]
mov ecx, edi
push eax
call fcn.004061d0
mov edx, dword [ebp - 0x14]
mov byte [ebp - 4], 8
cmp edx, 8
jb 0x409ebf
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x409eb5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a547
push edx
push ecx
call fcn.00491e05
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
cmp dword [ebp - 0x44], 8
mov word [ebp - 0x28], ax
lea eax, [ebp - 0x58]
cmovae eax, dword [ebp - 0x58]
push str.Daemon
push eax
mov dword [ebp - 0x14], 7
call fcn.0049dae9
add esp, 8
test eax, eax
jne 0x409f1b
call fcn.00403910
mov ecx, eax
call fcn.00403bb0
mov ecx, eax
call fcn.0043cfc0
lea eax, [ebp - 0x88]
mov ecx, ebx
push eax
call fcn.0040bd90
mov esi, eax
lea ecx, [ebp - 0x58]
jmp 0x40a502
lea ecx, [ebp - 0x11c]
call fcn.00405410
mov byte [ebp - 4], 9
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea ecx, [ebp - 0x40]
call fcn.004022e0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
lea eax, [ebp - 0x1c]
mov byte [ebp - 4], 0xb
push eax
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x11c]
call fcn.00406890
mov esi, dword [ebp - 0x1c]
mov byte [ebp - 4], 0xa
test esi, esi
je 0x40a02f
mov edi, dword [ebp - 0x18]
cmp esi, edi
je 0x409fd6
jmp 0x409f80
mov ecx, dword [esi + 0x14]
cmp ecx, 8
jb 0x409fb9
mov eax, dword [esi]
lea ecx, [ecx*2 + 2]
cmp ecx, 0x1000
jb 0x409faf
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a54c
mov eax, edx
push ecx
push eax
call fcn.00491e05
add esp, 8
xor eax, eax
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
add esi, 0x18
cmp esi, edi
jne 0x409f80
mov esi, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x14]
mov eax, 0x2aaaaaab
sub ecx, esi
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [eax + eax*2]
mov eax, esi
shl ecx, 3
cmp ecx, 0x1000
jb 0x40a010
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a54c
push ecx
push esi
call fcn.00491e05
add esp, 8
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 9
call fcn.00402480
push str.User
lea ecx, [ebp - 0x40]
call fcn.004022e0
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 0xc
push eax
lea ecx, [ebp - 0x11c]
call fcn.004072f0
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 9
call fcn.00402480
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0x11c]
call fcn.004058c0
lea ecx, [ebp - 0x88]
mov byte [ebp - 4], 0xd
push ecx
push eax
call fcn.0040b750
add esp, 8
lea ecx, [ebp - 0x70]
mov esi, eax
call fcn.00402480
lea ecx, [ebp - 0x11c]
call fcn.004055d0
lea ecx, [ebp - 0x58]
jmp 0x40a502
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 4
call fcn.0043a460
push 9
xor eax, eax
mov dword [ebp - 0x48], 0
push str.Temporary
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
call fcn.00407d60
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 0xe
mov ebx, 1
mov ecx, edi
push eax
mov dword [ebp - 0x14], ebx
call fcn.004062b0
test eax, eax
je 0x40a12e
push str.Temporary
lea ecx, [ebp - 0x70]
call fcn.004022e0
lea eax, [ebp - 0x70]
mov dword [ebp - 4], 0xf
push eax
lea eax, [ebp - 0xa0]
mov dword [ebp - 0x14], 3
push eax
mov ecx, edi
call fcn.004061d0
mov ebx, 7
cmp dword [eax + 0x10], 0
jne 0x40a12e
lea esi, [ebx - 6]
jmp 0x40a130
xor esi, esi
test bl, 4
je 0x40a143
lea ecx, [ebp - 0xa0]
and ebx, 0xfffffffb
call fcn.00402480
test bl, 2
je 0x40a153
lea ecx, [ebp - 0x70]
and ebx, 0xfffffffd
call fcn.00402480
mov dword [ebp - 4], 4
test bl, 1
je 0x40a199
mov edx, dword [ebp - 0x44]
cmp edx, 8
jb 0x40a199
mov ecx, dword [ebp - 0x58]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40a18f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a551
push edx
push ecx
call fcn.00491e05
add esp, 8
mov ebx, dword [ebp - 0x120]
test esi, esi
je 0x40a1b8
mov ecx, ebx
call fcn.0040b060
test eax, eax
je 0x40a1b8
mov esi, 0x11
jmp 0x40a507
push 5
xor eax, eax
mov dword [ebp - 0x18], 0
push str.Entry
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
call fcn.00407d60
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 0x10
push eax
lea eax, [ebp - 0xb8]
mov ecx, edi
push eax
call fcn.004061d0
mov edx, dword [ebp - 0x14]
mov byte [ebp - 4], 0x12
cmp edx, 8
jb 0x40a22f
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40a225
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a556
push edx
push ecx
call fcn.00491e05
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
push 0xc
push str.EncodePathU8
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
call fcn.00407d60
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 0x13
push eax
mov ecx, edi
call fcn.004062b0
mov edx, dword [ebp - 0x44]
mov esi, eax
mov byte [ebp - 4], 0x12
cmp edx, 8
jb 0x40a2af
mov ecx, dword [ebp - 0x58]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40a2a5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a55b
push edx
push ecx
call fcn.00491e05
add esp, 8
test esi, esi
je 0x40a353
push str.OnlyVerifyCertSigner
lea ecx, [ebp - 0x58]
call fcn.004022e0
push str.EncodePathU8
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 0x14
call fcn.004022e0
lea eax, [ebp - 0x70]
mov byte [ebp - 4], 0x15
push eax
lea eax, [ebp - 0x40]
mov ecx, edi
push eax
call fcn.004061d0
cmp dword [eax + 0x14], 8
mov byte [ebp - 4], 0x16
jb 0x40a2f4
mov eax, dword [eax]
push eax
lea eax, [ebp - 0xa0]
push eax
call fcn.00479ab0
add esp, 8
mov esi, eax
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 0x17
push eax
mov ecx, edi
call fcn.004062b0
cmp eax, 1
lea eax, [ebp - 0xb8]
sete cl
movzx ecx, cl
push ecx
push eax
push esi
mov ecx, ebx
call fcn.0040a980
lea ecx, [ebp - 0xa0]
mov esi, eax
call fcn.00402480
lea ecx, [ebp - 0x40]
call fcn.00402480
lea ecx, [ebp - 0x70]
call fcn.00402480
lea ecx, [ebp - 0x58]
jmp 0x40a432
push str.EncodePath
lea ecx, [ebp - 0x70]
call fcn.004022e0
lea eax, [ebp - 0x70]
mov byte [ebp - 4], 0x18
push eax
mov ecx, edi
call fcn.004062b0
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 0x12
mov esi, eax
call fcn.00402480
push str.OnlyVerifyCertSigner
test esi, esi
je 0x40a3f7
lea ecx, [ebp - 0x58]
call fcn.004022e0
mov eax, dword [ebp - 0x12c]
mov byte [ebp - 4], 0x19
cmp dword [eax + 0x14], 8
jb 0x40a3a0
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x70]
call fcn.004022e0
lea eax, [ebp - 0x70]
mov byte [ebp - 4], 0x1a
push eax
lea eax, [ebp - 0xa0]
push eax
call fcn.004796e0
add esp, 8
mov esi, eax
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 0x1b
push eax
mov ecx, edi
call fcn.004062b0
cmp eax, 1
lea eax, [ebp - 0xb8]
sete cl
movzx ecx, cl
push ecx
push eax
push esi
mov ecx, ebx
call fcn.0040a980
mov esi, eax
lea ecx, [ebp - 0xa0]
jmp 0x40a33e
lea ecx, [ebp - 0x70]
call fcn.004022e0
mov esi, dword [ebp - 0x12c]
lea eax, [ebp - 0x70]
push eax
mov ecx, edi
mov byte [ebp - 4], 0x1c
call fcn.004062b0
cmp eax, 1
mov ecx, ebx
sete al
movzx eax, al
push eax
lea eax, [ebp - 0xb8]
push eax
push esi
call fcn.0040a980
mov esi, eax
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 0x12
call fcn.00402480
test si, si
jne 0x40a4fc
mov esi, dword [ebp - 0x12c]
add esi, 0x18
cmp esi, dword [ebp - 0x128]
je 0x40a4f2
mov eax, dword [ebp - 0x120]
lea ebx, [eax + 0x18]
cmp dword [eax + 0x28], 0
je 0x40a476
push 1
push 0x4db4bc
mov ecx, ebx
call fcn.004026f0
lea eax, [ebp - 0x70]
push esi
push eax
call fcn.00413030
add esp, 8
cmp dword [eax + 0x14], 8
mov ecx, eax
mov byte [ebp - 4], 0x1d
jb 0x40a491
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
mov ecx, ebx
call fcn.004026f0
mov edx, dword [ebp - 0x5c]
mov byte [ebp - 4], 0x12
cmp edx, 8
jb 0x40a4d6
mov ecx, dword [ebp - 0x70]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40a4cc
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a53d
push edx
push ecx
call fcn.00491e05
add esp, 8
add esi, 0x18
cmp esi, dword [ebp - 0x128]
je 0x40a4ec
mov eax, dword [ebp - 0x120]
jmp 0x40a462
mov ebx, dword [ebp - 0x120]
push edi
mov ecx, ebx
call fcn.00409790
xor esi, esi
lea ecx, [ebp - 0xb8]
call fcn.00402480
lea ecx, [ebp - 0x88]
call fcn.00402480
lea ecx, [ebp - 0x12c]
call fcn.004024e0
mov eax, esi
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.00491e13
mov esp, ebp
pop ebp
ret 4
call fcn.0049d959
call fcn.0049d959
call fcn.0049d959
call fcn.0049d959
call fcn.0049d959
call fcn.0049d959
call fcn.0049d959
int3