Function at 0x40f5f0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x84c
mov eax, dword [0x4e5d60]
xor eax, esp
mov dword [esp + 0x848], eax
push ebx
push esi
push edi
xor ebx, ebx
push 0x40e
lea ecx, [esp + 0x36]
xor eax, eax
push ebx
push ecx
mov dword [esp + 0x1c], ebx
mov word [esp + 0x3c], ax
call fcn.004aaf30
add esp, 0xc
push 0x40e
lea eax, [esp + 0x446]
xor edx, edx
push ebx
push eax
mov word [esp + 0x44c], dx
call fcn.004aaf30
add esp, 0xc
mov dword [esp + 0x24], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x1c], ebx
call fcn.0040f9a0
lea ecx, [esp + 0x10]
push ecx
mov dword [esp + 0x14], ebx
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
cmp dword [esp + 0x10], ebx
mov edi, eax
mov dword [esp + 0x14], edi
jle 0x40f986
cmp edi, ebx
je 0x40f986
push 0x4cf5d8
lea ecx, [esp + 0x1c]
call fcn.0040f300
xor esi, esi
cmp dword [esp + 0x10], ebx
jle 0x40f6e7
mov edx, dword [edi + esi*4]
cmp edx, ebx
jne 0x40f6ad
xor eax, eax
jmp 0x40f6c5
mov eax, edx
lea edi, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x40f6b2
sub eax, edi
mov edi, dword [esp + 0x14]
sar eax, 1
push eax
push edx
lea ecx, [esp + 0x20]
call fcn.0040d7e0
push 1
push 0x4cf390
lea ecx, [esp + 0x20]
call fcn.0040d7e0
inc esi
cmp esi, dword [esp + 0x10]
jl 0x40f6a2
push 0x207
lea esi, [esp + 0x34]
mov ebx, str.szAppType
mov ecx, str.SoftwareBkav_CorporationHomeVN
mov edx, reloc.OLEAUT32.dll_SysReAllocString
call fcn.004108e0
add esp, 4
test eax, eax
jne 0x40f720
push 0x4cf604
mov edx, esi
push 0x208
push edx
call fcn.004a8254
add esp, 0xc
mov edi, str.Setup
lea esi, [esp + 0x30]
call fcn.0040fb50
mov ebx, 2
cmp dword [esp + 0x10], ebx
jge 0x40f75f
mov edi, str.RunUrl
call fcn.0040fb50
mov eax, dword [0x4eb628]
lea eax, [eax + eax*4]
mov ecx, dword [eax*8 + 0x4d2f14]
push ecx
call fcn.00412a30
add esp, 4
cmp dword [esp + 0x10], ebx
jne 0x40f95c
mov esi, dword [esp + 0x14]
mov edx, dword [esi + 4]
push 0xa
push str._Desktop
push edx
call fcn.004a8401
add esp, 0xc
test eax, eax
jne 0x40f791
mov eax, dword [0x4eb628]
lea eax, [eax + eax*4]
mov ecx, dword [eax*8 + 0x4d2f14]
jmp 0x40f7df
mov edx, dword [esi + 4]
push 0xa
push str._Startmenu
push edx
call fcn.004a8401
add esp, 0xc
test eax, eax
jne 0x40f7b9
mov eax, dword [0x4eb628]
lea eax, [eax + eax*4]
mov ecx, dword [eax*8 + 0x4d2f20]
jmp 0x40f7df
mov edx, dword [esi + 4]
push 0xa
push str._Taskbar
push edx
call fcn.004a8401
add esp, 0xc
test eax, eax
jne 0x40f7e8
mov eax, dword [0x4eb628]
lea eax, [eax + eax*4]
mov ecx, dword [eax*8 + 0x4d2f1c]
push ecx
call fcn.00412a30
add esp, 4
mov edx, dword [esi + 4]
push 0xa
push str._InstallSC
push edx
call fcn.004a8401
add esp, 0xc
test eax, eax
jne 0x40f920
push 0x4cf374
lea ecx, [esp + 0x2c]
call fcn.0040f300
call fcn.004990cf
test eax, eax
jne 0x40f824
push 0x80004005
call fcn.0040f160
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
mov esi, eax
add esi, 0x10
lea ebx, [esp + 0x20]
mov edi, str.Deactivate
mov dword [esp + 0x2c], esi
call fcn.004109a0
test eax, eax
je 0x40f853
cmp dword [esp + 0x20], 0
jne 0x40f8e0
lea ebx, [esp + 0x24]
mov edi, str.dwUpdate
call fcn.004109a0
test eax, eax
je 0x40f880
cmp dword [esp + 0x24], 0
je 0x40f880
push str.Attach
push 0x208
lea ecx, [esp + 0x448]
push ecx
jmp 0x40f892
push str.Setup
push 0x208
lea edx, [esp + 0x448]
push edx
call fcn.004a8254
add esp, 0xc
lea edi, [esp + 0x440]
lea esi, [esp + 0x30]
call fcn.0040fb50
lea ebx, [esp + 0x1c]
mov edi, str.dwShortcut
call fcn.004109a0
test eax, eax
jne 0x40f8c0
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x1c]
push eax
push 0x4eb940
call fcn.004137f0
add esp, 8
call fcn.00417fe0
call fcn.00419df0
mov esi, dword [esp + 0x2c]
lea eax, [esi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f8fc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f91c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [esp + 0x14]
mov ecx, dword [esi + 4]
push 0xa
push str._Report
push ecx
call fcn.004a8401
add esp, 0xc
test eax, eax
jne 0x40f95c
call fcn.00417fe0
call fcn.00415080
call fcn.00419fd0
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x40f97a
call fcn.00419d40
call fcn.0041a7e0
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f986
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x854]
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.004a6859
mov esp, ebp
pop ebp
ret 0x10