Function at 0x417530
Capabilities:
Check if file exists
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44bdd6
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x465944]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x14], 0
lea ebx, [esi + 0x18]
mov eax, dword [ebx]
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
cmp dword [eax - 8], 0
je 0x4177ac
mov ecx, ebx
call fcn.0040bf20
push dword [ebx]
call dword [sym.imp.USER32.dll_CharLowerW]
push dword [ebx]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x417742
mov esi, dword [ebx]
call fcn.00417a40
test eax, eax
je 0x417719
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0xffffffff
push eax
push esi
mov ecx, 0x464538
call fcn.00407bd0
test eax, eax
je 0x417719
mov eax, dword [ebp - 0x14]
cmp eax, 3
je 0x4175d9
cmp eax, 0xffffffff
je 0x4175d9
mov eax, 1
jmp 0x4175db
xor eax, eax
test eax, eax
je 0x417719
mov eax, dword [0x4644dc]
mov esi, dword [ebx]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push str.begin_run_the_exe_:
mov dword [ebp - 4], 0
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x14], 1
call edi
push dword [ebx]
lea ecx, [ebp - 0x1c]
push dword [esi - 8]
push str.begin_run_the_exe_:
push eax
call fcn.00407a30
mov eax, dword [0x4644dc]
push str._Param:
mov byte [ebp - 4], 1
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x14], 3
call edi
mov edi, dword [ebp - 0x1c]
lea ecx, [ebp - 0x20]
push str._Param:
push eax
push edi
push dword [edi - 8]
call fcn.00407a30
mov ecx, dword [ebp - 0x10]
mov eax, dword [0x4644dc]
mov esi, dword [ebp - 0x20]
mov dword [ebp - 0x18], eax
mov eax, dword [ecx + 0x14]
lea ecx, [ebp - 0x18]
push eax
mov byte [ebp - 4], 2
mov dword [ebp - 0x14], 7
push dword [eax - 8]
push esi
push dword [esi - 8]
call fcn.00407a30
push dword [ebp - 0x18]
call fcn.0041b930
mov eax, dword [ebp - 0x18]
add esp, 4
lea ecx, [eax - 0xc]
cmp ecx, dword [0x4644d8]
je 0x4176ab
add eax, 0xfffffff4
push eax
mov dword [ebp - 0x20], eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4176ab
push dword [ebp - 0x20]
call fcn.00425cdd
add esp, 4
lea eax, [esi - 0xc]
cmp eax, dword [0x4644d8]
je 0x4176cd
add esi, 0xfffffff4
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4176cd
push esi
call fcn.00425cdd
add esp, 4
lea eax, [edi - 0xc]
mov dword [ebp - 4], 0xffffffff
cmp eax, dword [0x4644d8]
je 0x4176fa
lea esi, [edi - 0xc]
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
push esi
call edi
test eax, eax
jg 0x417700
push esi
call fcn.00425cdd
add esp, 4
jmp 0x417700
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
mov esi, dword [ebp - 0x10]
push 5
push dword [esi + 0x14]
push dword [ebx]
push 0
call fcn.00417ca0
add esp, 0x10
jmp 0x4177ac
mov eax, dword [0x4644dc]
mov dword [ebp - 0x20], eax
mov eax, dword [sym.imp.KERNEL32.dll_lstrlenW]
push str._check_sign_error__for_security__can_not_run_
mov dword [ebp - 4], 3
mov dword [ebp - 0x14], 8
call eax
push str._check_sign_error__for_security__can_not_run_
jmp 0x417769
mov eax, dword [0x4644dc]
mov dword [ebp - 0x20], eax
mov eax, dword [sym.imp.KERNEL32.dll_lstrlenW]
push str._not_exist__can_not_run_
mov dword [ebp - 4], 4
mov dword [ebp - 0x14], 0x10
call eax
push str._not_exist__can_not_run_
mov ecx, dword [ebx]
push eax
push ecx
push dword [ecx - 8]
lea ecx, [ebp - 0x20]
call fcn.00407a30
mov esi, dword [ebp - 0x20]
push esi
call fcn.0041b930
lea eax, [esi - 0xc]
mov dword [ebp - 4], 0xffffffff
add esp, 4
cmp eax, dword [0x4644d8]
je 0x4177a9
add esi, 0xfffffff4
push esi
call edi
test eax, eax
jg 0x4177a9
push esi
call fcn.00425cdd
add esp, 4
mov esi, dword [ebp - 0x10]
lea eax, [ebp - 0x18]
mov dword [ebp - 0x1c], 1
push eax
push 2
push 0
push str.SOFTWAREludashi_stat
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x18], reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x4177fe
push 0
lea eax, [ebp - 0x18]
push eax
push 0
push 0x2001f
push 0
push 0x44e644
push 0
push str.SOFTWAREludashi_stat
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x417877
mov eax, dword [0x4644dc]
mov esi, dword [esi + 0x20]
push str.360mu_
mov dword [ebp - 4], 5
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x14], 0x20
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 0x10]
push dword [ecx + 0x20]
lea ecx, [ebp - 0x20]
push dword [esi - 8]
push str.360mu_
push eax
call fcn.00407a30
mov esi, dword [ebp - 0x20]
lea eax, [ebp - 0x1c]
push 4
push eax
push 4
push 0
push esi
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esi - 0xc]
cmp eax, dword [0x4644d8]
je 0x417877
add esi, 0xfffffff4
push esi
call edi
test eax, eax
jg 0x417877
push esi
call fcn.00425cdd
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret