Function at 0x40bfb5
Capabilities:
Check if file exists
Get session user name
Persist via run registry key

Disassembly:
push 0x28c
mov eax, 0x621469
call fcn.00503bb3
mov edi, ecx
xor ebx, ebx
lea esi, [edi + 0x80]
mov dword [ebp - 0x298], ebx
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x40bfde
mov eax, dword [esi]
push str.InstallLocation
push eax
lea eax, [ebp - 0x230]
push reloc.OLEAUT32.dll_SysReAllocString
push eax
call fcn.0041d69b
add esp, 0x10
and dword [ebp - 4], 0
cmp dword [ebp - 0x220], 0
jbe 0x40c037
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
push eax
lea eax, [ebp - 0x248]
push eax
call fcn.0041dcef
xor ebx, ebx
inc ebx
pop ecx
cmp dword [eax + 0x10], 0
pop ecx
mov byte [ebp - 0x291], bl
jbe 0x40c03e
mov byte [ebp - 0x291], 0
test bl, 1
je 0x40c051
lea ecx, [ebp - 0x248]
and ebx, 0xfffffffe
call fcn.004019ec
cmp byte [ebp - 0x291], 0
je 0x40c07a
and dword [ebp - 0x220], 0
lea eax, [ebp - 0x230]
cmp dword [ebp - 0x21c], 8
cmovae eax, dword [ebp - 0x230]
xor ecx, ecx
mov word [eax], cx
cmp byte [edi + 0x98], 0
jne 0x40c149
cmp dword [ebp - 0x220], 0
ja 0x40c354
cmp dword [esi + 0x14], 8
jb 0x40c09c
mov esi, dword [esi]
push str.InstallLocation
push esi
lea eax, [ebp - 0x248]
push reloc.WS2_32.dll_accept
push eax
call fcn.0041d69b
add esp, 0x10
lea ecx, [ebp - 0x230]
push eax
call fcn.004034bf
lea ecx, [ebp - 0x248]
call fcn.004019ec
cmp dword [ebp - 0x220], 0
jbe 0x40c109
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
push eax
lea eax, [ebp - 0x248]
push eax
call fcn.0041dcef
pop ecx
or ebx, 2
mov byte [ebp - 0x291], 1
pop ecx
cmp dword [eax + 0x10], 0
jbe 0x40c110
mov byte [ebp - 0x291], 0
test bl, 2
je 0x40c120
lea ecx, [ebp - 0x248]
call fcn.004019ec
cmp byte [ebp - 0x291], 0
je 0x40c149
and dword [ebp - 0x220], 0
lea eax, [ebp - 0x230]
cmp dword [ebp - 0x21c], 8
cmovae eax, dword [ebp - 0x230]
xor ecx, ecx
mov word [eax], cx
cmp dword [ebp - 0x220], 0
ja 0x40c354
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.0051c7f0
add esp, 0xc
mov dword [ebp - 0x298], 0x104
lea eax, [ebp - 0x298]
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
push dword [ebp - 0x298]
and dword [ebp - 0x250], 0
lea ecx, [ebp - 0x260]
xor eax, eax
mov dword [ebp - 0x24c], 7
mov word [ebp - 0x260], ax
lea eax, [ebp - 0x218]
push eax
call fcn.00403d1e
lea eax, [ebp - 0x248]
mov byte [ebp - 4], 1
push eax
call fcn.0041d7b2
pop ecx
cmp byte [edi + 0x98], 0
mov byte [ebp - 4], 2
jne 0x40c230
cmp dword [ebp - 0x234], 8
lea ecx, [ebp - 0x248]
lea eax, [ebp - 0x260]
cmovae ecx, dword [ebp - 0x248]
cmp dword [ebp - 0x24c], 8
push ecx
cmovae eax, dword [ebp - 0x260]
push eax
call fcn.00409f3d
pop ecx
pop ecx
test al, al
je 0x40c230
push 0
lea eax, [ebp - 0x278]
push 0x1c
push eax
call fcn.0041ddf9
add esp, 0xc
lea ecx, [ebp - 0x230]
push eax
call fcn.004034bf
jmp 0x40c29b
lea eax, [ebp - 0x278]
push eax
call fcn.0041d93b
lea ecx, [ebp - 0x278]
mov byte [ebp - 4], 3
mov dword [esp], str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders_
call fcn.00401975
cmp dword [ebp - 0x264], 8
lea eax, [ebp - 0x278]
push str.Local_AppData
cmovae eax, dword [ebp - 0x278]
push eax
lea eax, [ebp - 0x290]
push reloc.WS2_32.dll_closesocket
push eax
call fcn.0041d69b
add esp, 0x10
lea ecx, [ebp - 0x230]
push eax
call fcn.004034bf
lea ecx, [ebp - 0x290]
call fcn.004019ec
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x278]
call fcn.004019ec
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40c2d5
push str.C:Program_Files__x86_
lea ecx, [ebp - 0x230]
call fcn.00403d6c
cmp dword [ebp - 0x220], 0
jbe 0x40c33a
lea eax, [ebp - 0x230]
push eax
call fcn.00409f05
pop ecx
test eax, eax
jne 0x40c2ff
push 0x6a1678
lea ecx, [ebp - 0x230]
call fcn.00401975
lea eax, [ebp - 0x290]
push str.SOFT_NAME_EN
push eax
call fcn.0040e937
pop ecx
pop ecx
cmp dword [eax + 0x14], 8
mov ecx, eax
mov byte [ebp - 4], 4
jb 0x40c320
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
lea ecx, [ebp - 0x230]
call fcn.00401917
lea ecx, [ebp - 0x290]
call fcn.004019ec
lea ecx, [ebp - 0x248]
call fcn.004019ec
lea ecx, [ebp - 0x260]
mov byte [ebp - 4], 0
call fcn.004019ec
lea eax, [ebp - 0x230]
push eax
call fcn.00409f05
pop ecx
test eax, eax
jne 0x40c375
push 0x6a1678
lea ecx, [ebp - 0x230]
call fcn.00401975
lea ecx, [ebp - 0x230]
push ecx
lea ecx, [edi + 8]
call fcn.00406db8
lea ecx, [ebp - 0x230]
call fcn.004019ec
mov al, 1
call fcn.00503b5d
ret