Function at 0x473a30
Capabilities:
Persist via app paths registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x560ce0
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x5a6124]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov dword [ebp - 0x1c], ecx
mov eax, dword [0x5ac178]
mov dword [ebp - 0x20], 0
test al, 1
jne 0x473ab6
or eax, 1
mov dword [0x5ac178], eax
call fcn.00408130
mov ecx, eax
test ecx, ecx
jne 0x473a8a
push 0x80004005
call fcn.00407c80
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x473a9f
lock inc dword [ecx + 0x14]
lea eax, [ecx + 8]
jmp 0x473aa1
call edx
add eax, 0x10
push 0x56c840
mov dword [0x5ac17c], eax
call fcn.00502944
add esp, 4
mov eax, dword [0x5ac17c]
cmp dword [eax - 0xc], 0
jne 0x473c4f
sub esi, 0
je 0x473ad4
mov edi, str.SoftwareMicrosoftWindowsCurrentVersionApp_PathsiOSRecovery_360.exe
sub esi, 1
je 0x473ad9
mov edi, str.SoftwareMicrosoftWindowsCurrentVersionApp_PathsDataRecovery_360.exe
push 0x584b94
push edi
mov edx, reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x18]
call fcn.004a19f0
add esp, 8
mov dword [ebp - 4], 0
mov ecx, dword [eax]
mov ebx, dword [0x5ac17c]
add ebx, 0xfffffff0
lea edx, [ecx - 0x10]
cmp edx, ebx
je 0x473b3e
cmp dword [ebx + 0xc], 0
jl 0x473b30
mov eax, dword [edx]
cmp eax, dword [ebx]
jne 0x473b30
push edx
call fcn.00407010
add esp, 4
mov ecx, ebx
mov esi, eax
call fcn.004081d0
lea eax, [esi + 0x10]
mov dword [0x5ac17c], eax
jmp 0x473b3e
push dword [ecx - 0xc]
push ecx
mov ecx, 0x5ac17c
call fcn.00407990
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x473b87
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x473b83
mov edx, dword [edx + 4]
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x473b83
push 0
push dword [edx + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x473b87
mov ecx, edx
call esi
mov eax, dword [0x5ac17c]
cmp dword [eax - 0xc], 0
jne 0x473c4f
lea ecx, [ebp - 0x18]
call fcn.004a38a0
push eax
mov ecx, 0x5ac17c
mov dword [ebp - 4], 1
call fcn.00402730
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], 0xffffffff
call fcn.00407c20
mov ebx, dword [0x5ac17c]
mov esi, ebx
lea ecx, [esi + 2]
nop word [eax + eax]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x473bd0
push 0
lea eax, [ebp - 0x14]
mov dword [ebp - 0x10], reloc.OLEAUT32.dll_SysReAllocString
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push edi
sub esi, ecx
mov dword [ebp - 0x14], 0
push reloc.OLEAUT32.dll_SysReAllocString
sar esi, 1
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x473c42
mov eax, dword [ebp - 0x10]
cmp eax, reloc.OLEAUT32.dll_SysReAllocString
je 0x473c23
push eax
call edi
mov ecx, dword [ebp - 0x14]
lea eax, [esi*2 + 2]
push eax
push ebx
push 1
push 0
push 0x584b94
push ecx
mov dword [ebp - 0x10], ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [ebp - 0x10]
cmp eax, reloc.OLEAUT32.dll_SysReAllocString
je 0x473c4f
push eax
call edi
mov eax, dword [0x5ac17c]
add eax, 0xfffffff0
push eax
call fcn.00407010
mov ecx, dword [ebp - 0x1c]
add esp, 4
add eax, 0x10
mov dword [ecx], eax
mov eax, ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret