Function at 0x422440
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x498968
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x4bd450]
xor eax, esp
mov dword [esp + 0x28], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4bd450]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x50]
cmp dword [ebp], 0
mov dword [esp + 0x1c], 0
je 0x42248e
mov eax, 1
jmp 0x42259d
call fcn.00422370
mov esi, ebp
mov dword [ebp + 4], eax
call fcn.00422d50
test eax, eax
je 0x4226e6
push 0x512dc0
push 0xc3c
call fcn.004754b1
add esp, 8
mov dword [ebp], eax
test eax, eax
je 0x4226e6
push 0x104
add eax, 0x618
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x422582
mov ecx, dword [0x514dc8]
mov esi, 0x4a5a6c
test ecx, ecx
jne 0x4224ef
mov esi, str.360bprot.sys
mov eax, dword [ebp + 4]
test byte [eax], 2
mov dword [esp + 0x18], esi
je 0x422513
test ecx, ecx
je 0x422509
mov dword [esp + 0x14], str.360bprot64_win10.sys
jmp 0x422517
mov dword [esp + 0x14], str.360bprot_win10.sys
jmp 0x422517
mov dword [esp + 0x14], esi
mov eax, dword [ebp]
add eax, 0xa28
xor ebx, ebx
mov edx, 0x104
sub esi, eax
jmp 0x422530
lea ecx, [edx + 0x7ffffefa]
test ecx, ecx
je 0x422550
movzx ecx, word [esi + eax]
test cx, cx
je 0x422550
mov word [eax], cx
add eax, 2
sub edx, 1
jne 0x422530
jmp 0x422554
test edx, edx
jne 0x42255c
sub eax, 2
mov ebx, 0x8007007a
xor edx, edx
mov word [eax], dx
test ebx, ebx
jl 0x422582
mov eax, dword [ebp]
add eax, 0x618
mov ecx, 0x104
mov edx, eax
cmp word [edx], 0
je 0x4225be
add edx, 2
sub ecx, 1
jne 0x422574
mov eax, dword [ebp]
test eax, eax
je 0x422599
push eax
call fcn.00471eaf
add esp, 4
mov dword [ebp], 0
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.00471eba
add esp, 0x38
ret 4
test ecx, ecx
je 0x422582
mov edx, 0x104
sub edx, ecx
mov ecx, 0x104
sub ecx, edx
lea eax, [eax + edx*2]
mov edi, 0
je 0x422607
mov ebx, str.drivers_
lea esi, [ecx + edx + 0x7ffffefb]
sub ebx, eax
test esi, esi
je 0x422603
movzx edx, word [eax + ebx]
test dx, dx
je 0x422603
mov word [eax], dx
dec ecx
add eax, 2
dec esi
test ecx, ecx
jne 0x4225e8
jmp 0x422607
test ecx, ecx
jne 0x42260f
sub eax, 2
mov edi, 0x8007007a
xor ecx, ecx
mov word [eax], cx
test edi, edi
jl 0x422582
mov eax, dword [ebp]
add eax, 0x618
mov ecx, 0x104
mov edx, eax
jmp 0x422630
cmp word [edx], 0
je 0x422643
add edx, 2
sub ecx, 1
jne 0x422630
jmp 0x422582
test ecx, ecx
je 0x422582
mov edx, 0x104
sub edx, ecx
mov ecx, 0x104
sub ecx, edx
lea eax, [eax + edx*2]
mov ebx, 0
je 0x42268f
mov edi, dword [esp + 0x18]
lea esi, [ecx + edx + 0x7ffffefb]
sub edi, eax
test esi, esi
je 0x42268b
movzx edx, word [eax + edi]
test dx, dx
je 0x42268b
mov word [eax], dx
dec ecx
add eax, 2
dec esi
test ecx, ecx
jne 0x422670
jmp 0x42268f
test ecx, ecx
jne 0x422697
sub eax, 2
mov ebx, 0x8007007a
xor edx, edx
mov word [eax], dx
test ebx, ebx
jl 0x422582
xor ebx, ebx
xor eax, eax
mov dword [esp + 0x38], 7
mov dword [esp + 0x34], ebx
mov word [esp + 0x24], ax
mov dword [esp + 0x48], ebx
lea ecx, [esp + 0x20]
call fcn.0040ccf0
test eax, eax
jne 0x4226ed
push ebx
push 0x4a5b20
lea esi, [esp + 0x28]
call fcn.00402bd0
mov dword [esp + 0x48], 0xffffffff
call fcn.00428ca0
xor eax, eax
jmp 0x42259d
push 9
push str.Download
lea eax, [esp + 0x28]
call fcn.004037d0
cmp dword [esp + 0x38], 8
mov eax, dword [esp + 0x24]
jae 0x42270c
lea eax, [esp + 0x24]
mov ecx, dword [esp + 0x14]
mov edx, dword [ebp]
push ecx
push eax
add edx, 0x410
push 0x4a69f8
push edx
mov ecx, 0x104
call fcn.00404a10
add esp, 0x10
cmp eax, ebx
jge 0x422748
mov dword [esp + 0x48], 0xffffffff
lea esi, [esp + 0x20]
call fcn.00428ca0
jmp 0x422582
mov eax, dword [ebp]
mov esi, str..360bprot
xor edi, edi
mov edx, 0x104
sub esi, eax
lea esp, [esp]
lea ecx, [edx + 0x7ffffefa]
test ecx, ecx
je 0x422780
movzx ecx, word [eax + esi]
cmp cx, bx
je 0x422780
mov word [eax], cx
add eax, 2
sub edx, 1
jne 0x422760
jmp 0x422784
cmp edx, ebx
jne 0x42278c
sub eax, 2
mov edi, 0x8007007a
xor edx, edx
cmp edi, ebx
mov word [eax], dx
jl 0x422732
mov eax, dword [ebp]
add eax, 0x208
mov esi, str.360bprot
xor edi, edi
mov edx, 0x104
sub esi, eax
jmp 0x4227b0
lea ecx, [edx + 0x7ffffefa]
test ecx, ecx
je 0x4227d0
movzx ecx, word [eax + esi]
cmp cx, bx
je 0x4227d0
mov word [eax], cx
add eax, 2
sub edx, 1
jne 0x4227b0
jmp 0x4227d4
cmp edx, ebx
jne 0x4227dc
sub eax, 2
mov edi, 0x8007007a
xor edx, edx
cmp edi, ebx
mov word [eax], dx
jl 0x422732
mov eax, dword [ebp]
add eax, 0x820
mov esi, str.360_browser_driver
xor edi, edi
mov edx, 0x104
sub esi, eax
nop
lea ecx, [edx + 0x7ffffefa]
test ecx, ecx
je 0x422820
movzx ecx, word [eax + esi]
cmp cx, bx
je 0x422820
mov word [eax], cx
add eax, 2
sub edx, 1
jne 0x422800
jmp 0x422824
cmp edx, ebx
jne 0x42282c
sub eax, 2
mov edi, 0x8007007a
xor edx, edx
cmp edi, ebx
mov word [eax], dx
jl 0x422732
mov eax, dword [ebp]
mov dword [eax + 0xc30], 3
mov ecx, dword [ebp]
mov esi, 1
mov dword [ecx + 0xc34], esi
mov edx, dword [ebp]
mov dword [edx + 0xc38], ebx
mov eax, dword [ebp + 4]
test byte [eax], 1
je 0x422889
mov edx, dword [ebp]
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x18]
push ecx
add edx, 0x410
push edx
call fcn.00424f50
add esp, 0xc
test eax, eax
je 0x422732
mov dword [esp + 0x1c], esi
mov dword [esp + 0x48], 0xffffffff
cmp dword [esp + 0x38], 8
jb 0x4228a9
mov eax, dword [esp + 0x24]
push eax
call fcn.00471eaf
add esp, 4
xor ecx, ecx
mov dword [esp + 0x38], 7
mov dword [esp + 0x34], ebx
mov word [esp + 0x24], cx
jmp 0x422599