Function at 0x405021
Capabilities:
Check os version
Create process on windows
Persist via default file association registry key
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
sub esp, 0x208
lea ebp, [esp - 4]
mov eax, dword [0x40e1ec]
xor eax, ebp
mov dword [ebp + 0x208], eax
push 0x1c
mov eax, 0x407eb0
call fcn.00406ce7
xor esi, esi
push 0x206
lea eax, [ebp + 2]
push esi
push eax
mov word [ebp], si
call sub.MSVCR80.dll_memset
mov dword [ebp - 0x20], 0x208
mov dword [ebp - 0x28], 1
mov dword [ebp - 0x1c], esi
mov dword [ebp - 4], esi
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.TTUtilWidget.dll_int___cdecl_Util::Module::GetBinPath_wchar_t___]
add esp, 0x10
push str.SkinInstaller.exe
lea ecx, [ebp - 0x10]
call fcn.004015b5
mov byte [ebp - 4], 1
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x1c]
lea eax, [ebp - 0x18]
push eax
call fcn.004036a7
add esp, 0xc
mov byte [ebp - 4], 2
mov eax, dword [eax]
cmp eax, esi
je 0x4050ad
mov eax, dword [eax]
jmp 0x4050af
xor eax, eax
push eax
lea ecx, [ebp - 0x14]
call fcn.00401d24
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x18]
cmp ecx, esi
je 0x4050cb
call fcn.00401787
mov dword [ebp - 0x18], esi
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x10]
cmp ecx, esi
je 0x4050de
call fcn.00401787
mov dword [ebp - 0x10], esi
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp]
push eax
lea eax, [ebp - 0x28]
push eax
push esi
mov edi, str..tts
push edi
mov esi, SysReAllocStringLen
push esi
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x4051fc
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x18]
call fcn.00401d24
mov byte [ebp - 4], 6
push str.ttsfile
mov ecx, eax
call fcn.00402d79
mov ebx, eax
neg ebx
sbb bl, bl
inc bl
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x18]
call fcn.00401848
test bl, bl
je 0x4051fc
mov ebx, 0x208
push ebx
lea eax, [ebp]
push 0
push eax
call sub.MSVCR80.dll_memset
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp]
push eax
lea eax, [ebp - 0x28]
push eax
push 0
push 0x40a968
push esi
mov dword [ebp - 0x20], ebx
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x4051fc
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x10]
call fcn.00401d24
mov byte [ebp - 4], 7
push 0x409434
push 0x40a964
lea ecx, [ebp - 0x10]
call fcn.00403ad4
push 0x20
lea ecx, [ebp - 0x10]
call fcn.00402d32
cmp eax, 0xffffffff
je 0x4051f0
push eax
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x10]
call fcn.004035b2
mov byte [ebp - 4], 8
push eax
lea ecx, [ebp - 0x10]
call fcn.00403c81
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x18]
call fcn.00401848
push dword [ebp - 0x14]
push dword [ebp - 0x10]
call dword [sym.imp.MSVCR80.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
jne 0x4051f0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x10]
call fcn.00401848
jmp 0x4052d8
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x10]
call fcn.00401848
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
and dword [ebp - 0x24], 0
lea eax, [ebp - 0x24]
push eax
push edi
push esi
call ebx
test eax, eax
jne 0x40528c
push 0xe
push str.ttsfile
push 1
push 0x409434
push edi
mov edi, dword [sym.imp.SHLWAPI.dll_SHSetValueW]
push esi
call edi
test eax, eax
jne 0x40528c
lea eax, [ebp - 0x24]
push eax
push 0x40a968
push esi
call ebx
test eax, eax
jne 0x40528c
push str._SkinInstaller.exe____1_
lea ecx, [ebp - 0x10]
call fcn.00401d24
mov byte [ebp - 4], 9
push dword [ebp - 0x14]
lea ecx, [ebp - 0x10]
push str.SkinInstaller.exe
call fcn.00403ad4
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx - 0xc]
add eax, eax
push eax
push ecx
push 1
push 0x409434
push 0x40a968
push esi
call edi
test eax, eax
je 0x4051df
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x10]
call fcn.00401848
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 6
push 0x40
push str.IDS_PROGRAM_DLG_TITLE
jae 0x4052ab
call sub.TTUtilWidget.dll_wchar_t_const____cdecl_TXLoadString_wchar_t_const__
pop ecx
push eax
push 0x40a878
jmp 0x4052b7
call sub.TTUtilWidget.dll_wchar_t_const____cdecl_TXLoadString_wchar_t_const__
pop ecx
push eax
push 0x40a7f0
call dword [sym.imp.TTUtilWidget.dll_struct_HWND______cdecl_Util::Module::GetMainWindowHandler_void_]
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
xor eax, eax
push eax
push eax
push eax
push dword [ebp - 0x14]
push str.runas
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.00401848
or dword [ebp - 4], 0xffffffff
push dword [ebp - 0x1c]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x208]
xor ecx, ebp
call fcn.00406cd8
add ebp, 0x20c
leave
ret