Function at 0x40b470
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53c860
mov eax, dword fs:[0]
push eax
sub esp, 0x15c
mov eax, dword [0x58d038]
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 - 0x168]
mov dword [ebp - 0x158], ecx
xor edi, edi
push eax
mov ecx, esi
mov dword [ebp - 0x154], edi
call fcn.00406f30
mov eax, dword [ebp - 0x168]
mov ecx, dword [ebp - 0x164]
mov dword [ebp - 4], edi
cmp eax, ecx
jne 0x40b502
cmp eax, edi
je 0x40b4f8
mov edx, dword [ebp - 0x154]
push edx
lea edx, [ebp - 0x15c]
push edx
push ecx
push eax
call fcn.004025e0
mov eax, dword [ebp - 0x168]
push eax
call fcn.00480102
add esp, 0x14
mov eax, 2
jmp 0x40bc68
xor ecx, ecx
push 3
mov word [ebp - 0x2c], cx
push 0x54b9c0
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], edi
call fcn.00401b70
lea edx, [ebp - 0x2c]
push edx
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.00404a50
mov ebx, 8
mov dword [ebp - 0x154], eax
mov byte [ebp - 4], 0
cmp dword [ebp - 0x18], ebx
jb 0x40b550
mov eax, dword [ebp - 0x2c]
push eax
call fcn.00480102
add esp, 4
cmp dword [ebp - 0x154], edi
je 0x40b58c
call fcn.00401200
mov ecx, eax
call fcn.00425690
mov ecx, eax
call fcn.00414b10
mov dword [ebp - 0x154], eax
test ax, ax
je 0x40b58c
lea ecx, [ebp - 0x168]
call fcn.00402a70
mov eax, dword [ebp - 0x154]
jmp 0x40bc68
push 4
xor edx, edx
push 0x54b878
lea ecx, [ebp - 0x64]
mov dword [ebp - 0x50], 7
mov dword [ebp - 0x54], edi
mov word [ebp - 0x64], dx
call fcn.00401b70
lea eax, [ebp - 0x64]
push eax
lea ecx, [ebp - 0x9c]
push ecx
mov ecx, esi
mov byte [ebp - 4], 2
call fcn.00404950
mov byte [ebp - 4], 4
cmp dword [ebp - 0x50], ebx
jb 0x40b5d6
mov edx, dword [ebp - 0x64]
push edx
call fcn.00480102
add esp, 4
lea ecx, [ebp - 0x9c]
xor eax, eax
push ecx
mov ecx, dword [ebp - 0x158]
mov dword [ebp - 0x50], 7
mov dword [ebp - 0x54], edi
mov word [ebp - 0x64], ax
call fcn.00407860
test eax, eax
jne 0x40b7d7
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.00401b70
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x80]
push ecx
mov ecx, esi
mov byte [ebp - 4], 5
call fcn.00404950
mov byte [ebp - 4], 7
cmp dword [ebp - 0x18], ebx
jb 0x40b647
mov edx, dword [ebp - 0x2c]
push edx
call fcn.00480102
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 0x40b662
lea eax, [ebp - 0x80]
push str.Daemon
push eax
call fcn.004811ac
add esp, 8
test eax, eax
jne 0x40b702
call fcn.00401200
mov ecx, eax
call fcn.00425690
mov ecx, eax
call fcn.00414a60
lea ecx, [ebp - 0x9c]
push ecx
mov ecx, dword [ebp - 0x158]
call fcn.00408b00
mov esi, eax
cmp dword [ebp - 0x6c], ebx
jb 0x40b6b0
mov edx, dword [ebp - 0x80]
push edx
call fcn.00480102
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 0x40b6d7
mov ecx, dword [ebp - 0x9c]
push ecx
call fcn.00480102
add esp, 4
xor edx, edx
lea ecx, [ebp - 0x168]
mov dword [ebp - 0x88], 7
mov dword [ebp - 0x8c], edi
mov word [ebp - 0x9c], dx
call fcn.00402a70
mov eax, esi
jmp 0x40bc68
lea ecx, [ebp - 0x150]
call fcn.00406950
mov byte [ebp - 4], 8
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea ecx, [ebp - 0x48]
call fcn.00401fd0
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x150]
mov byte [ebp - 4], 9
call fcn.00406c80
mov byte [ebp - 4], 8
cmp dword [ebp - 0x34], ebx
jb 0x40b748
mov ecx, dword [ebp - 0x48]
push ecx
call fcn.00480102
add esp, 4
push 0x54b878
lea ecx, [ebp - 0x48]
call fcn.00401fd0
lea edx, [ebp - 0x48]
push edx
lea ecx, [ebp - 0x150]
mov byte [ebp - 4], 0xa
call fcn.004063f0
mov byte [ebp - 4], 8
cmp dword [ebp - 0x34], ebx
jb 0x40b77d
mov eax, dword [ebp - 0x48]
push eax
call fcn.00480102
add esp, 4
lea ecx, [ebp - 0x64]
push ecx
lea ecx, [ebp - 0x150]
call fcn.004072e0
lea edx, [ebp - 0x9c]
push edx
push eax
mov byte [ebp - 4], 0xb
call fcn.00409200
add esp, 8
mov esi, eax
cmp dword [ebp - 0x50], ebx
jb 0x40b7b3
mov eax, dword [ebp - 0x64]
push eax
call fcn.00480102
add esp, 4
xor ecx, ecx
mov word [ebp - 0x64], cx
lea ecx, [ebp - 0x150]
mov dword [ebp - 0x50], 7
mov dword [ebp - 0x54], edi
mov byte [ebp - 4], 7
call fcn.004062d0
jmp 0x40b69f
push 9
xor eax, eax
push 0x54b860
lea ecx, [ebp - 0x80]
mov dword [ebp - 0x6c], 7
mov dword [ebp - 0x70], edi
mov word [ebp - 0x80], ax
call fcn.00401b70
lea ecx, [ebp - 0x80]
push ecx
mov ebx, 1
mov ecx, esi
mov byte [ebp - 4], 0xc
mov dword [ebp - 0x154], ebx
call fcn.00404a50
test eax, eax
je 0x40b855
push 0x54b860
lea ecx, [ebp - 0x2c]
call fcn.00401fd0
lea edx, [ebp - 0x2c]
push edx
lea eax, [ebp - 0x48]
push eax
mov ecx, esi
mov dword [ebp - 4], 0xd
mov dword [ebp - 0x154], 3
call fcn.00404950
mov ebx, 7
mov dword [ebp - 0x154], 1
cmp dword [eax + 0x10], edi
je 0x40b85b
mov dword [ebp - 0x154], edi
test bl, 4
je 0x40b885
and ebx, 0xfffffffb
cmp dword [ebp - 0x34], 8
jb 0x40b875
mov ecx, dword [ebp - 0x48]
push ecx
call fcn.00480102
add esp, 4
xor edx, edx
mov dword [ebp - 0x34], 7
mov dword [ebp - 0x38], edi
mov word [ebp - 0x48], dx
test bl, 2
je 0x40b8af
and ebx, 0xfffffffd
cmp dword [ebp - 0x18], 8
jb 0x40b89f
mov eax, dword [ebp - 0x2c]
push eax
call fcn.00480102
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 0x40b8cd
cmp dword [ebp - 0x6c], 8
jb 0x40b8cd
mov edx, dword [ebp - 0x80]
push edx
call fcn.00480102
add esp, 4
cmp dword [ebp - 0x154], edi
je 0x40b904
mov ecx, dword [ebp - 0x158]
call fcn.00408720
test eax, eax
je 0x40b904
lea ecx, [ebp - 0x9c]
call fcn.0046e6d0
lea ecx, [ebp - 0x168]
call fcn.00402a70
mov eax, 0x11
jmp 0x40bc68
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.00401b70
lea ecx, [ebp - 0x2c]
push ecx
lea edx, [ebp - 0xb8]
push edx
mov ecx, esi
mov byte [ebp - 4], 0xe
call fcn.00404950
cmp dword [ebp - 0x18], 8
mov byte [ebp - 4], 0x10
jb 0x40b94f
mov eax, dword [ebp - 0x2c]
push eax
call fcn.00480102
add esp, 4
xor ecx, ecx
mov eax, 7
push 0xc
mov word [ebp - 0x2c], cx
xor edx, edx
push str.EncodePathU8
lea ecx, [ebp - 0x64]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x54], edi
mov word [ebp - 0x64], dx
call fcn.00401b70
lea eax, [ebp - 0x64]
push eax
mov ecx, esi
mov byte [ebp - 4], 0x11
call fcn.00404a50
cmp dword [ebp - 0x50], 8
mov ebx, eax
mov byte [ebp - 4], 0x10
jb 0x40b9a2
mov ecx, dword [ebp - 0x64]
push ecx
call fcn.00480102
add esp, 4
cmp ebx, edi
je 0x40ba4a
push str.OnlyVerifyCertSigner
lea ecx, [ebp - 0x64]
call fcn.00401fd0
push str.EncodePathU8
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 0x12
call fcn.00401fd0
lea edx, [ebp - 0x48]
push edx
lea eax, [ebp - 0xd4]
push eax
mov ecx, esi
mov byte [ebp - 4], 0x13
call fcn.00404950
cmp dword [eax + 0x14], 8
mov byte [ebp - 4], 0x14
jb 0x40b9ea
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x80]
push ecx
call fcn.00420140
add esp, 8
mov edi, eax
lea edx, [ebp - 0x64]
push edx
mov ecx, esi
mov byte [ebp - 4], 0x15
call fcn.00404a50
cmp eax, 1
sete al
movzx ecx, al
push ecx
mov ecx, dword [ebp - 0x158]
lea edx, [ebp - 0xb8]
push edx
push edi
call fcn.0040aee0
lea ecx, [ebp - 0x80]
mov edi, eax
call fcn.0046e6d0
lea ecx, [ebp - 0xd4]
call fcn.0046e6d0
lea ecx, [ebp - 0x48]
call fcn.0046e6d0
lea ecx, [ebp - 0x64]
jmp 0x40bb1b
push str.EncodePath
lea ecx, [ebp - 0x48]
call fcn.00401fd0
lea eax, [ebp - 0x48]
push eax
mov ecx, esi
mov byte [ebp - 4], 0x16
call fcn.00404a50
lea ecx, [ebp - 0x48]
mov ebx, eax
mov byte [ebp - 4], 0x10
call fcn.0046e6d0
push str.OnlyVerifyCertSigner
lea ecx, [ebp - 0x48]
call fcn.00401fd0
cmp ebx, edi
je 0x40bae4
mov eax, dword [ebp - 0x168]
cmp dword [eax + 0x14], 8
mov byte [ebp - 4], 0x17
jb 0x40ba97
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0xd4]
push ecx
call fcn.00420000
add esp, 8
mov edi, eax
lea edx, [ebp - 0x48]
push edx
mov ecx, esi
mov byte [ebp - 4], 0x18
call fcn.00404a50
cmp eax, 1
sete al
movzx ecx, al
push ecx
mov ecx, dword [ebp - 0x158]
lea edx, [ebp - 0xb8]
push edx
push edi
call fcn.0040aee0
lea ecx, [ebp - 0xd4]
mov edi, eax
call fcn.0046e6d0
jmp 0x40bb18
mov edi, dword [ebp - 0x168]
lea eax, [ebp - 0x48]
push eax
mov ecx, esi
mov byte [ebp - 4], 0x19
call fcn.00404a50
cmp eax, 1
sete cl
movzx edx, cl
mov ecx, dword [ebp - 0x158]
push edx
lea eax, [ebp - 0xb8]
push eax
push edi
call fcn.0040aee0
mov edi, eax
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 0x10
call fcn.0046e6d0
test di, di
je 0x40bb51
lea ecx, [ebp - 0xb8]
call fcn.0046e6d0
lea ecx, [ebp - 0x9c]
call fcn.0046e6d0
lea ecx, [ebp - 0x168]
call fcn.00402a70
mov eax, edi
jmp 0x40bc68
mov edi, dword [ebp - 0x168]
add edi, 0x1c
cmp edi, dword [ebp - 0x164]
je 0x40bbc2
mov ebx, dword [ebp - 0x158]
mov edx, dword [ebp - 0x158]
cmp dword [edx + 0x2c], 0
je 0x40bb83
push 1
push 0x54b7d4
lea ecx, [ebx + 0x1c]
call fcn.004044f0
lea eax, [ebp - 0x48]
push edi
push eax
call fcn.0041a8b0
add esp, 8
push 0xffffffffffffffff
push 0
push eax
lea ecx, [ebx + 0x1c]
mov byte [ebp - 4], 0x1a
call fcn.004043e0
cmp dword [ebp - 0x34], 8
mov byte [ebp - 4], 0x10
jb 0x40bbb7
mov ecx, dword [ebp - 0x48]
push ecx
call fcn.00480102
add esp, 4
add edi, 0x1c
cmp edi, dword [ebp - 0x164]
jne 0x40bb68
mov ecx, dword [ebp - 0x158]
push esi
call fcn.00409590
mov edi, 8
cmp dword [ebp - 0xa4], edi
jb 0x40bbea
mov edx, dword [ebp - 0xb8]
push edx
call fcn.00480102
add esp, 4
xor esi, esi
xor eax, eax
mov ebx, 7
mov dword [ebp - 0xa4], ebx
mov dword [ebp - 0xa8], esi
mov word [ebp - 0xb8], ax
cmp dword [ebp - 0x88], edi
jb 0x40bc1d
mov ecx, dword [ebp - 0x9c]
push ecx
call fcn.00480102
add esp, 4
mov eax, dword [ebp - 0x168]
xor edx, edx
mov dword [ebp - 0x88], ebx
mov dword [ebp - 0x8c], esi
mov word [ebp - 0x9c], dx
cmp eax, esi
je 0x40bc66
mov ecx, dword [ebp - 0x154]
push ecx
mov ecx, dword [ebp - 0x164]
lea edx, [ebp - 0x15c]
push edx
push ecx
push eax
call fcn.004025e0
mov edx, dword [ebp - 0x168]
push edx
call fcn.00480102
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.00480264
mov esp, ebp
pop ebp
ret 4