Function at 0x4466b0
Capabilities:
Check if file exists
Get common file path
Get file attributes
Persist via run registry key
Set registry value
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x348]
sub esp, 0x348
push 0xffffffffffffffff
push 0x48170b
mov eax, dword fs:[0]
push eax
sub esp, 0xc4
mov eax, dword [0x4a30f8]
xor eax, ebp
mov dword [ebp + 0x344], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 0x350]
mov edi, ecx
xor ebx, ebx
mov dword [ebp - 0x1c], edi
cmp dword [edi + 0x44], ebx
je 0x446d4d
cmp esi, ebx
jne 0x44670b
mov dword [ebp - 0x18], ebx
jmp 0x44673b
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jle 0x44671f
mov dword [ebp - 0x18], ebx
jmp 0x44673b
lea edi, [eax + eax]
mov eax, edi
call fcn.00462690
mov eax, esp
push 3
push edi
push esi
push eax
call fcn.0041b7b0
mov edi, dword [ebp - 0x1c]
mov dword [ebp - 0x18], eax
push 0x207
lea eax, [ebp + 0x13d]
push ebx
push eax
mov byte [ebp + 0x13c], bl
call fcn.00461880
push 0x103
lea ecx, [ebp + 0x39]
push ebx
push ecx
mov byte [ebp + 0x38], bl
call fcn.00461880
add esp, 0x18
lea edx, [ebp + 0x38]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x446d4d
push str.remove360dt.bat
lea eax, [ebp + 0x38]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
push ebx
push 0x80
push 2
push ebx
push 7
push 0xc01200a0
lea ecx, [ebp + 0x38]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
mov dword [ebp - 0x28], esi
cmp esi, 0xffffffff
je 0x446d4d
push str._echo_off__r_n_r_n:x86_winxp_WinVista_Vin7__r_n_reg.exe_query__HKLMSOFTWAREMicrosoftWindowsCurrentVersionUninstall360Desktop___v_UninstallString__find__i__uninstall.exe___nul__r_nif_errorlevel_1__echo.__else__del__q__0__exit____r_n_r_n:64__r_nreg.exe_query__HKLMSOFTWAREWow6432NodeMicrosoftWindowsCurrentVersionUninstall360Desktop___v_UninstallString__find__i__uninstall.exe___nul__r_nif_errorlevel_1___echo.__else__del__q__0__exit____r_n_r_n_r_n
lea ecx, [ebp]
mov dword [ebp - 0x14], ebx
call fcn.004082c0
cmp dword [ebp + 0x18], 0x10
mov eax, dword [ebp + 4]
mov dword [ebp - 4], ebx
jae 0x4467d5
lea eax, [ebp + 4]
mov ecx, dword [ebp + 0x14]
push ebx
lea edx, [ebp - 0x14]
push edx
push ecx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0x14], ebx
mov dword [ebp + 0x34], 0xf
mov dword [ebp + 0x30], ebx
mov byte [ebp + 0x20], 0
push 1
push 3
lea ecx, [ebp - 0xd0]
mov byte [ebp - 4], 1
call fcn.00446610
mov esi, dword [edi + 0x54]
add edi, 0x48
mov byte [ebp - 4], 2
cmp esi, dword [edi + 0x10]
jbe 0x44681e
call fcn.00461bce
mov ebx, dword [edi]
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], esi
mov esi, dword [ebp - 0x1c]
mov edi, dword [esi + 0x58]
add esi, 0x48
cmp dword [esi + 0xc], edi
jbe 0x446839
call fcn.00461bce
mov eax, dword [esi]
test ebx, ebx
je 0x446843
cmp ebx, eax
je 0x446848
call fcn.00461bce
cmp dword [ebp - 0x20], edi
jae 0x446a70
test ebx, ebx
jne 0x446885
call fcn.00461bce
xor eax, eax
mov edx, dword [ebp - 0x20]
cmp edx, dword [eax + 0x10]
jb 0x446869
call fcn.00461bce
mov eax, dword [ebp - 0x20]
mov eax, dword [eax]
cmp dword [eax - 0xc], 0
jl 0x446889
mov edi, eax
lea ecx, [edi - 0xc]
push ecx
mov dword [ebp - 0x10], edi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x44689e
mov eax, dword [ebx]
jmp 0x44685c
mov edx, dword [0x4a1014]
push eax
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x10], edx
call fcn.0041ca80
mov edi, dword [ebp - 0x10]
cmp dword [edi - 8], 0
mov byte [ebp - 4], 3
jne 0x4468b6
lea eax, [edi - 0xc]
cmp eax, dword [0x4a1010]
jmp 0x446a2e
test ebx, ebx
jne 0x4468e9
call fcn.00461bce
xor eax, eax
mov esi, dword [ebp - 0x20]
cmp esi, dword [eax + 0x10]
jb 0x4468ce
call fcn.00461bce
mov eax, dword [esi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4468ed
lea ecx, [edi - 0xc]
cmp ecx, dword [0x4a1010]
jmp 0x446a2e
mov eax, dword [ebx]
jmp 0x4468c1
push 0x208
lea edx, [ebp + 0x13c]
push 0
push edx
call fcn.00461880
add esp, 0xc
lea ecx, [ebp - 0x24]
call fcn.004444f0
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x446993
test al, 0x10
je 0x446993
push str.___r_n
push 0
lea ecx, [ebp - 0x24]
call fcn.004444f0
mov ecx, eax
call fcn.0041c3e0
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x2c], esp
push eax
call fcn.0040db70
lea eax, [ebp - 0x48]
push eax
call fcn.004451f0
add esp, 0x20
cmp dword [eax + 0x18], 0x10
mov byte [ebp - 4], 4
jb 0x44695c
mov eax, dword [eax + 4]
jmp 0x44695f
add eax, 4
push eax
lea ecx, [ebp - 0xc8]
push str.rd__s__q__
push ecx
call fcn.00446400
add esp, 8
push eax
call fcn.00446400
add esp, 8
push eax
call fcn.00446400
add esp, 8
lea ecx, [ebp - 0x48]
call fcn.00408b50
jmp 0x446a25
push 0
lea ecx, [ebp - 0x24]
call fcn.004444f0
mov ecx, eax
call fcn.0041c3e0
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x2c], esp
push eax
call fcn.0040db70
lea edx, [ebp - 0x48]
push edx
call fcn.004451f0
mov esi, 0x10
add esp, 0x20
cmp dword [eax + 0x18], esi
jb 0x4469cd
mov eax, dword [eax + 4]
jmp 0x4469d0
add eax, 4
push eax
push str.del__q___s___r_n
lea eax, [ebp + 0x13c]
push 0x208
push eax
call fcn.00443800
add esp, 0x10
cmp dword [ebp - 0x30], esi
jb 0x4469fb
mov ecx, dword [ebp - 0x44]
push ecx
call fcn.0044d6f0
add esp, 4
lea eax, [ebp + 0x13c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x446a04
mov ecx, dword [ebp - 0x28]
sub eax, edx
push 0
lea edx, [ebp - 0x14]
push edx
push eax
lea eax, [ebp + 0x13c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea edx, [edi - 0xc]
cmp edx, dword [0x4a1010]
mov byte [ebp - 4], 2
je 0x446a4b
add edi, 0xfffffff4
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x446a4b
push edi
call fcn.00461ef0
add esp, 4
test ebx, ebx
jne 0x446a6c
call fcn.00461bce
xor eax, eax
mov ecx, dword [ebp - 0x20]
cmp ecx, dword [eax + 0x10]
jb 0x446a63
call fcn.00461bce
add dword [ebp - 0x20], 4
jmp 0x446826
mov eax, dword [ebx]
jmp 0x446a56
mov eax, dword [ebp - 0x1c]
mov ebx, dword [eax + 0x58]
add eax, 0x48
cmp dword [eax + 0xc], ebx
jbe 0x446a83
call fcn.00461bce
mov eax, dword [ebp - 0x1c]
mov esi, dword [eax + 0x54]
mov edi, dword [eax + 0x48]
add eax, 0x48
cmp esi, dword [eax + 0x10]
jbe 0x446a99
call fcn.00461bce
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ecx + 0x48]
push ebx
push edi
add ecx, 0x48
push esi
push eax
lea edx, [ebp - 0x24]
push edx
call fcn.00445ee0
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0xd0]
call fcn.00445de0
push 0xffffffffffffffff
push 0
push eax
lea ecx, [ebp + 0x1c]
mov byte [ebp - 4], 5
call fcn.00408980
cmp dword [ebp - 0x30], 0x10
mov byte [ebp - 4], 2
jb 0x446ae5
mov ecx, dword [ebp - 0x44]
push ecx
call fcn.0044d6f0
add esp, 4
mov ecx, dword [ebp + 0x30]
test ecx, ecx
je 0x446b0e
cmp dword [ebp + 0x34], 0x10
mov eax, dword [ebp + 0x20]
jae 0x446af8
lea eax, [ebp + 0x20]
mov edi, dword [ebp - 0x28]
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea edx, [ebp - 0x14]
push edx
push ecx
push eax
push edi
call ebx
jmp 0x446b17
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
mov edi, dword [ebp - 0x28]
cmp dword [ebp - 0x18], 0
jne 0x446b21
xor eax, eax
jmp 0x446b51
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
cmp esi, 0x3fffffff
jle 0x446b3a
xor eax, eax
jmp 0x446b51
lea eax, [esi + esi]
call fcn.00462690
mov ecx, dword [ebp - 0x18]
mov eax, esp
push 3
push esi
push ecx
push eax
call fcn.0043f3d0
push eax
lea ecx, [ebp - 0x10]
call fcn.0041deb0
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push str.Bin
push str.Bin
mov byte [ebp - 4], 6
call esi
push eax
lea ecx, [ebp - 0x10]
call fcn.0041bff0
cmp dword [ebp - 0x10], 0
jne 0x446b83
xor eax, eax
jmp 0x446bae
mov edx, dword [ebp - 0x10]
push edx
call esi
inc eax
cmp eax, 0x3fffffff
jle 0x446b95
xor eax, eax
jmp 0x446bae
lea esi, [eax + eax]
mov eax, esi
call fcn.00462690
mov ecx, dword [ebp - 0x10]
mov eax, esp
push 3
push esi
push ecx
push eax
call fcn.0041b7b0
push eax
push str.rd__q___s___r_n
lea edx, [ebp + 0x13c]
push 0x208
push edx
call fcn.00443800
lea eax, [ebp + 0x13c]
add esp, 0x10
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x446bd1
push 0
sub eax, ecx
lea ecx, [ebp - 0x14]
push ecx
push eax
lea edx, [ebp + 0x13c]
push edx
push edi
call ebx
push 0x208
lea eax, [ebp + 0x13c]
push 0
push eax
call fcn.00461880
mov ecx, dword [ebp - 0x18]
push ecx
push str.rd__q___s___r_n
lea edx, [ebp + 0x13c]
push 0x208
push edx
call fcn.00443800
lea eax, [ebp + 0x13c]
add esp, 0x1c
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x446c24
push 0
sub eax, ecx
lea ecx, [ebp - 0x14]
push ecx
push eax
lea edx, [ebp + 0x13c]
push edx
push edi
call ebx
push 0x208
lea eax, [ebp + 0x13c]
push 0
push eax
call fcn.00461880
lea ecx, [ebp + 0x38]
push ecx
push str.del__q___s___r_n
lea edx, [ebp + 0x13c]
push 0x208
push edx
call fcn.00443800
lea eax, [ebp + 0x13c]
add esp, 0x1c
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x446c77
push 0
sub eax, ecx
lea ecx, [ebp - 0x14]
push ecx
push eax
lea edx, [ebp + 0x13c]
push edx
push edi
call ebx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x1c]
mov dword [eax + 0x44], 0
lea eax, [ebp + 0x38]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x446ca8
sub eax, edx
push eax
lea ecx, [ebp + 0x38]
push ecx
push 1
push str.360dtuninst
push str.SOFTWAREMicrosoftWindowsCurrentVersionRunOnce
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHSetValueA]
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff4
cmp edx, dword [0x4a1010]
je 0x446cf5
mov esi, dword [ebp - 0x10]
add esi, 0xfffffff4
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x446cf5
push esi
call fcn.00461ef0
add esp, 4
lea ecx, [ebp - 0x7c]
mov byte [ebp - 4], 1
call fcn.00444550
lea eax, [ebp - 0x7c]
push eax
mov dword [ebp - 0x7c], vtable.std::ios_base.0
call fcn.00450e18
mov esi, 0x10
add esp, 4
cmp dword [ebp + 0x34], esi
jb 0x446d2a
mov ecx, dword [ebp + 0x20]
push ecx
call fcn.0044d6f0
add esp, 4
mov dword [ebp + 0x34], 0xf
mov dword [ebp + 0x30], 0
mov byte [ebp + 0x20], 0
cmp dword [ebp + 0x18], esi
jb 0x446d4d
mov edx, dword [ebp + 4]
push edx
call fcn.0044d6f0
add esp, 4
lea esp, [ebp - 0xe0]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x344]
xor ecx, ebp
call fcn.00461862
add ebp, 0x348
mov esp, ebp
pop ebp
ret 4