Function at 0x40b570
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x507220
mov eax, dword fs:[0]
push eax
sub esp, 0x15c
mov eax, dword [0x547770]
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.00407190
mov eax, dword [ebp - 0x168]
mov ecx, dword [ebp - 0x164]
mov dword [ebp - 4], edi
cmp eax, ecx
jne 0x40b602
cmp eax, edi
je 0x40b5f8
mov edx, dword [ebp - 0x154]
push edx
lea edx, [ebp - 0x15c]
push edx
push ecx
push eax
call fcn.00402e20
mov eax, dword [ebp - 0x168]
push eax
call fcn.004b9d66
add esp, 0x14
mov eax, 2
jmp 0x40bd68
xor ecx, ecx
push 3
mov word [ebp - 0x2c], cx
push 0x5118a4
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], edi
call fcn.004021e0
lea edx, [ebp - 0x2c]
push edx
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.00404e20
mov ebx, 8
mov dword [ebp - 0x154], eax
mov byte [ebp - 4], 0
cmp dword [ebp - 0x18], ebx
jb 0x40b650
mov eax, dword [ebp - 0x2c]
push eax
call fcn.004b9d66
add esp, 4
cmp dword [ebp - 0x154], edi
je 0x40b68c
call fcn.00401b20
mov ecx, eax
call fcn.00401b80
mov ecx, eax
call fcn.00414c50
mov dword [ebp - 0x154], eax
test ax, ax
je 0x40b68c
lea ecx, [ebp - 0x168]
call fcn.0042f300
mov eax, dword [ebp - 0x154]
jmp 0x40bd68
push 4
xor edx, edx
push 0x51175c
lea ecx, [ebp - 0x64]
mov dword [ebp - 0x50], 7
mov dword [ebp - 0x54], edi
mov word [ebp - 0x64], dx
call fcn.004021e0
lea eax, [ebp - 0x64]
push eax
lea ecx, [ebp - 0x9c]
push ecx
mov ecx, esi
mov byte [ebp - 4], 2
call fcn.00404d20
mov byte [ebp - 4], 4
cmp dword [ebp - 0x50], ebx
jb 0x40b6d6
mov edx, dword [ebp - 0x64]
push edx
call fcn.004b9d66
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.00407aa0
test eax, eax
jne 0x40b8d7
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.004021e0
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x80]
push ecx
mov ecx, esi
mov byte [ebp - 4], 5
call fcn.00404d20
mov byte [ebp - 4], 7
cmp dword [ebp - 0x18], ebx
jb 0x40b747
mov edx, dword [ebp - 0x2c]
push edx
call fcn.004b9d66
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 0x40b762
lea eax, [ebp - 0x80]
push str.Daemon
push eax
call fcn.004baf25
add esp, 8
test eax, eax
jne 0x40b802
call fcn.00401b20
mov ecx, eax
call fcn.00401b80
mov ecx, eax
call fcn.00414ba0
lea ecx, [ebp - 0x9c]
push ecx
mov ecx, dword [ebp - 0x158]
call fcn.00408be0
mov esi, eax
cmp dword [ebp - 0x6c], ebx
jb 0x40b7b0
mov edx, dword [ebp - 0x80]
push edx
call fcn.004b9d66
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 0x40b7d7
mov ecx, dword [ebp - 0x9c]
push ecx
call fcn.004b9d66
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.0042f300
mov eax, esi
jmp 0x40bd68
lea ecx, [ebp - 0x150]
call fcn.00406bb0
mov byte [ebp - 4], 8
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea ecx, [ebp - 0x48]
call fcn.00402890
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x150]
mov byte [ebp - 4], 9
call fcn.00406ee0
mov byte [ebp - 4], 8
cmp dword [ebp - 0x34], ebx
jb 0x40b848
mov ecx, dword [ebp - 0x48]
push ecx
call fcn.004b9d66
add esp, 4
push 0x51175c
lea ecx, [ebp - 0x48]
call fcn.00402890
lea edx, [ebp - 0x48]
push edx
lea ecx, [ebp - 0x150]
mov byte [ebp - 4], 0xa
call fcn.00406650
mov byte [ebp - 4], 8
cmp dword [ebp - 0x34], ebx
jb 0x40b87d
mov eax, dword [ebp - 0x48]
push eax
call fcn.004b9d66
add esp, 4
lea ecx, [ebp - 0x64]
push ecx
lea ecx, [ebp - 0x150]
call fcn.00407540
lea edx, [ebp - 0x9c]
push edx
push eax
mov byte [ebp - 4], 0xb
call fcn.004092e0
add esp, 8
mov esi, eax
cmp dword [ebp - 0x50], ebx
jb 0x40b8b3
mov eax, dword [ebp - 0x64]
push eax
call fcn.004b9d66
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.00406530
jmp 0x40b79f
push 9
xor eax, eax
push 0x511744
lea ecx, [ebp - 0x80]
mov dword [ebp - 0x6c], 7
mov dword [ebp - 0x70], edi
mov word [ebp - 0x80], ax
call fcn.004021e0
lea ecx, [ebp - 0x80]
push ecx
mov ebx, 1
mov ecx, esi
mov byte [ebp - 4], 0xc
mov dword [ebp - 0x154], ebx
call fcn.00404e20
test eax, eax
je 0x40b955
push 0x511744
lea ecx, [ebp - 0x2c]
call fcn.00402890
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.00404d20
mov ebx, 7
mov dword [ebp - 0x154], 1
cmp dword [eax + 0x10], edi
je 0x40b95b
mov dword [ebp - 0x154], edi
test bl, 4
je 0x40b985
and ebx, 0xfffffffb
cmp dword [ebp - 0x34], 8
jb 0x40b975
mov ecx, dword [ebp - 0x48]
push ecx
call fcn.004b9d66
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 0x40b9af
and ebx, 0xfffffffd
cmp dword [ebp - 0x18], 8
jb 0x40b99f
mov eax, dword [ebp - 0x2c]
push eax
call fcn.004b9d66
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 0x40b9cd
cmp dword [ebp - 0x6c], 8
jb 0x40b9cd
mov edx, dword [ebp - 0x80]
push edx
call fcn.004b9d66
add esp, 4
cmp dword [ebp - 0x154], edi
je 0x40ba04
mov ecx, dword [ebp - 0x158]
call fcn.00408800
test eax, eax
je 0x40ba04
lea ecx, [ebp - 0x9c]
call fcn.00413a70
lea ecx, [ebp - 0x168]
call fcn.0042f300
mov eax, 0x11
jmp 0x40bd68
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.004021e0
lea ecx, [ebp - 0x2c]
push ecx
lea edx, [ebp - 0xb8]
push edx
mov ecx, esi
mov byte [ebp - 4], 0xe
call fcn.00404d20
cmp dword [ebp - 0x18], 8
mov byte [ebp - 4], 0x10
jb 0x40ba4f
mov eax, dword [ebp - 0x2c]
push eax
call fcn.004b9d66
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.004021e0
lea eax, [ebp - 0x64]
push eax
mov ecx, esi
mov byte [ebp - 4], 0x11
call fcn.00404e20
cmp dword [ebp - 0x50], 8
mov ebx, eax
mov byte [ebp - 4], 0x10
jb 0x40baa2
mov ecx, dword [ebp - 0x64]
push ecx
call fcn.004b9d66
add esp, 4
cmp ebx, edi
je 0x40bb4a
push str.OnlyVerifyCertSigner
lea ecx, [ebp - 0x64]
call fcn.00402890
push str.EncodePathU8
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 0x12
call fcn.00402890
lea edx, [ebp - 0x48]
push edx
lea eax, [ebp - 0xd4]
push eax
mov ecx, esi
mov byte [ebp - 4], 0x13
call fcn.00404d20
cmp dword [eax + 0x14], 8
mov byte [ebp - 4], 0x14
jb 0x40baea
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x80]
push ecx
call fcn.004198f0
add esp, 8
mov edi, eax
lea edx, [ebp - 0x64]
push edx
mov ecx, esi
mov byte [ebp - 4], 0x15
call fcn.00404e20
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.0040af50
lea ecx, [ebp - 0x80]
mov edi, eax
call fcn.00413a70
lea ecx, [ebp - 0xd4]
call fcn.00413a70
lea ecx, [ebp - 0x48]
call fcn.00413a70
lea ecx, [ebp - 0x64]
jmp 0x40bc1b
push str.EncodePath
lea ecx, [ebp - 0x48]
call fcn.00402890
lea eax, [ebp - 0x48]
push eax
mov ecx, esi
mov byte [ebp - 4], 0x16
call fcn.00404e20
lea ecx, [ebp - 0x48]
mov ebx, eax
mov byte [ebp - 4], 0x10
call fcn.00413a70
push str.OnlyVerifyCertSigner
lea ecx, [ebp - 0x48]
call fcn.00402890
cmp ebx, edi
je 0x40bbe4
mov eax, dword [ebp - 0x168]
cmp dword [eax + 0x14], 8
mov byte [ebp - 4], 0x17
jb 0x40bb97
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0xd4]
push ecx
call fcn.004197b0
add esp, 8
mov edi, eax
lea edx, [ebp - 0x48]
push edx
mov ecx, esi
mov byte [ebp - 4], 0x18
call fcn.00404e20
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.0040af50
lea ecx, [ebp - 0xd4]
mov edi, eax
call fcn.00413a70
jmp 0x40bc18
mov edi, dword [ebp - 0x168]
lea eax, [ebp - 0x48]
push eax
mov ecx, esi
mov byte [ebp - 4], 0x19
call fcn.00404e20
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.0040af50
mov edi, eax
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 0x10
call fcn.00413a70
test di, di
je 0x40bc51
lea ecx, [ebp - 0xb8]
call fcn.00413a70
lea ecx, [ebp - 0x9c]
call fcn.00413a70
lea ecx, [ebp - 0x168]
call fcn.0042f300
mov eax, edi
jmp 0x40bd68
mov edi, dword [ebp - 0x168]
add edi, 0x1c
cmp edi, dword [ebp - 0x164]
je 0x40bcc2
mov ebx, dword [ebp - 0x158]
mov edx, dword [ebp - 0x158]
cmp dword [edx + 0x2c], 0
je 0x40bc83
push 1
push 0x5116b8
lea ecx, [ebx + 0x1c]
call fcn.00401600
lea eax, [ebp - 0x48]
push edi
push eax
call fcn.00416e90
add esp, 8
push 0xffffffffffffffff
push 0
push eax
lea ecx, [ebx + 0x1c]
mov byte [ebp - 4], 0x1a
call fcn.004013f0
cmp dword [ebp - 0x34], 8
mov byte [ebp - 4], 0x10
jb 0x40bcb7
mov ecx, dword [ebp - 0x48]
push ecx
call fcn.004b9d66
add esp, 4
add edi, 0x1c
cmp edi, dword [ebp - 0x164]
jne 0x40bc68
mov ecx, dword [ebp - 0x158]
push esi
call fcn.00409670
mov edi, 8
cmp dword [ebp - 0xa4], edi
jb 0x40bcea
mov edx, dword [ebp - 0xb8]
push edx
call fcn.004b9d66
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 0x40bd1d
mov ecx, dword [ebp - 0x9c]
push ecx
call fcn.004b9d66
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 0x40bd66
mov ecx, dword [ebp - 0x154]
push ecx
mov ecx, dword [ebp - 0x164]
lea edx, [ebp - 0x15c]
push edx
push ecx
push eax
call fcn.00402e20
mov edx, dword [ebp - 0x168]
push edx
call fcn.004b9d66
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.004ba901
mov esp, ebp
pop ebp
ret 4