Function at 0x401370
Capabilities:
Accept command line arguments
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x44b92e
mov eax, dword fs:[0]
push eax
sub esp, 0x1a0
mov eax, dword [0x4650f0]
xor eax, esp
mov dword [esp + 0x198], eax
push ebx
push esi
push edi
mov eax, dword [0x4650f0]
xor eax, esp
push eax
lea eax, [esp + 0x1b0]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
xor ebx, ebx
lea ecx, [esp + 0x14]
mov dword [esp + 0x40], eax
mov dword [esp + 0x24], ebx
mov dword [esp + 0x34], ebx
call fcn.004114f0
push 0x7c
mov dword [esp + 0x1bc], ebx
call fcn.0042a205
add esp, 4
mov dword [esp + 0x2c], eax
cmp eax, ebx
mov byte [esp + 0x1b8], 1
je 0x4013f7
push eax
call fcn.004023a0
mov dword [esp + 0x28], eax
jmp 0x4013fb
mov dword [esp + 0x28], ebx
cmp dword [esp + 0x28], ebx
mov byte [esp + 0x1b8], bl
jne 0x401426
push str.Couldnt_create_main_application_object
push 3
call fcn.00411380
push str.Couldnt_create_main_application_object._n
call fcn.004331ac
add esp, 0xc
jmp 0x401b5a
push 0xfe
lea ecx, [esp + 0x7e]
push ebx
push ecx
mov dword [esp + 0x70], 0x11c
mov dword [esp + 0x74], ebx
mov dword [esp + 0x78], ebx
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x80], ebx
mov word [esp + 0x84], bx
call fcn.00433810
mov esi, dword [sym.imp.KERNEL32.dll_VerSetConditionMask]
add esp, 0xc
push 3
push 0x20
push 3
mov edi, 1
push edi
push 3
push 2
push ebx
push ebx
mov word [esp + 0x198], bx
mov word [esp + 0x19a], bx
mov dword [esp + 0x19c], ebx
call esi
push edx
push eax
call esi
push edx
push eax
call esi
push edx
push eax
push 0x23
lea edx, [esp + 0x70]
push edx
mov dword [esp + 0x78], 6
mov dword [esp + 0x7c], ebx
mov word [esp + 0x188], bx
call dword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
test eax, eax
jne 0x4015e0
lea ecx, [esp + 0x44]
call fcn.0040edd0
push 0x457f18
lea ecx, [esp + 0x20]
mov byte [esp + 0x1bc], 2
call fcn.004010e0
push str.Installed
lea ecx, [esp + 0x3c]
mov byte [esp + 0x1bc], 3
call fcn.004010e0
lea ecx, [esp + 0x54]
mov byte [esp + 0x1b8], 4
call fcn.004114f0
lea eax, [esp + 0x5c]
push eax
push 0x20019
push ebx
push str.SOFTWAREMicrosoftVisualStudio14.0VCRuntimesx86
push 0x80000002
mov dword [esp + 0x70], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ecx, dword [esp + 0x5c]
push ecx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, ebx
je 0x40159d
push str.Required_Redist_not_Installed._n
call fcn.004331ac
add esp, 4
push str.Press_any_key_to_continue._n
call fcn.004331ac
add esp, 4
call fcn.00433526
lea ecx, [esp + 0x54]
mov byte [esp + 0x1b8], 4
call fcn.00411520
lea ecx, [esp + 0x38]
mov byte [esp + 0x1b8], 3
call fcn.00411520
lea ecx, [esp + 0x1c]
mov byte [esp + 0x1b8], 2
call fcn.00411520
lea ecx, [esp + 0x44]
mov byte [esp + 0x1b8], bl
call fcn.0040ede0
jmp 0x401b6c
lea ecx, [esp + 0x54]
mov byte [esp + 0x1b8], 4
call fcn.00411520
lea ecx, [esp + 0x38]
mov byte [esp + 0x1b8], 3
call fcn.00411520
lea ecx, [esp + 0x1c]
mov byte [esp + 0x1b8], 2
call fcn.00411520
lea ecx, [esp + 0x44]
mov byte [esp + 0x1b8], bl
call fcn.0040ede0
mov ecx, dword [esp + 0x28]
mov edx, dword [ecx]
mov eax, dword [edx + 8]
call eax
cmp eax, ebx
je 0x40161a
push str.Main_CCInstallerApp_setup_failure
push 2
call fcn.00411380
push str.Main_CCInstallerApp_setup_failure._n
call fcn.004331ac
add esp, 0xc
push str.Press_any_key_to_continue._n
call fcn.004331ac
add esp, 4
jmp 0x401b5a
push str.Command_line_params:
lea ecx, [esp + 0x3c]
call fcn.004010e0
lea ecx, [ebp + 8]
push ecx
lea edx, [esp + 0x20]
push edx
mov ecx, eax
mov byte [esp + 0x1c0], 6
call fcn.00401270
lea esi, [eax + 4]
mov byte [esp + 0x1b8], 7
mov eax, dword [esi]
sub eax, 0x10
cmp dword [eax + 0xc], edi
jle 0x401660
mov eax, dword [eax + 4]
push eax
mov ecx, esi
call fcn.00401df0
mov esi, dword [esi]
push esi
push 3
call fcn.00411380
add esp, 8
lea ecx, [esp + 0x1c]
mov byte [esp + 0x1b8], 6
call fcn.00411520
lea ecx, [esp + 0x38]
mov byte [esp + 0x1b8], bl
call fcn.00411520
cmp dword [ebp + 8], edi
mov esi, edi
jle 0x401a1a
lea esp, [esp]
mov ecx, dword [esp + 0x40]
mov edx, dword [ecx + esi*4]
push edx
lea ecx, [esp + 0x30]
call fcn.004010e0
push esi
lea eax, [esp + 0x18c]
push 0x457e78
push eax
mov byte [esp + 0x1c4], 8
call fcn.00433320
add esp, 0xc
lea ecx, [esp + 0x188]
push ecx
lea ecx, [esp + 0x1c]
call fcn.00401be0
push 0x4580bc
lea ecx, [esp + 0x50]
call fcn.004010e0
lea edx, [esp + 0x2c]
push edx
lea ecx, [esp + 0x60]
push ecx
mov ecx, eax
mov byte [esp + 0x1c0], 9
call fcn.004011f0
mov byte [esp + 0x1b8], 0xa
mov eax, dword [eax + 4]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x20]
call fcn.00402020
lea ecx, [esp + 0x5c]
mov byte [esp + 0x1b8], 9
call fcn.00411520
lea ecx, [esp + 0x4c]
mov byte [esp + 0x1b8], 8
call fcn.00411520
mov eax, dword [esp + 0x18]
cmp dword [eax - 4], edi
jle 0x40175c
mov edx, dword [eax - 0xc]
push edx
lea ecx, [esp + 0x1c]
call fcn.00401df0
mov eax, dword [esp + 0x18]
push eax
push 3
call fcn.00411380
add esp, 8
push 0x4580c4
lea ecx, [esp + 0x20]
call fcn.004010e0
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x30]
push eax
push ecx
call fcn.00433091
add esp, 8
test eax, eax
lea ecx, [esp + 0x1c]
sete byte [esp + 0x13]
call fcn.00411520
cmp byte [esp + 0x13], bl
je 0x4017a1
mov dword [esp + 0x24], edi
push 0x4580dc
lea ecx, [esp + 0x3c]
call fcn.004010e0
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x30]
push edx
push eax
call fcn.00433091
add esp, 8
test eax, eax
lea ecx, [esp + 0x38]
sete byte [esp + 0x13]
call fcn.00411520
cmp byte [esp + 0x13], bl
je 0x4017db
mov dword [esp + 0x34], edi
push str._noconfirm
lea ecx, [esp + 0x58]
call fcn.004010e0
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x30]
push ecx
push edx
call fcn.00433091
add esp, 8
test eax, eax
lea ecx, [esp + 0x54]
sete byte [esp + 0x13]
call fcn.00411520
cmp byte [esp + 0x13], bl
je 0x401815
mov dword [esp + 0x24], edi
push str._overwrite
lea ecx, [esp + 0x48]
call fcn.004010e0
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x30]
push eax
push ecx
call fcn.00433091
add esp, 8
test eax, eax
lea ecx, [esp + 0x44]
sete byte [esp + 0x13]
call fcn.00411520
cmp byte [esp + 0x13], bl
je 0x40184f
mov dword [esp + 0x34], edi
lea ecx, [esp + 0x2c]
mov byte [esp + 0x1b8], bl
call fcn.00411520
add esi, edi
cmp esi, dword [ebp + 8]
jl 0x4016a0
cmp dword [esp + 0x24], ebx
je 0x401942
push str.Warning:__noconfirm_option_specified__confirmation_will_not_be_required_before_installer_closes.
lea ecx, [esp + 0x20]
call fcn.004010e0
lea edx, [esp + 0x20]
push edx
lea ecx, [esp + 0x1c]
mov byte [esp + 0x1bc], 0xb
call fcn.00401d00
lea ecx, [esp + 0x1c]
mov byte [esp + 0x1b8], bl
call fcn.00411520
mov eax, dword [esp + 0x18]
cmp dword [eax - 4], edi
jle 0x4018c2
mov eax, dword [eax - 0xc]
push eax
lea ecx, [esp + 0x1c]
call fcn.00401df0
mov eax, dword [esp + 0x18]
push eax
push 3
call fcn.00411380
add esp, 8
push 0x4581ec
lea ecx, [esp + 0x20]
call fcn.004010e0
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x50]
push edx
lea ecx, [esp + 0x1c]
mov byte [esp + 0x1c0], 0xc
call fcn.004011f0
lea esi, [eax + 4]
mov byte [esp + 0x1b8], 0xd
mov eax, dword [esi]
sub eax, 0x10
cmp dword [eax + 0xc], edi
jle 0x401916
mov eax, dword [eax + 4]
push eax
mov ecx, esi
call fcn.00401df0
mov esi, dword [esi]
push esi
call fcn.00433271
add esp, 4
lea ecx, [esp + 0x4c]
mov byte [esp + 0x1b8], 0xc
call fcn.00411520
lea ecx, [esp + 0x1c]
mov byte [esp + 0x1b8], bl
call fcn.00411520
cmp dword [esp + 0x34], ebx
je 0x401a1a
push str.Warning:__overwrite_option_specified__pre_existing_agents_will_be_overwritten.
lea ecx, [esp + 0x20]
call fcn.004010e0
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x1c]
mov byte [esp + 0x1bc], 0xe
call fcn.00401d00
lea ecx, [esp + 0x1c]
mov byte [esp + 0x1b8], bl
call fcn.00411520
mov eax, dword [esp + 0x18]
cmp dword [eax - 4], edi
jle 0x40199a
mov edx, dword [eax - 0xc]
push edx
lea ecx, [esp + 0x1c]
call fcn.00401df0
mov eax, dword [esp + 0x18]
push eax
push 3
call fcn.00411380
add esp, 8
push 0x4581ec
lea ecx, [esp + 0x20]
call fcn.004010e0
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x1c]
mov byte [esp + 0x1c0], 0xf
call fcn.004011f0
lea esi, [eax + 4]
mov byte [esp + 0x1b8], 0x10
mov eax, dword [esi]
sub eax, 0x10
cmp dword [eax + 0xc], edi
jle 0x4019ee
mov edx, dword [eax + 4]
push edx
mov ecx, esi
call fcn.00401df0
mov esi, dword [esi]
push esi
call fcn.00433271
add esp, 4
lea ecx, [esp + 0x4c]
mov byte [esp + 0x1b8], 0xf
call fcn.00411520
lea ecx, [esp + 0x1c]
mov byte [esp + 0x1b8], bl
call fcn.00411520
push ebx
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call fcn.0042a719
test eax, eax
jne 0x401a53
push str.Fatal_Error:_MFC_initialization_failed_n
call fcn.00433271
add esp, 4
push str.Fatal_Error:_MFC_initialization_failed._n
call fcn.004331ac
add esp, 4
jmp 0x401b54
cmp dword [esp + 0x34], ebx
jne 0x401abb
lea eax, [esp + 0x2c]
push eax
sub esp, 8
mov ecx, esp
mov dword [esp + 0x4c], esp
push str.NaveriskAgent
mov dword [esp + 0x3c], ebx
call fcn.004010e0
call fcn.004107d0
add esp, 0xc
cmp dword [esp + 0x2c], ebx
je 0x401abb
push str.Installation_aborted_due_to_existence_of_a_NaveriskAgent_service.
push 3
call fcn.00411380
push str.Installation_aborted_due_to_existence_of_a_NaveriskAgent_service._n
call fcn.004331ac
add esp, 0xc
push str.Installation_aborted
push 3
call fcn.00411380
push str.Naverisk_Agent_Installation_aborted._n
call fcn.004331ac
mov esi, dword [esp + 0x34]
jmp 0x401b47
mov esi, dword [esp + 0x28]
mov edx, dword [esi]
mov eax, dword [edx + 0x24]
mov ecx, esi
call eax
cmp eax, ebx
je 0x401ae7
push str.Installation_failure:
push 2
call fcn.00411380
push str.Installation_failure._n
call fcn.004331ac
add esp, 0xc
jmp 0x401b54
mov edx, dword [esi]
mov eax, dword [edx + 0xc]
mov ecx, esi
call eax
cmp eax, ebx
je 0x401b31
push str.Main_CCInstallerApp_object_teardown_failure
push 2
call fcn.00411380
push str.Main_CCInstallerApp_object_teardown_failure._n
call fcn.004331ac
add esp, 0xc
cmp dword [esp + 0x24], ebx
jne 0x401b25
push str.Press_any_key_to_continue._n
call fcn.004331ac
add esp, 4
call fcn.00433526
mov edx, dword [esi]
mov eax, dword [edx + 4]
push edi
mov ecx, esi
call eax
jmp 0x401b6c
push str.Installation_complete
push 3
call fcn.00411380
push str.Naverisk_Agent_Installation_completed_successfully._n
call fcn.004331ac
mov edx, dword [esi]
mov eax, dword [edx + 4]
add esp, 0xc
push edi
mov ecx, esi
call eax
cmp dword [esp + 0x24], ebx
jne 0x401b6c
push str.Press_any_key_to_continue._n
call fcn.004331ac
add esp, 4
call fcn.00433526
lea ecx, [esp + 0x14]
mov dword [esp + 0x1b8], 0xffffffff
call fcn.00411520
xor eax, eax
mov ecx, dword [esp + 0x1b0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x198]
xor ecx, esp
call fcn.00433122
mov esp, ebp
pop ebp
ret