Function at 0x401380
Capabilities:
Create process on windows
Delete file
Delete registry key
Extract resource via kernel32 functions
Hide graphical window
Query or enumerate registry value
Set registry value
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x40d107
mov eax, dword fs:[0]
push eax
sub esp, 0x4a8
mov eax, dword [0x4160c0]
xor eax, esp
mov dword [esp + 0x4a0], eax
push ebx
push esi
push edi
mov eax, dword [0x4160c0]
xor eax, esp
push eax
lea eax, [esp + 0x4b8]
mov dword fs:[0], eax
push 0
call dword [sym.imp.KERNEL32.dll_GetConsoleWindow]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
lea eax, [esp + 0x1c]
push eax
push 0x20019
push 0
push str.SoftwareValveSteam
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x401835
push 0x206
push eax
mov word [esp + 0xa4], ax
lea eax, [esp + 0xa6]
push eax
call fcn.00407460
add esp, 0xc
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0xa0]
push eax
push 0
push 0
push str.SteamPath
push dword [esp + 0x30]
mov dword [esp + 0x38], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40182b
call fcn.00401250
lea eax, [esp + 0x9c]
push eax
lea ecx, [esp + 0x40]
call fcn.00401860
push str._version.dll
mov edx, eax
lea ecx, [esp + 0x58]
mov dword [esp + 0x4c4], 0
call fcn.004021b0
add esp, 4
mov byte [esp + 0x4c0], 2
cmp dword [esp + 0x50], 8
jb 0x401490
push dword [esp + 0x3c]
call fcn.00402f4d
add esp, 4
xor eax, eax
cmp dword [esp + 0x68], 8
mov word [esp + 0x3c], ax
lea eax, [esp + 0x54]
cmovae eax, dword [esp + 0x54]
push eax
mov dword [esp + 0x54], 7
mov dword [esp + 0x50], 0
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [esp + 0x9c]
push eax
lea ecx, [esp + 0x70]
call fcn.00401860
push str.hid.dll
mov edx, eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x4c4], 3
call fcn.004021b0
add esp, 4
mov byte [esp + 0x4c0], 5
cmp dword [esp + 0x80], 8
jb 0x401506
push dword [esp + 0x6c]
call fcn.00402f4d
add esp, 4
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
xor eax, eax
mov dword [esp + 0x80], 7
mov dword [esp + 0x7c], 0
mov word [esp + 0x6c], ax
xor esi, esi
jmp 0x401530
cmp dword [esp + 0x38], 8
push 0
push 0x80
push 2
push 0
push 0
lea eax, [esp + 0x38]
cmovae eax, dword [esp + 0x38]
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x401575
call fcn.00401250
push 0x3e8
call edi
inc esi
cmp esi, 5
jl 0x401530
jmp 0x4017ee
push 0x414568
push 0x66
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x401629
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x401629
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push esi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [edi]
push ecx
mov esi, eax
mov dword [esp + 0x1c], ecx
call fcn.00402592
add esp, 4
lea ecx, [esi - 4]
push ecx
mov dword [esp + 0x14], eax
mov esi, dword [esp + 0x14]
lea ecx, [edi + 4]
push ecx
lea eax, [esp + 0x20]
push eax
push esi
call fcn.0040a1c0
add esp, 0x10
test eax, eax
jne 0x40161a
push eax
mov dword [esp + 0x14], eax
lea eax, [esp + 0x14]
push eax
push dword [esp + 0x20]
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x401608
mov eax, dword [esp + 0x10]
cmp eax, dword [esp + 0x18]
je 0x40161a
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call fcn.00402f1e
add esp, 4
jmp 0x40165e
push esi
call fcn.00402f1e
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
add esp, 4
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call esi
cmp dword [esp + 0x38], 8
push 0
push 0x80
push 3
push 0
push 1
lea eax, [esp + 0x38]
cmovae eax, dword [esp + 0x38]
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x4016a5
cmp dword [esp + 0x38], 8
jb 0x401671
push dword [esp + 0x24]
call fcn.00402f4d
add esp, 4
xor eax, eax
cmp dword [esp + 0x68], 8
mov dword [esp + 0x38], 7
mov dword [esp + 0x34], 0
mov word [esp + 0x24], ax
jb 0x40169b
push dword [esp + 0x54]
call fcn.00402f4d
add esp, 4
mov eax, 1
jmp 0x401837
push eax
call esi
lea eax, [esp + 0x14]
push eax
push 0x20019
push 0
push str.SoftwareValveSteamtools
push 0x80000001
mov bl, 1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x401724
push 0x206
push eax
mov word [esp + 0x2ac], ax
lea eax, [esp + 0x2ae]
push eax
call fcn.00407460
add esp, 0xc
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x2a8]
push eax
push 0
push 0
push str.iscdkey
push dword [esp + 0x28]
mov dword [esp + 0x28], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [esp + 0x14]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
neg eax
sbb al, al
and bl, al
call esi
jmp 0x40172a
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push str.SoftwareValveSteamtools
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push 0x64
call edi
push 0
lea eax, [esp + 0x18]
push eax
push 0
push 0x20006
push 0
push 0
push 0
push str.SoftwareValveSteamtools
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x401785
push 0xa
push str.true
push 1
push eax
push str.iscdkey
push dword [esp + 0x28]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [esp + 0x14]
call esi
lea eax, [esp + 0x9c]
push eax
lea ecx, [esp + 0x88]
call fcn.00401860
push str._steam.exe
mov edx, eax
lea ecx, [esp + 0x40]
mov byte [esp + 0x4c4], 6
call fcn.004021b0
add esp, 4
lea ecx, [esp + 0x84]
call fcn.004018c0
lea ecx, [esp + 0x3c]
call fcn.00401320
test bl, bl
je 0x4017e5
push 1
push 0
push 0
push str.steam:__open_activateproduct
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
lea ecx, [esp + 0x3c]
call fcn.004018c0
cmp dword [esp + 0x38], 8
jb 0x401801
push dword [esp + 0x24]
call fcn.00402f4d
add esp, 4
xor eax, eax
cmp dword [esp + 0x68], 8
mov dword [esp + 0x38], 7
mov dword [esp + 0x34], 0
mov word [esp + 0x24], ax
jb 0x40182b
push dword [esp + 0x54]
call fcn.00402f4d
add esp, 4
push dword [esp + 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov ecx, dword [esp + 0x4b8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x4a0]
xor ecx, esp
call fcn.0040259b
mov esp, ebp
pop ebp
ret