Function at 0x40f2a0
Capabilities:
Accept command line arguments
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4efae1
mov eax, dword fs:[0]
push eax
sub esp, 0x350
mov eax, dword [0x528c24]
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
xor eax, eax
mov esi, ecx
mov dword [ebp - 0x330], eax
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
push eax
push 1
push 0x52ac14
mov dword [ebp - 4], eax
call edi
cmp eax, 2
je 0x40fe02
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
lea ebx, [ebx]
cmp eax, 1
jne 0x40f31e
push 0
call ebx
push 0
push 1
push 0x52ac14
call edi
cmp eax, 2
jne 0x40f300
jmp 0x40fe02
test eax, eax
jne 0x40fe02
cmp dword [esi], eax
je 0x40f360
mov eax, dword [ebp + 8]
cmp dword [eax - 0xc], 0
je 0x40f341
lea ecx, [ebp + 8]
add esi, 0x10
push ecx
mov ecx, esi
call fcn.0040c3d0
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x40fe1c
push 0x208
lea ecx, [ebp - 0x218]
push 0
push ecx
call fcn.0048d9d0
mov eax, dword [0x52b718]
add esp, 0xc
push 0x104
lea edx, [ebp - 0x218]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [ebp - 0x218]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea edx, [ebp - 0x218]
push edx
lea ecx, [ebp - 0x354]
call fcn.0040e6b0
mov byte [ebp - 4], 1
call fcn.00428bb0
mov eax, dword [eax]
sub eax, 0x10
push eax
call fcn.0040b880
lea edi, [eax + 0x10]
mov dword [ebp - 0x348], edi
mov byte [ebp - 4], 2
call fcn.00428d70
mov eax, dword [eax]
sub eax, 0x10
push eax
call fcn.0040b880
lea ebx, [eax + 0x10]
mov dword [ebp - 0x358], ebx
lea eax, [ebp - 0x350]
push eax
mov byte [ebp - 4], 3
call fcn.00428e50
add esp, 0xc
mov eax, dword [edi - 0xc]
mov byte [ebp - 4], 4
test eax, eax
je 0x40f5b7
push ecx
lea edx, [ebp - 0x354]
mov ecx, esp
mov dword [ebp - 0x340], esp
push edx
call fcn.0040d830
push ecx
lea eax, [ebp - 0x348]
mov ecx, esp
mov dword [ebp - 0x34c], esp
push eax
mov byte [ebp - 4], 5
call fcn.0040d830
mov byte [ebp - 4], 4
call fcn.00425560
add esp, 8
test al, al
je 0x40f5b7
push str.deepscancloudcom2.dll
lea ecx, [ebp - 0x348]
push ecx
lea edx, [ebp - 0x344]
push edx
call fcn.0040e000
add esp, 0xc
push eax
lea ecx, [esi + 0x14]
mov byte [ebp - 4], 6
call fcn.0040c480
lea ecx, [ebp - 0x344]
mov byte [ebp - 4], 4
call fcn.0040be30
lea eax, [ebp - 0x348]
push eax
lea ecx, [esi + 0xc]
call fcn.0040c480
push str.I18N.dll
lea ecx, [ebp - 0x348]
push ecx
lea edx, [ebp - 0x33c]
push edx
call fcn.0040e000
add esp, 0xc
mov eax, dword [eax]
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov ebx, 1
push eax
mov byte [ebp - 4], 7
mov dword [ebp - 0x330], ebx
call edi
test eax, eax
je 0x40f4fa
push str.QHSafeMain.exe
lea eax, [ebp - 0x348]
push eax
lea ecx, [ebp - 0x344]
push ecx
call fcn.0040e000
mov eax, dword [eax]
add esp, 0xc
push eax
mov ebx, 3
call edi
mov byte [ebp - 0x331], 1
test eax, eax
jne 0x40f501
mov byte [ebp - 0x331], 0
test bl, 2
je 0x40f514
lea ecx, [ebp - 0x344]
and ebx, 0xfffffffd
call fcn.0040be30
mov edi, 4
mov dword [ebp - 4], edi
test bl, 1
je 0x40f52c
lea ecx, [ebp - 0x33c]
call fcn.0040be30
cmp byte [ebp - 0x331], 0
je 0x40f574
push str.Utils360DrvMgr
lea edx, [ebp - 0x348]
push edx
lea eax, [ebp - 0x33c]
push eax
call fcn.0040e000
add esp, 0xc
push eax
lea ecx, [esi + 8]
mov byte [ebp - 4], 8
call fcn.0040c480
lea ecx, [ebp - 0x33c]
mov byte [ebp - 4], 4
call fcn.0040be30
mov dword [esi + 0x44], edi
jmp 0x40fc87
push str.Utils
lea ecx, [ebp - 0x348]
push ecx
lea edx, [ebp - 0x33c]
push edx
call fcn.0040e000
add esp, 0xc
push eax
lea ecx, [esi + 8]
mov byte [ebp - 4], 9
call fcn.0040c480
lea ecx, [ebp - 0x33c]
mov byte [ebp - 4], 4
call fcn.0040be30
mov dword [esi + 0x44], 3
jmp 0x40fc87
mov eax, dword [ebp - 0x350]
cmp dword [eax - 0xc], 0
je 0x40f68e
push ecx
lea edx, [ebp - 0x354]
mov ecx, esp
mov dword [ebp - 0x340], esp
push edx
call fcn.0040d830
push ecx
lea eax, [ebp - 0x350]
mov ecx, esp
mov dword [ebp - 0x34c], esp
push eax
mov byte [ebp - 4], 0xa
call fcn.0040d830
mov byte [ebp - 4], 4
call fcn.00425560
add esp, 8
test al, al
je 0x40f68e
push str.DrvMgr
lea ecx, [ebp - 0x350]
push ecx
lea edx, [ebp - 0x33c]
push edx
call fcn.0040e000
add esp, 0xc
lea edi, [esi + 8]
push eax
mov ecx, edi
mov byte [ebp - 4], 0xb
call fcn.0040c480
lea ecx, [ebp - 0x33c]
mov byte [ebp - 4], 4
call fcn.0040be30
push str.cloudcom2.dll
lea eax, [ebp - 0x33c]
push edi
push eax
call fcn.0040e000
add esp, 0xc
push eax
lea ecx, [esi + 0x14]
mov byte [ebp - 4], 0xc
call fcn.0040c480
lea ecx, [ebp - 0x33c]
mov byte [ebp - 4], 4
call fcn.0040be30
lea ecx, [ebp - 0x350]
push ecx
lea ecx, [esi + 0xc]
call fcn.0040c480
mov dword [esi + 0x44], 2
jmp 0x40fc87
cmp dword [ebx - 0xc], 0
je 0x40f733
push ecx
lea edx, [ebp - 0x354]
mov ecx, esp
mov dword [ebp - 0x340], esp
push edx
call fcn.0040d830
push ecx
lea eax, [ebp - 0x358]
mov ecx, esp
mov dword [ebp - 0x34c], esp
push eax
mov byte [ebp - 4], 0xd
call fcn.0040d830
mov byte [ebp - 4], 4
call fcn.00425560
add esp, 8
test al, al
je 0x40f733
lea ecx, [ebp - 0x358]
lea edi, [esi + 8]
push ecx
mov ecx, edi
call fcn.0040c480
push str.cloudcom2.dll
lea edx, [ebp - 0x33c]
push edi
push edx
call fcn.0040e000
add esp, 0xc
push eax
lea ecx, [esi + 0x14]
mov byte [ebp - 4], 0xe
call fcn.0040c480
lea ecx, [ebp - 0x33c]
mov byte [ebp - 4], 4
call fcn.0040be30
lea eax, [ebp - 0x358]
push eax
lea ecx, [esi + 0xc]
call fcn.0040c480
mov dword [esi + 0x44], 1
jmp 0x40fc87
lea ecx, [ebp - 0x218]
push ecx
lea ecx, [ebp - 0x33c]
call fcn.0040e6b0
push str.360Base.dll
push eax
lea edx, [ebp - 0x344]
push edx
mov byte [ebp - 4], 0xf
call fcn.0040e000
add esp, 0xc
mov ebx, 0x11
lea ecx, [ebp - 0x33c]
mov byte [ebp - 4], bl
call fcn.0040be30
mov eax, dword [ebp - 0x344]
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push eax
call edi
test eax, eax
je 0x40f7da
lea ecx, [ebp - 0x218]
lea edi, [esi + 8]
push ecx
mov ecx, edi
call fcn.0040e410
push str.cloudcom2.dll
lea edx, [ebp - 0x330]
push edi
push edx
call fcn.0040e000
add esp, 0xc
push eax
lea ecx, [esi + 0x14]
mov byte [ebp - 4], 0x12
call fcn.0040c480
lea ecx, [ebp - 0x330]
mov byte [ebp - 4], bl
call fcn.0040be30
push edi
lea ecx, [esi + 0xc]
call fcn.0040c480
mov dword [esi + 0x44], 1
jmp 0x40fc78
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea ecx, [ebp - 0x218]
push ecx
lea ecx, [ebp - 0x338]
call fcn.0040e6b0
push str.360Base.dll
push eax
lea edx, [ebp - 0x330]
push edx
mov byte [ebp - 4], 0x13
call fcn.0040e000
add esp, 0xc
push eax
lea ecx, [ebp - 0x344]
mov byte [ebp - 4], 0x14
call fcn.0040c480
lea ecx, [ebp - 0x330]
call fcn.0040be30
lea ecx, [ebp - 0x338]
mov byte [ebp - 4], bl
call fcn.0040be30
mov eax, dword [ebp - 0x344]
push eax
call edi
lea ecx, [ebp - 0x218]
push ecx
test eax, eax
je 0x40fa2e
lea ecx, [ebp - 0x330]
call fcn.0040e6b0
push str.ComputerZTray.exe
push eax
lea edx, [ebp - 0x338]
push edx
mov byte [ebp - 4], 0x15
call fcn.0040e000
mov eax, dword [eax]
add esp, 0xc
push eax
call edi
lea ecx, [ebp - 0x338]
mov edi, eax
call fcn.0040be30
lea ecx, [ebp - 0x330]
mov byte [ebp - 4], bl
call fcn.0040be30
lea ecx, [ebp - 0x330]
test edi, edi
je 0x40f95c
lea eax, [ebp - 0x218]
push eax
call fcn.0040e6b0
push str.DrvMgr
push eax
lea ecx, [ebp - 0x338]
push ecx
mov byte [ebp - 4], 0x16
call fcn.0040e000
add esp, 0xc
push eax
lea ecx, [esi + 8]
mov byte [ebp - 4], 0x17
call fcn.0040c480
lea ecx, [ebp - 0x338]
call fcn.0040be30
lea ecx, [ebp - 0x330]
mov byte [ebp - 4], bl
call fcn.0040be30
lea edx, [ebp - 0x218]
push edx
lea ecx, [ebp - 0x330]
call fcn.0040e6b0
push str.cloudcom2.dll
push eax
lea eax, [ebp - 0x338]
push eax
mov byte [ebp - 4], 0x18
call fcn.0040e000
add esp, 0xc
push eax
lea ecx, [esi + 0x14]
mov byte [ebp - 4], 0x19
call fcn.0040c480
lea ecx, [ebp - 0x338]
call fcn.0040be30
lea ecx, [ebp - 0x330]
mov byte [ebp - 4], bl
call fcn.0040be30
lea ecx, [ebp - 0x218]
push ecx
lea ecx, [esi + 0xc]
call fcn.0040e410
mov dword [esi + 0x44], 2
jmp 0x40fc78
lea edx, [ebp - 0x218]
push edx
call fcn.0040e6b0
push str.Utils
push eax
lea eax, [ebp - 0x338]
push eax
mov byte [ebp - 4], 0x1a
call fcn.0040e000
add esp, 0xc
push eax
lea ecx, [esi + 8]
mov byte [ebp - 4], 0x1b
call fcn.0040c480
lea ecx, [ebp - 0x338]
call fcn.0040be30
lea ecx, [ebp - 0x330]
mov byte [ebp - 4], bl
call fcn.0040be30
lea ecx, [ebp - 0x218]
push ecx
lea ecx, [ebp - 0x330]
call fcn.0040e6b0
push str.deepscancloudcom2.dll
push eax
lea edx, [ebp - 0x338]
push edx
mov byte [ebp - 4], 0x1c
call fcn.0040e000
add esp, 0xc
push eax
lea ecx, [esi + 0x14]
mov byte [ebp - 4], 0x1d
call fcn.0040c480
lea ecx, [ebp - 0x338]
call fcn.0040be30
lea ecx, [ebp - 0x330]
mov byte [ebp - 4], bl
call fcn.0040be30
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x338]
call fcn.0040e6b0
push eax
lea ecx, [esi + 0xc]
mov byte [ebp - 4], 0x1e
call fcn.0040c480
lea ecx, [ebp - 0x338]
call fcn.0040be30
mov dword [esi + 0x44], 3
jmp 0x40fc78
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea edx, [ebp - 0x218]
push edx
lea ecx, [ebp - 0x330]
call fcn.0040e6b0
push str.360Base.dll
push eax
lea eax, [ebp - 0x338]
push eax
mov byte [ebp - 4], 0x1f
call fcn.0040e000
add esp, 0xc
push eax
lea ecx, [ebp - 0x344]
mov byte [ebp - 4], 0x20
call fcn.0040c480
lea ecx, [ebp - 0x338]
call fcn.0040be30
lea ecx, [ebp - 0x330]
mov byte [ebp - 4], bl
call fcn.0040be30
lea ecx, [ebp - 0x218]
push ecx
lea ecx, [ebp - 0x340]
call fcn.0040e6b0
push str.I18N.dll
push eax
lea edx, [ebp - 0x34c]
push edx
mov byte [ebp - 4], 0x21
mov dword [ebp - 0x330], 4
call fcn.0040e000
add esp, 0xc
mov eax, dword [eax]
push eax
mov dword [ebp - 4], 0x22
mov dword [ebp - 0x330], 0xc
call edi
test eax, eax
je 0x40fb29
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x35c]
call fcn.0040e6b0
push str.QHSafeMain.exe
push eax
lea ecx, [ebp - 0x338]
push ecx
mov dword [ebp - 4], 0x23
mov dword [ebp - 0x330], 0x1c
call fcn.0040e000
mov eax, dword [eax]
add esp, 0xc
push eax
mov dword [ebp - 0x330], 0x3c
call edi
mov byte [ebp - 0x331], 1
test eax, eax
jne 0x40fb30
mov byte [ebp - 0x331], 0
test byte [ebp - 0x330], 0x20
je 0x40fb4b
and dword [ebp - 0x330], 0xffffffdf
lea ecx, [ebp - 0x338]
call fcn.0040be30
test byte [ebp - 0x330], 0x10
je 0x40fb66
and dword [ebp - 0x330], 0xffffffef
lea ecx, [ebp - 0x35c]
call fcn.0040be30
test byte [ebp - 0x330], 8
je 0x40fb81
and dword [ebp - 0x330], 0xfffffff7
lea ecx, [ebp - 0x34c]
call fcn.0040be30
test byte [ebp - 0x330], 4
mov dword [ebp - 4], ebx
je 0x40fb98
lea ecx, [ebp - 0x340]
call fcn.0040be30
cmp byte [ebp - 0x331], 0
je 0x40fc78
lea edx, [ebp - 0x218]
push edx
lea ecx, [ebp - 0x34c]
call fcn.0040e6b0
push str.Utils360DrvMgr
push eax
lea eax, [ebp - 0x340]
push eax
mov byte [ebp - 4], 0x24
call fcn.0040e000
add esp, 0xc
push eax
lea ecx, [esi + 8]
mov byte [ebp - 4], 0x25
call fcn.0040c480
lea ecx, [ebp - 0x340]
call fcn.0040be30
lea ecx, [ebp - 0x34c]
mov byte [ebp - 4], bl
call fcn.0040be30
lea ecx, [ebp - 0x218]
push ecx
lea ecx, [ebp - 0x34c]
call fcn.0040e6b0
push str.deepscancloudcom2.dll
push eax
lea edx, [ebp - 0x340]
push edx
mov byte [ebp - 4], 0x26
call fcn.0040e000
add esp, 0xc
push eax
lea ecx, [esi + 0x14]
mov byte [ebp - 4], 0x27
call fcn.0040c480
lea ecx, [ebp - 0x340]
call fcn.0040be30
lea ecx, [ebp - 0x34c]
mov byte [ebp - 4], bl
call fcn.0040be30
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x340]
call fcn.0040e6b0
push eax
lea ecx, [esi + 0xc]
mov byte [ebp - 4], 0x28
call fcn.0040c480
lea ecx, [ebp - 0x340]
call fcn.0040be30
mov dword [esi + 0x44], 4
lea ecx, [ebp - 0x344]
mov byte [ebp - 4], 4
call fcn.0040be30
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
mov ecx, esi
call fcn.0040f0d0
call fcn.0040ca30
push 0x110
lea ecx, [ebp - 0x328]
push 0
push ecx
mov dword [esi + 0x30], eax
mov dword [ebp - 0x32c], 0
call fcn.0048d9d0
lea edx, [ebp - 0x32c]
push edx
call fcn.004207c0
mov eax, dword [ebp - 0x328]
mov ecx, dword [ebp - 0x324]
mov edx, dword [ebp - 0x320]
mov dword [esi + 0x34], eax
mov eax, dword [ebp + 8]
add esp, 0x10
mov dword [esi + 0x38], ecx
mov dword [esi + 0x3c], edx
cmp dword [eax - 0xc], 0
jne 0x40fd3e
push 0
push 0x1a
lea ecx, [ebp - 0x218]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 1
lea edx, [ebp - 0x340]
push edx
mov ecx, esi
call fcn.0040e790
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea ecx, [ebp - 0x340]
call fcn.0040be30
lea ecx, [ebp - 0x218]
lea edi, [esi + 0x10]
push ecx
mov ecx, edi
call fcn.0040e410
jmp 0x40fd4c
lea edx, [ebp + 8]
lea edi, [esi + 0x10]
push edx
mov ecx, edi
call fcn.0040c3d0
mov edi, dword [edi]
push edi
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
push 2
push 0x52ac14
mov dword [esi], 1
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov eax, dword [ebp - 0x350]
add eax, 0xfffffff0
mov byte [ebp - 4], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40fd90
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x358]
add eax, 0xfffffff0
mov byte [ebp - 4], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40fdb6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x348]
add eax, 0xfffffff0
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40fddc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x354]
add eax, 0xfffffff0
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40fe02
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40fe28
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
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.0048d9be
mov esp, ebp
pop ebp
ret 4