Function at 0x45c290
Capabilities:
Acquire debug privileges
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
mov eax, dword [0x508040]
xor eax, ebp
mov dword [ebp - 4], eax
call fcn.0045bf90
mov dword [ebp - 0x4c], eax
xor eax, eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x34], 0
lea ecx, [ebp - 0x34]
push ecx
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x45c32b
mov dword [ebp - 0x18], 1
mov edx, 0xc
imul eax, edx, 0
mov dword [ebp + eax - 0xc], 2
mov ecx, 0xc
imul edx, ecx, 0
lea eax, [ebp + edx - 0x14]
push eax
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
je 0x45c320
push 0
push 0
push 0
lea ecx, [ebp - 0x18]
push ecx
push 0
mov edx, dword [ebp - 0x34]
push edx
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
nop
mov eax, dword [ebp - 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov ecx, dword [ebp - 0x4c]
push ecx
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 0
jne 0x45c358
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x60], eax
mov eax, 0xfffffffe
jmp 0x45c4f9
mov edx, dword [ebp - 0x40]
push edx
call fcn.0045be70
add esp, 4
movzx eax, al
test eax, eax
jne 0x45c37f
mov ecx, dword [ebp - 0x40]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0xfffffffd
jmp 0x45c4f9
mov ecx, 0x57ed28
call fcn.00448dc0
push eax
call fcn.004af9e3
add esp, 4
mov dword [ebp - 0x50], eax
mov edx, dword [ebp - 0x50]
mov dword [ebp - 0x48], edx
cmp dword [ebp - 0x48], 0
jne 0x45c3b5
mov eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0xfffffff9
jmp 0x45c4f9
mov ecx, 0x57ed28
call fcn.00448dc0
push eax
mov ecx, 0x57ed28
call fcn.00448dd0
push eax
mov ecx, dword [ebp - 0x48]
push ecx
call fcn.004b2880
add esp, 0xc
push 0
push 1
push 1
push 1
push 1
push 1
push 4
mov edx, dword [ebp - 0x48]
mov ecx, dword [ebp - 0x40]
call fcn.0045b690
add esp, 0x1c
movzx edx, al
test edx, edx
jne 0x45c418
mov ecx, 0x57ed28
call fcn.0044f1e0
mov eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0xfffffff8
jmp 0x45c4f9
mov ecx, 0x57ed28
call fcn.0044f1e0
mov ecx, dword [ebp - 0x40]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [0x57ed8c], 1
push 0
lea edx, [ebp - 0x38]
push edx
push 0
push 0xf003f
push 0
push 0
push 0
push str.SOFTWAREValveSteamUserslatest_user_t
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov dword [ebp - 0x54], eax
cmp dword [ebp - 0x54], 0
jne 0x45c4f7
mov eax, dword [0x57ed68]
mov dword [ebp - 8], eax
push 0x57ed38
lea ecx, [ebp - 0x30]
call fcn.0043bb20
push 4
lea ecx, [ebp - 8]
push ecx
push 4
push 0
push 0x4fb74c
mov edx, dword [ebp - 0x38]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 0x64], eax
lea ecx, [ebp - 0x30]
call fcn.004301b0
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x44]
add eax, 1
mov dword [ebp - 0x58], eax
mov ecx, dword [ebp - 0x44]
mov dl, byte [ecx]
mov byte [ebp - 0x39], dl
add dword [ebp - 0x44], 1
cmp byte [ebp - 0x39], 0
jne 0x45c4a8
mov eax, dword [ebp - 0x44]
sub eax, dword [ebp - 0x58]
mov dword [ebp - 0x5c], eax
mov ecx, dword [ebp - 0x5c]
add ecx, 1
push ecx
lea edx, [ebp - 0x30]
push edx
push 1
push 0
push 0x4fb750
mov eax, dword [ebp - 0x38]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 0x68], eax
mov ecx, dword [ebp - 0x38]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x30]
call fcn.0043ba90
nop
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004af2b0
mov esp, ebp
pop ebp
ret