Function at 0x406e70
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c8b03
mov eax, dword fs:[0]
push eax
sub esp, 0x25c
mov eax, dword [0x50e3e0]
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, ecx
mov dword [ebp - 0x24c], esi
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x264], 0
push esi
push dword [esi + 4]
mov dword [ebp - 0x260], ecx
push dword [esi]
call fcn.00402520
mov eax, dword [esi]
add esp, 0xc
mov dword [esi + 4], eax
lea eax, [esi + 0x10]
mov dword [esi + 0xc], 0
mov dword [eax + 0x10], 0
cmp dword [eax + 0x14], 8
jb 0x406ee5
mov eax, dword [eax]
xor ecx, ecx
lea ebx, [esi + 0x28]
mov word [eax], cx
mov eax, ebx
mov dword [ebx + 0x10], ecx
cmp dword [ebx + 0x14], 8
mov dword [ebp - 0x250], ebx
jb 0x406f00
mov eax, dword [ebx]
xor ecx, ecx
lea edi, [esi + 0x44]
mov word [eax], cx
mov dword [esi + 0x40], ecx
mov ecx, edi
mov esi, dword [edi]
push dword [esi + 4]
push edi
call fcn.004055f0
mov ecx, dword [ebp - 0x24c]
add ecx, 0x4c
mov dword [esi + 4], esi
mov dword [esi], esi
mov eax, ecx
mov dword [esi + 8], esi
mov dword [edi + 4], 0
mov dword [ecx + 0x10], 0
cmp dword [ecx + 0x14], 8
mov dword [ebp - 0x268], ecx
jb 0x406f47
mov eax, dword [ecx]
xor ecx, ecx
mov word [eax], cx
mov ecx, dword [ebp - 0x260]
cmp dword [ecx + 0x10], 0
je 0x4077e6
xor eax, eax
mov dword [ebp - 4], 0
xor edi, edi
mov dword [ebp - 0x258], eax
xor esi, esi
mov dword [ebp - 0x234], eax
cmp dword [ecx + 0x14], 8
mov dword [ebp - 0x254], eax
mov eax, ecx
mov dword [ebp - 0x23c], edi
mov dword [ebp - 0x238], esi
mov dword [ebp - 0x264], 1
jb 0x406f9b
mov eax, dword [ecx]
lea ecx, [ebp - 0x254]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov dword [ebp - 0x25c], eax
test eax, eax
je 0x407105
xor ebx, ebx
cmp dword [ebp - 0x254], ebx
jle 0x4070f8
mov edx, dword [eax + ebx*4]
test edx, edx
je 0x4070e5
mov ecx, edx
mov dword [ebp - 0x220], 0
xor eax, eax
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x406ff2
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x230]
call fcn.00408290
mov byte [ebp - 4], 1
cmp esi, dword [ebp - 0x258]
je 0x407076
mov eax, dword [ebp - 0x230]
mov edx, 7
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi], eax
mov eax, dword [ebp - 0x22c]
mov dword [esi + 4], eax
mov eax, dword [ebp - 0x228]
mov dword [esi + 8], eax
mov eax, dword [ebp - 0x224]
mov dword [esi + 0xc], eax
mov eax, dword [ebp - 0x220]
mov dword [esi + 0x10], eax
mov eax, dword [ebp - 0x21c]
mov dword [esi + 0x14], eax
xor eax, eax
add esi, 0x18
mov word [ebp - 0x230], ax
mov dword [ebp - 0x238], esi
jmp 0x4070a1
lea eax, [ebp - 0x230]
push eax
push esi
lea ecx, [ebp - 0x23c]
call fcn.00402590
mov eax, dword [ebp - 0x234]
mov esi, dword [ebp - 0x238]
mov edx, dword [ebp - 0x21c]
mov dword [ebp - 0x258], eax
mov byte [ebp - 4], 0
cmp edx, 8
jb 0x4070df
mov ecx, dword [ebp - 0x230]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4070d5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407806
push edx
push ecx
call fcn.0048d64e
add esp, 8
mov eax, dword [ebp - 0x25c]
inc ebx
cmp ebx, dword [ebp - 0x254]
jl 0x406fc5
mov edi, dword [ebp - 0x23c]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ebx, dword [ebp - 0x250]
mov eax, dword [ebp - 0x24c]
lea ecx, [ebp - 0x23c]
cmp eax, ecx
je 0x40713a
mov ecx, eax
call fcn.00402ac0
mov eax, dword [ebp - 0x24c]
mov ecx, dword [ebp - 0x258]
mov dword [eax], edi
xor edi, edi
mov dword [eax + 4], esi
xor esi, esi
mov dword [eax + 8], ecx
mov dword [ebp - 0x258], esi
mov dword [ebp - 4], 0xffffffff
test edi, edi
je 0x40719d
lea eax, [ebp - 0x23c]
push eax
push esi
push edi
call fcn.00402520
mov ecx, dword [ebp - 0x258]
mov eax, 0x2aaaaaab
sub ecx, edi
add esp, 0xc
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [eax + eax*2]
mov eax, edi
shl ecx, 3
cmp ecx, 0x1000
jb 0x407193
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407815
push ecx
push edi
call fcn.0048d64e
add esp, 8
mov edi, dword [ebp - 0x24c]
mov eax, 0x2aaaaaab
mov ecx, dword [edi + 4]
mov esi, dword [edi]
sub ecx, esi
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x40724e
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x4071cb
mov eax, dword [esi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsRelativeW]
test eax, eax
je 0x40722b
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.0048fe50
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x407210
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
lea ecx, [edi + 0x10]
jmp 0x40723f
lea ecx, [edi + 0x10]
cmp ecx, esi
je 0x407245
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x40723c
mov eax, dword [esi]
push dword [esi + 0x10]
push eax
call fcn.00408290
mov dword [edi + 0x40], 1
mov esi, dword [edi]
mov ecx, dword [edi + 4]
mov eax, 0x2aaaaaab
sub ecx, esi
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 2
jb 0x4077e6
add esi, 0x18
cmp ebx, esi
je 0x407289
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x40727e
mov eax, dword [esi]
push dword [esi + 0x10]
mov ecx, ebx
push eax
call fcn.00408290
cmp dword [ebx + 0x14], 8
jb 0x407291
mov ebx, dword [ebx]
push str.LocalService
push ebx
call fcn.00412b90
add esp, 8
test eax, eax
jne 0x4072ad
mov eax, 1
jmp 0x407361
push str.InstallService
push ebx
call fcn.00412b90
add esp, 8
test eax, eax
jne 0x4072c9
mov eax, 2
jmp 0x407361
push str.UninstallService
push ebx
call fcn.00412b90
add esp, 8
test eax, eax
jne 0x4072e5
mov eax, 3
jmp 0x407361
push str.RepairService
push ebx
call fcn.00412b90
add esp, 8
test eax, eax
jne 0x4072fe
mov eax, 4
jmp 0x407361
push str.CheckService
push ebx
call fcn.00412b90
add esp, 8
test eax, eax
jne 0x407317
mov eax, 5
jmp 0x407361
push str.Stop
push ebx
call fcn.00412b90
add esp, 8
test eax, eax
jne 0x407330
mov eax, 6
jmp 0x407361
push 0x4d77b0
push ebx
call fcn.00412b90
add esp, 8
test eax, eax
jne 0x407349
mov eax, 7
jmp 0x407361
push str.UpdateService
push ebx
call fcn.00412b90
add esp, 8
neg eax
sbb eax, eax
and eax, 0xfffffff8
add eax, 8
mov dword [edi + 0xc], eax
mov eax, 0x2aaaaaab
mov dword [edi + 0x40], 2
mov esi, dword [edi + 4]
mov ecx, esi
mov ebx, dword [edi]
sub ecx, ebx
imul ecx
mov edi, 2
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, edi
jbe 0x407457
mov ecx, ebx
mov eax, edi
mov dword [ebp - 0x254], esi
lea eax, [eax + eax*2]
lea esi, [ecx + eax*8]
mov ecx, dword [esi + 0x10]
cmp ecx, 2
jb 0x407451
mov ebx, dword [esi + 0x14]
mov eax, esi
cmp ebx, 8
jb 0x4073ba
mov eax, dword [esi]
cmp word [eax], 0x2f
jne 0x4073f8
mov eax, esi
cmp ebx, 8
jb 0x4073c9
mov eax, dword [esi]
lea edi, [eax + ecx*2]
mov ecx, esi
jb 0x4073d2
mov ecx, dword [esi]
xor edx, edx
cmp ecx, edi
je 0x4073f8
jmp 0x4073e0
cmp word [ecx], 0x2f
lea eax, [edx + 1]
cmovne eax, edx
add ecx, 2
mov edx, eax
cmp ecx, edi
jne 0x4073e0
cmp edx, 1
je 0x407407
mov eax, esi
cmp ebx, 8
jb 0x407401
mov eax, dword [esi]
cmp word [eax], 0x2d
jne 0x407441
mov ebx, dword [ebp - 0x24c]
mov ecx, ebx
push esi
call fcn.00406950
mov edi, dword [ebx + 0x40]
mov eax, 0x2aaaaaab
inc edi
mov dword [ebx + 0x40], edi
mov esi, dword [ebx + 4]
mov ecx, esi
mov ebx, dword [ebx]
sub ecx, ebx
imul ecx
mov ecx, ebx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jae 0x407457
jmp 0x407394
mov eax, dword [ebp - 0x24c]
mov esi, dword [eax + 4]
mov ebx, dword [eax]
mov edi, dword [eax + 0x40]
jmp 0x407457
mov esi, dword [ebp - 0x254]
sub esi, ebx
mov eax, 0x2aaaaaab
imul esi
or esi, 0xffffffff
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jae 0x40767f
lea eax, [edi + edi*2]
cmp dword [ebx + eax*8 + 0x14], 8
lea edi, [ebx + eax*8]
mov ecx, edi
jb 0x407486
mov ecx, dword [edi]
mov ebx, dword [edi + 0x10]
test ebx, ebx
je 0x4074e8
lea eax, [ebx - 1]
mov edx, esi
cmp eax, 0xffffffff
cmovb edx, eax
add edx, edx
cmp word [edx + ecx], 0x2e
lea eax, [edx + ecx]
je 0x4074b1
cmp eax, ecx
je 0x4074e8
sub eax, 2
cmp word [eax], 0x2e
jne 0x4074a4
sub eax, ecx
sar eax, 1
cmp eax, 0xffffffff
je 0x4074e8
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x4074c4
mov eax, dword [edi]
add edx, eax
cmp word [edx], 0x2e
je 0x4074dd
lea esp, [esp]
cmp edx, eax
je 0x4074e3
sub edx, 2
cmp word [edx], 0x2e
jne 0x4074d0
sub edx, eax
sar edx, 1
jmp 0x4074ea
or edx, 0xffffffff
jmp 0x4074ea
xor edx, edx
lea eax, [ebx - 1]
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x250], eax
xor eax, eax
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
cmp ebx, edx
jb 0x40780b
mov eax, ebx
mov ecx, 1
sub eax, edx
cmp eax, dword [ebp - 0x250]
cmovb ecx, edx
sub ebx, ecx
cmp dword [edi + 0x14], 8
jb 0x407534
mov edi, dword [edi]
push ebx
lea eax, [edi + edx*2]
push eax
lea ecx, [ebp - 0x230]
call fcn.00408290
cmp dword [ebp - 0x21c], 8
lea edi, [ebp - 0x230]
mov ebx, dword [ebp - 0x230]
mov ecx, 4
mov eax, dword [ebp - 0x220]
cmovae edi, ebx
cmp eax, ecx
mov dword [ebp - 4], 2
mov edx, eax
cmova edx, ecx
mov ecx, 0x4d7710
test edx, edx
je 0x40759b
sub edi, ecx
mov edi, edi
mov ax, word [ecx + edi]
cmp ax, word [ecx]
jne 0x407633
add ecx, 2
sub edx, 1
jne 0x407580
mov eax, dword [ebp - 0x220]
cmp eax, 4
jb 0x407633
ja 0x407633
push 4
xor eax, eax
mov dword [ebp - 0x238], 0
push str._Exe
lea ecx, [ebp - 0x248]
mov dword [ebp - 0x234], 7
mov word [ebp - 0x248], ax
call fcn.00408290
mov ecx, dword [ebp - 0x24c]
lea eax, [ebp - 0x248]
push eax
mov byte [ebp - 4], 3
call fcn.00406950
mov edx, dword [ebp - 0x234]
mov byte [ebp - 4], 2
cmp edx, 8
jb 0x407633
mov ecx, dword [ebp - 0x248]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x407629
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407806
push edx
push ecx
call fcn.0048d64e
add esp, 8
mov eax, dword [ebp - 0x21c]
mov dword [ebp - 4], 0xffffffff
cmp eax, 8
jb 0x407674
lea ecx, [eax*2 + 2]
mov eax, ebx
cmp ecx, 0x1000
jb 0x40766a
mov ebx, dword [ebx - 4]
add ecx, 0x23
sub eax, ebx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407815
push ecx
push ebx
call fcn.0048d64e
add esp, 8
mov eax, dword [ebp - 0x24c]
mov edi, dword [eax + 0x40]
mov ebx, dword [eax]
lea eax, [edi + edi*2]
cmp dword [ebx + eax*8 - 4], 8
lea eax, [ebx + eax*8]
mov dword [ebp - 0x250], eax
lea edx, [eax - 0x18]
jb 0x407698
mov edx, dword [eax - 0x18]
mov edi, dword [ebp - 0x260]
mov ecx, edi
mov ebx, dword [edi + 0x14]
cmp ebx, 8
jb 0x4076aa
mov ecx, dword [edi]
push dword [eax - 8]
mov edi, dword [edi + 0x10]
push edx
push 0
push edi
push ecx
call fcn.00405710
mov ecx, dword [ebp - 0x250]
add esp, 0x14
mov ecx, dword [ecx - 8]
inc ecx
add eax, ecx
cmp eax, edi
ja 0x4077df
xor ecx, ecx
mov dword [ebp - 0x21c], 7
sub edi, eax
mov word [ebp - 0x230], cx
mov ecx, dword [ebp - 0x260]
cmp edi, 0xffffffff
cmovb esi, edi
mov dword [ebp - 0x250], esi
cmp ebx, 8
jb 0x4076ff
mov ecx, dword [ecx]
lea ebx, [ecx + eax*2]
cmp esi, 7
ja 0x40772c
mov dword [ebp - 0x220], esi
lea eax, [ebp - 0x230]
add esi, esi
push esi
push ebx
push eax
call fcn.0048f8d0
add esp, 0xc
xor eax, eax
mov word [ebp + esi - 0x230], ax
jmp 0x407791
cmp esi, 0x7ffffffe
ja 0x407810
or esi, 7
cmp esi, 0x7ffffffe
jbe 0x40774a
mov esi, 0x7ffffffe
jmp 0x407754
mov eax, 0xa
cmp esi, eax
cmovb esi, eax
lea eax, [esi + 1]
push eax
lea ecx, [ebp - 0x230]
call fcn.00402c70
mov edi, eax
mov dword [ebp - 0x21c], esi
mov eax, dword [ebp - 0x250]
mov dword [ebp - 0x220], eax
lea esi, [eax + eax]
push esi
push ebx
push edi
call fcn.0048f350
add esp, 0xc
mov dword [ebp - 0x230], edi
xor eax, eax
mov word [edi + esi], ax
mov ecx, dword [ebp - 0x268]
lea eax, [ebp - 0x230]
push eax
call fcn.00402b60
mov edx, dword [ebp - 0x21c]
cmp edx, 8
jb 0x4077df
mov ecx, dword [ebp - 0x230]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4077d5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407815
push edx
push ecx
call fcn.0048d64e
add esp, 8
mov eax, 1
jmp 0x4077e8
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.0048d65c
mov esp, ebp
pop ebp
ret 8
call fcn.00498fa9
call fcn.004049b0
call fcn.00402c50
call fcn.00498fa9
int3