Function at 0x41b6d0
Capabilities:
Check if file exists
Persist via run registry key
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x4f4958
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x52a6ec]
xor eax, esp
mov dword [esp + 0x40], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x52a6ec]
xor eax, esp
push eax
lea eax, [esp + 0x58]
mov dword fs:[0], eax
mov edi, ecx
lea eax, [esp + 0x18]
push eax
mov ecx, 0x506c24
mov dword [esp + 0x24], edi
call fcn.00405cc0
xor esi, esi
mov dword [esp + 0x60], esi
mov ecx, dword [edi]
cmp ecx, esi
je 0x41b731
mov edx, dword [ecx]
mov edx, dword [edx + 4]
lea eax, [esp + 0x18]
push eax
push 4
call edx
or ebx, 0xffffffff
mov dword [esp + 0x60], ebx
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, ebx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41b757
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor cl, cl
call fcn.0041b4e0
call fcn.00419c20
test al, al
je 0x41b76e
mov cl, 1
call fcn.0041b4e0
lea ecx, [esp + 0x18]
push ecx
mov ecx, 0x5060ec
call fcn.00405cc0
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x2c]
push esi
push eax
mov dword [esp + 0x6c], 1
call fcn.00417ef0
add esp, 0xc
mov byte [esp + 0x60], 2
mov eax, dword [eax]
sub eax, 0x10
call fcn.00406260
lea ebp, [eax + 0x10]
mov dword [esp + 0x24], ebp
mov byte [esp + 0x60], 4
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, ebx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41b7d2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x60], 5
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, ebx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41b7f6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push ebp
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x41b97e
cmp byte [edi + 0xc], al
jne 0x41b831
lea eax, [ebp - 0x10]
mov dword [esp + 0x60], ebx
lea ecx, [eax + 0xc]
lock xadd dword [ecx], ebx
dec ebx
test ebx, ebx
jg 0x41b827
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 8
jmp 0x41b95f
mov edx, dword [0x52a1ec]
mov eax, dword [edx + 0xc]
mov ecx, 0x52a1ec
call eax
add eax, 0x10
mov dword [esp + 0x1c], eax
push str.__actioninstall
push ebp
push str.__s___s
lea edi, [esp + 0x28]
mov byte [esp + 0x6c], 6
call fcn.00404770
add esp, 0xc
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], esi
xor ecx, ecx
push 0x2011f
lea edx, [esp + 0x30]
mov word [esp + 0x3c], cx
push edx
mov eax, str.SoftwareMicrosoftWindowsCurrentVersionRunOnce
mov ecx, reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x54], 7
mov dword [esp + 0x50], esi
call fcn.00405df0
mov esi, dword [esp + 0x1c]
mov edi, dword [esp + 0x2c]
test eax, eax
jne 0x41b8d0
xor eax, eax
test esi, esi
setne al
test eax, eax
je 0x41b8d0
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
push eax
push esi
push 1
push 0
push 0x5060ec
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, 8
mov byte [esp + 0x60], al
cmp dword [esp + 0x4c], eax
jb 0x41b8ec
mov ecx, dword [esp + 0x38]
push ecx
call fcn.004c9387
add esp, 4
test edi, edi
je 0x41b8f7
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esi - 0x10]
mov byte [esp + 0x60], 5
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41b918
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [esp + 0x20]
xor esi, esi
mov ecx, dword [edi]
cmp ecx, esi
je 0x41b939
inc dword [edi + 8]
mov eax, dword [edi + 8]
imul eax, eax, 0x64
cdq
idiv dword [edi + 4]
mov esi, dword [ecx]
mov edx, dword [esi + 8]
push eax
call edx
lea eax, [ebp - 0x10]
mov dword [esp + 0x60], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41b95d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x58]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.004c9392
add esp, 0x50
ret
lea ecx, [esp + 0x1c]
push ecx
mov ecx, str.__actioninstall
call fcn.00405cc0
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x28]
push eax
call fcn.00413d00
add esp, 8
cmp eax, ebx
mov eax, dword [esp + 0x1c]
sete bl
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41b9c4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x41b91e
lea eax, [ebp - 0x10]
mov dword [esp + 0x60], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x41b81b