Function at 0x421f5b
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x512272
mov eax, dword fs:[0]
push eax
sub esp, 0x15c
mov eax, dword [section..data]
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.0041a845
mov eax, dword [ebp - 0x168]
mov ecx, dword [ebp - 0x164]
mov dword [ebp - 4], edi
cmp eax, ecx
jne 0x421fed
cmp eax, edi
je 0x421fe3
mov edx, dword [ebp - 0x154]
push edx
lea edx, [ebp - 0x15c]
push edx
push ecx
push eax
call fcn.00407612
mov eax, dword [ebp - 0x168]
push eax
call fcn.00404f7d
add esp, 0x14
mov eax, 2
jmp 0x422753
xor ecx, ecx
push 3
mov word [ebp - 0x2c], cx
push 0x529920
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], edi
call fcn.0040392d
lea edx, [ebp - 0x2c]
push edx
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.00407bd5
mov ebx, 8
mov dword [ebp - 0x154], eax
mov byte [ebp - 4], 0
cmp dword [ebp - 0x18], ebx
jb 0x42203b
mov eax, dword [ebp - 0x2c]
push eax
call fcn.00404f7d
add esp, 4
cmp dword [ebp - 0x154], edi
je 0x422077
call fcn.00406b32
mov ecx, eax
call fcn.0042d84c
mov ecx, eax
call fcn.0042a5e4
mov dword [ebp - 0x154], eax
test ax, ax
je 0x422077
lea ecx, [ebp - 0x168]
call fcn.0040f4e6
mov eax, dword [ebp - 0x154]
jmp 0x422753
push 4
xor edx, edx
push 0x5297d8
lea ecx, [ebp - 0x64]
mov dword [ebp - 0x50], 7
mov dword [ebp - 0x54], edi
mov word [ebp - 0x64], dx
call fcn.0040392d
lea eax, [ebp - 0x64]
push eax
lea ecx, [ebp - 0x9c]
push ecx
mov ecx, esi
mov byte [ebp - 4], 2
call fcn.0041da04
mov byte [ebp - 4], 4
cmp dword [ebp - 0x50], ebx
jb 0x4220c1
mov edx, dword [ebp - 0x64]
push edx
call fcn.00404f7d
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.0041e982
test eax, eax
jne 0x4222c2
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.0040392d
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x80]
push ecx
mov ecx, esi
mov byte [ebp - 4], 5
call fcn.0041da04
mov byte [ebp - 4], 7
cmp dword [ebp - 0x18], ebx
jb 0x422132
mov edx, dword [ebp - 0x2c]
push edx
call fcn.00404f7d
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 0x42214d
lea eax, [ebp - 0x80]
push str.Daemon
push eax
call fcn.0040786d
add esp, 8
test eax, eax
jne 0x4221ed
call fcn.00406b32
mov ecx, eax
call fcn.0042d84c
mov ecx, eax
call fcn.0042a535
lea ecx, [ebp - 0x9c]
push ecx
mov ecx, dword [ebp - 0x158]
call fcn.0041f7d4
mov esi, eax
cmp dword [ebp - 0x6c], ebx
jb 0x42219b
mov edx, dword [ebp - 0x80]
push edx
call fcn.00404f7d
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 0x4221c2
mov ecx, dword [ebp - 0x9c]
push ecx
call fcn.00404f7d
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.0040f4e6
mov eax, esi
jmp 0x422753
lea ecx, [ebp - 0x150]
call fcn.004065af
mov byte [ebp - 4], 8
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea ecx, [ebp - 0x48]
call fcn.0040bc49
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x150]
mov byte [ebp - 4], 9
call fcn.00406d88
mov byte [ebp - 4], 8
cmp dword [ebp - 0x34], ebx
jb 0x422233
mov ecx, dword [ebp - 0x48]
push ecx
call fcn.00404f7d
add esp, 4
push 0x5297d8
lea ecx, [ebp - 0x48]
call fcn.0040bc49
lea edx, [ebp - 0x48]
push edx
lea ecx, [ebp - 0x150]
mov byte [ebp - 4], 0xa
call fcn.0041e01d
mov byte [ebp - 4], 8
cmp dword [ebp - 0x34], ebx
jb 0x422268
mov eax, dword [ebp - 0x48]
push eax
call fcn.00404f7d
add esp, 4
lea ecx, [ebp - 0x64]
push ecx
lea ecx, [ebp - 0x150]
call fcn.0041e58c
lea edx, [ebp - 0x9c]
push edx
push eax
mov byte [ebp - 4], 0xb
call fcn.0041fd6f
add esp, 8
mov esi, eax
cmp dword [ebp - 0x50], ebx
jb 0x42229e
mov eax, dword [ebp - 0x64]
push eax
call fcn.00404f7d
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.0041aabd
jmp 0x42218a
push 9
xor eax, eax
push 0x5297c0
lea ecx, [ebp - 0x80]
mov dword [ebp - 0x6c], 7
mov dword [ebp - 0x70], edi
mov word [ebp - 0x80], ax
call fcn.0040392d
lea ecx, [ebp - 0x80]
push ecx
mov ebx, 1
mov ecx, esi
mov byte [ebp - 4], 0xc
mov dword [ebp - 0x154], ebx
call fcn.00407bd5
test eax, eax
je 0x422340
push 0x5297c0
lea ecx, [ebp - 0x2c]
call fcn.0040bc49
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.0041da04
mov ebx, 7
mov dword [ebp - 0x154], 1
cmp dword [eax + 0x10], edi
je 0x422346
mov dword [ebp - 0x154], edi
test bl, 4
je 0x422370
and ebx, 0xfffffffb
cmp dword [ebp - 0x34], 8
jb 0x422360
mov ecx, dword [ebp - 0x48]
push ecx
call fcn.00404f7d
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 0x42239a
and ebx, 0xfffffffd
cmp dword [ebp - 0x18], 8
jb 0x42238a
mov eax, dword [ebp - 0x2c]
push eax
call fcn.00404f7d
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 0x4223b8
cmp dword [ebp - 0x6c], 8
jb 0x4223b8
mov edx, dword [ebp - 0x80]
push edx
call fcn.00404f7d
add esp, 4
cmp dword [ebp - 0x154], edi
je 0x4223ef
mov ecx, dword [ebp - 0x158]
call fcn.0041f401
test eax, eax
je 0x4223ef
lea ecx, [ebp - 0x9c]
call fcn.0040dcc2
lea ecx, [ebp - 0x168]
call fcn.0040f4e6
mov eax, 0x11
jmp 0x422753
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.0040392d
lea ecx, [ebp - 0x2c]
push ecx
lea edx, [ebp - 0xb8]
push edx
mov ecx, esi
mov byte [ebp - 4], 0xe
call fcn.0041da04
cmp dword [ebp - 0x18], 8
mov byte [ebp - 4], 0x10
jb 0x42243a
mov eax, dword [ebp - 0x2c]
push eax
call fcn.00404f7d
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.0040392d
lea eax, [ebp - 0x64]
push eax
mov ecx, esi
mov byte [ebp - 4], 0x11
call fcn.00407bd5
cmp dword [ebp - 0x50], 8
mov ebx, eax
mov byte [ebp - 4], 0x10
jb 0x42248d
mov ecx, dword [ebp - 0x64]
push ecx
call fcn.00404f7d
add esp, 4
cmp ebx, edi
je 0x422535
push str.OnlyVerifyCertSigner
lea ecx, [ebp - 0x64]
call fcn.0040bc49
push str.EncodePathU8
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 0x12
call fcn.0040bc49
lea edx, [ebp - 0x48]
push edx
lea eax, [ebp - 0xd4]
push eax
mov ecx, esi
mov byte [ebp - 4], 0x13
call fcn.0041da04
cmp dword [eax + 0x14], 8
mov byte [ebp - 4], 0x14
jb 0x4224d5
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x80]
push ecx
call fcn.0042be24
add esp, 8
mov edi, eax
lea edx, [ebp - 0x64]
push edx
mov ecx, esi
mov byte [ebp - 4], 0x15
call fcn.00407bd5
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.00421943
lea ecx, [ebp - 0x80]
mov edi, eax
call fcn.0040dcc2
lea ecx, [ebp - 0xd4]
call fcn.0040dcc2
lea ecx, [ebp - 0x48]
call fcn.0040dcc2
lea ecx, [ebp - 0x64]
jmp 0x422606
push str.EncodePath
lea ecx, [ebp - 0x48]
call fcn.0040bc49
lea eax, [ebp - 0x48]
push eax
mov ecx, esi
mov byte [ebp - 4], 0x16
call fcn.00407bd5
lea ecx, [ebp - 0x48]
mov ebx, eax
mov byte [ebp - 4], 0x10
call fcn.0040dcc2
push str.OnlyVerifyCertSigner
lea ecx, [ebp - 0x48]
call fcn.0040bc49
cmp ebx, edi
je 0x4225cf
mov eax, dword [ebp - 0x168]
cmp dword [eax + 0x14], 8
mov byte [ebp - 4], 0x17
jb 0x422582
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0xd4]
push ecx
call fcn.0042bcef
add esp, 8
mov edi, eax
lea edx, [ebp - 0x48]
push edx
mov ecx, esi
mov byte [ebp - 4], 0x18
call fcn.00407bd5
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.00421943
lea ecx, [ebp - 0xd4]
mov edi, eax
call fcn.0040dcc2
jmp 0x422603
mov edi, dword [ebp - 0x168]
lea eax, [ebp - 0x48]
push eax
mov ecx, esi
mov byte [ebp - 4], 0x19
call fcn.00407bd5
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.00421943
mov edi, eax
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 0x10
call fcn.0040dcc2
test di, di
je 0x42263c
lea ecx, [ebp - 0xb8]
call fcn.0040dcc2
lea ecx, [ebp - 0x9c]
call fcn.0040dcc2
lea ecx, [ebp - 0x168]
call fcn.0040f4e6
mov eax, edi
jmp 0x422753
mov edi, dword [ebp - 0x168]
add edi, 0x1c
cmp edi, dword [ebp - 0x164]
je 0x4226ad
mov ebx, dword [ebp - 0x158]
mov edx, dword [ebp - 0x158]
cmp dword [edx + 0x2c], 0
je 0x42266e
push 1
push 0x5240dc
lea ecx, [ebx + 0x1c]
call fcn.00405221
lea eax, [ebp - 0x48]
push edi
push eax
call fcn.0041a503
add esp, 8
push 0xffffffffffffffff
push 0
push eax
lea ecx, [ebx + 0x1c]
mov byte [ebp - 4], 0x1a
call fcn.0040511f
cmp dword [ebp - 0x34], 8
mov byte [ebp - 4], 0x10
jb 0x4226a2
mov ecx, dword [ebp - 0x48]
push ecx
call fcn.00404f7d
add esp, 4
add edi, 0x1c
cmp edi, dword [ebp - 0x164]
jne 0x422653
mov ecx, dword [ebp - 0x158]
push esi
call fcn.004200ec
mov edi, 8
cmp dword [ebp - 0xa4], edi
jb 0x4226d5
mov edx, dword [ebp - 0xb8]
push edx
call fcn.00404f7d
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 0x422708
mov ecx, dword [ebp - 0x9c]
push ecx
call fcn.00404f7d
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 0x422751
mov ecx, dword [ebp - 0x154]
push ecx
mov ecx, dword [ebp - 0x164]
lea edx, [ebp - 0x15c]
push edx
push ecx
push eax
call fcn.00407612
mov edx, dword [ebp - 0x168]
push edx
call fcn.00404f7d
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.0040330b
mov esp, ebp
pop ebp
ret 4