Function at 0x4117d0
Capabilities:
Check os version
Create directory
Delete registry value
Get common file path
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x344
mov eax, dword [0x4f2500]
xor eax, esp
mov dword [esp + 0x340], eax
mov eax, dword [0x4f7510]
push ebx
push esi
push edi
test eax, eax
jne 0x411817
push 0x24d0
call fcn.0042336c
add esp, 4
test eax, eax
je 0x411810
mov esi, eax
call fcn.00415ef0
jmp 0x411812
xor eax, eax
mov dword [0x4f7510], eax
mov esi, eax
mov dword [esp + 0x20], esi
call fcn.00414df0
mov ebx, dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x411861
lea eax, [esp + 0x28]
push eax
mov dword [esp + 0x2c], 0x114
call ebx
cmp dword [esp + 0x2c], 6
jb 0x411850
push str.GamePlusPlus
call fcn.004060e0
test eax, eax
jne 0x411861
mov ecx, str.GamePlusPlus
call fcn.00406570
test eax, eax
jne 0x411861
push eax
jmp 0x411875
push 1
mov edi, str.GamePlusPlus
lea ecx, [esi + 0xc30]
call fcn.004048b0
push 1
call fcn.00419460
add esp, 4
lea ecx, [esp + 0x28]
push ecx
mov dword [esp + 0x2c], 0x114
call ebx
cmp dword [esp + 0x2c], 6
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
jb 0x4118a7
push 0x4cda38
call fcn.004060e0
test eax, eax
jne 0x4118b5
mov ecx, 0x4cda38
call fcn.00406570
test eax, eax
je 0x4118fe
push 0x4cda38
call fcn.00405ea0
lea edx, [esp + 0x10]
push edx
push 0x2001f
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x24], 0
call edi
test eax, eax
jne 0x4118fe
mov esi, dword [esp + 0x10]
push 0x4cda38
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test esi, esi
je 0x4118fe
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esp + 0x28]
push eax
mov dword [esp + 0x2c], 0x114
call ebx
cmp dword [esp + 0x2c], 6
jb 0x411922
push 0x4cbc74
call fcn.004060e0
test eax, eax
jne 0x411930
mov ecx, 0x4cbc74
call fcn.00406570
test eax, eax
je 0x411979
push 0x4cbc74
call fcn.00405ea0
lea ecx, [esp + 0x10]
push ecx
push 0x2001f
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x24], 0
call edi
test eax, eax
jne 0x411979
mov esi, dword [esp + 0x10]
push 0x4cbc74
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test esi, esi
je 0x411979
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [0x4f7510]
test eax, eax
jne 0x4119a3
push 0x24d0
call fcn.0042336c
add esp, 4
test eax, eax
je 0x41199c
mov esi, eax
call fcn.00415ef0
jmp 0x41199e
xor eax, eax
mov dword [0x4f7510], eax
cmp dword [eax + 0x22c4], 0
mov eax, 0x4cbd48
jne 0x4119b6
mov eax, 0x4cbc74
lea esi, [esp + 0x18]
call fcn.004032d0
mov esi, dword [esp + 0x20]
lea eax, [esi + 0x410]
add esi, 0xe38
mov edx, esi
mov dword [esp + 0x24], eax
mov dword [esp + 0x1c], esi
sub edx, eax
jmp 0x4119e0
movzx ecx, word [eax]
mov word [eax + edx], cx
add eax, 2
test cx, cx
jne 0x4119e0
push 0x4cb7dc
push 0x104
push esi
call fcn.00425516
push 0x4cdb04
push 0x104
push esi
call fcn.00425516
xor edx, edx
push 0x206
push edx
lea eax, [esp + 0x162]
push eax
mov word [esp + 0x164], dx
call fcn.004276b0
add esp, 0x24
lea ecx, [esp + 0x14]
push ecx
push 0x17
push 0
mov dword [esp + 0x20], 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x411b26
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x140]
push edx
push eax
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
mov ecx, dword [esp + 0x14]
push ecx
mov esi, eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
test esi, esi
je 0x411b26
lea edi, [esp + 0x140]
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x411a80
mov edx, dword [0x4cb7dc]
mov ebx, dword [esp + 0x18]
mov dword [edi], edx
cmp dword [ebx - 4], 1
jle 0x411ab0
mov eax, dword [ebx - 0xc]
push eax
lea ecx, [esp + 0x1c]
push ecx
call fcn.00403690
mov ebx, dword [esp + 0x18]
mov eax, ebx
mov edx, ebx
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x411ab4
lea edi, [esp + 0x140]
sub eax, edx
add edi, 0xfffffffe
jmp 0x411ad0
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x411ad0
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebx - 8]
push eax
push ebx
call fcn.00423a17
add esp, 8
test eax, eax
js 0x411b1c
cmp eax, dword [ebx - 8]
jg 0x411b1c
xor edx, edx
mov dword [ebx - 0xc], eax
mov word [ebx + eax*2], dx
push edx
lea eax, [esp + 0x144]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
jmp 0x411b2a
push 0x80070057
call fcn.00402e50
mov ebx, dword [esp + 0x18]
mov eax, dword [0x4f7510]
test eax, eax
jne 0x411b54
push 0x24d0
call fcn.0042336c
add esp, 4
test eax, eax
je 0x411b4d
mov esi, eax
call fcn.00415ef0
jmp 0x411b4f
xor eax, eax
mov dword [0x4f7510], eax
mov edi, eax
test eax, eax
jne 0x411b83
push 0x24d0
call fcn.0042336c
add esp, 4
test eax, eax
je 0x411b79
mov esi, eax
call fcn.00415ef0
mov dword [0x4f7510], eax
jmp 0x411b83
mov dword [0x4f7510], 0
mov ecx, dword [edi + 0x22c4]
push 1
push ecx
lea eax, [esp + 0x148]
lea esi, [esp + 0x1c]
call fcn.00414330
mov edx, dword [0x4f36ec]
mov eax, dword [edx + 0xc]
mov ecx, 0x4f36ec
call eax
add eax, 0x10
mov dword [esp + 0x10], eax
mov eax, dword [0x4f7510]
test eax, eax
jne 0x411bdd
push 0x24d0
call fcn.0042336c
add esp, 4
test eax, eax
je 0x411bd6
mov esi, eax
call fcn.00415ef0
jmp 0x411bd8
xor eax, eax
mov dword [0x4f7510], eax
add eax, 0x410
push eax
push str._s_resdesk.ico
lea edi, [esp + 0x18]
call fcn.00404650
mov edi, 1
add esp, 8
cmp dword [ebx - 4], edi
jle 0x411c10
mov ecx, dword [ebx - 0xc]
push ecx
lea edx, [esp + 0x1c]
push edx
call fcn.00403690
mov ebx, dword [esp + 0x18]
mov esi, dword [esp + 0x14]
cmp dword [esi - 4], edi
jle 0x411c2b
mov eax, dword [esi - 0xc]
push eax
lea ecx, [esp + 0x18]
push ecx
call fcn.00403690
mov esi, dword [esp + 0x14]
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x10]
push esi
add edx, 0xc30
push edx
push eax
mov edx, 0x4cb44c
lea ecx, [esp + 0x14c]
call fcn.00412e10
mov eax, dword [esi - 8]
push eax
push esi
call fcn.00423a17
add esp, 8
test eax, eax
js 0x411b1c
cmp eax, dword [esi - 8]
jg 0x411b1c
mov edi, dword [esp + 0x18]
mov dword [esi - 0xc], eax
xor ecx, ecx
mov word [esi + eax*2], cx
mov eax, dword [edi - 8]
push eax
push edi
call fcn.00423a17
add esp, 8
test eax, eax
js 0x411b1c
cmp eax, dword [edi - 8]
jg 0x411b1c
mov ebx, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
xor edx, edx
mov dword [edi - 0xc], eax
push ebx
mov word [edi + eax*2], dx
call fcn.004129a0
call fcn.0040a740
call fcn.004075d0
test eax, eax
jne 0x411ce8
lea eax, [esp + 0x1c]
push eax
push 0x4cda5c
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x411ce8
mov ecx, dword [esp + 0x24]
lea eax, [ebx + 0x820]
push ecx
lea ebx, [esp + 0x20]
call fcn.00412cd0
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x411d08
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x411d24
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x411d40
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x34c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0042292e
mov esp, ebp
pop ebp
ret