Function at 0x4590d0
Capabilities:
Create process on windows
Create process suspended
Query environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x590c73
push eax
mov dword fs:[0], esp
sub esp, 0x238
push ebx
mov ebx, ecx
push esi
push edi
cmp dword [ebx + 0x70], 0
je 0x459708
cmp dword [ebx + 0x6c], 0
je 0x459708
cmp dword [ebx + 0x68], 0
je 0x459708
push dword [ebx + 0x18]
lea eax, [ebx + 0x1d]
push str.HKEY_LOCAL_MACHINESoftwareValveSteamApps_d
push 0x40
push eax
call fcn.0046a130
push 0xff
lea eax, [ebp - 0x244]
push 0
push eax
call fcn.0056d800
mov ecx, dword [ebx + 0x6c]
lea eax, [ebp - 0x244]
add esp, 0x1c
mov dword [ebp - 0x20], 0
push 0
push 0
push 0xff
push eax
lea eax, [ebp - 0x20]
push eax
push ecx
mov eax, esp
mov dword [eax], ecx
call fcn.00457580
add esp, 0x18
test al, al
jne 0x45917d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebx + 0x6c]
push str.BExtractRegParts_failed:
jmp 0x459719
cmp byte [ebx + 0x61], 0
jne 0x4591d1
mov eax, dword [ebx + 0x98]
lea ecx, [ebx + 0x98]
mov esi, dword [ebp - 0x20]
mov edx, dword [ebx + 0x68]
mov dword [ebp - 0x14], 0
mov edi, dword [eax + 4]
lea eax, [ebp - 0x14]
push eax
push ecx
mov eax, esp
push ecx
mov dword [eax], edx
mov eax, esp
lea edx, [ebp - 0x244]
push esi
mov dword [eax], edx
call edi
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebx + 0x64]
jb 0x4591d1
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [ebx + 0x1c], 0
je 0x4592af
mov edi, dword [0x628050]
mov esi, dword [ebx + 0x70]
cmp edi, 0xffffffff
je 0x45929b
mov eax, dword [0x628064]
lea ecx, [edi + edi*2]
shl ecx, 3
mov dword [ebp - 0x14], ecx
add ecx, 0x10
add eax, ecx
mov ecx, 0x593554
mov dword [ebp - 0x18], eax
push SysReAllocString
mov eax, dword [eax]
test eax, eax
cmovne ecx, eax
push ecx
push esi
call fcn.0046a630
add esp, 0xc
test eax, eax
jns 0x45923e
mov eax, dword [0x628064]
cmp edi, 0xffffffff
je 0x459235
mov edi, dword [ebp - 0x14]
add edi, eax
mov edi, dword [edi]
jmp 0x459279
mov edi, 0x62803c
mov edi, dword [edi]
jmp 0x459279
mov eax, dword [ebp - 0x18]
mov ecx, 0x593554
push SysReAllocString
push esi
mov eax, dword [eax]
test eax, eax
cmovne ecx, eax
push ecx
call fcn.0046a630
add esp, 0xc
test eax, eax
jns 0x459296
mov eax, dword [0x628064]
cmp edi, 0xffffffff
je 0x459271
mov edi, dword [ebp - 0x14]
add edi, eax
jmp 0x459276
mov edi, 0x62803c
mov edi, dword [edi + 4]
cmp edi, 0xffffffff
jne 0x4591f2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebx + 0x70]
push str.Executable_not_white_listed:
jmp 0x459719
cmp edi, 0xffffffff
jne 0x4592af
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebx + 0x70]
push str.Executable_not_white_listed:
jmp 0x459719
push dword [ebx + 0x70]
lea eax, [ebp - 0x1c]
push eax
call fcn.004589b0
add esp, 8
push eax
lea ecx, [ebp - 0x60]
mov dword [ebp - 4], 0
mov byte [ebp - 0x60], 0
mov byte [ebp - 0x51], 0xf
call fcn.0046b600
mov byte [ebp - 4], 3
call fcn.004802a0
push 0
push dword [ebp - 0x1c]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x1c]
mov ecx, eax
call edx
push dword [ebx + 0x74]
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 2
push eax
call fcn.00462ea0
add esp, 8
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 4
push eax
lea ecx, [ebp - 0x50]
mov byte [ebp - 0x50], 0
mov byte [ebp - 0x41], 0xf
call fcn.0046b600
mov byte [ebp - 4], 7
call fcn.004802a0
push 0
push dword [ebp - 0x14]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x1c]
mov ecx, eax
call edx
mov byte [ebp - 0x30], 0
mov byte [ebp - 0x21], 0xf
cmp byte [ebp - 0x41], 0
mov byte [ebp - 4], 8
jge 0x45934f
mov eax, dword [ebp - 0x50]
test eax, eax
jne 0x459352
mov eax, 0x593554
jmp 0x459352
lea eax, [ebp - 0x50]
cmp byte [ebp - 0x51], 0
jge 0x459366
mov ecx, dword [ebp - 0x60]
test ecx, ecx
jne 0x459369
mov ecx, 0x593554
jmp 0x459369
lea ecx, [ebp - 0x60]
push eax
push ecx
lea eax, [ebp - 0x30]
push str.__s___s
push eax
call fcn.0046aca0
push 0x80
lea eax, [ebp - 0x144]
push 0
push eax
call fcn.0056d800
push dword [ebx + 0x18]
lea eax, [ebp - 0x144]
push str.SteamAppId_d
push eax
call fcn.00458680
add esp, 0x28
lea esi, [eax + 1]
mov dword [ebp - 0x1c], esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov dword [ebp - 0x14], eax
test eax, eax
jne 0x4593cb
mov edi, str.GetEnvironmentStrings_failed
mov esi, 0x593554
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4595cd
mov ecx, eax
xor eax, eax
xor edi, edi
xor edx, edx
lea ecx, [ecx + 2]
inc eax
lea edi, [edi + 1]
cmp word [ecx - 2], dx
cmovne eax, edx
cmp eax, 2
jne 0x4593d1
mov ecx, 2
lea eax, [edi + esi]
mul ecx
mov ecx, 0xffffffff
cmovb eax, ecx
push eax
call fcn.0056be3b
mov esi, eax
add esp, 4
mov dword [ebp - 0x18], esi
test esi, esi
je 0x45943a
mov esi, dword [ebp - 0x1c]
lea eax, [ebp - 0x144]
add esi, esi
push esi
push eax
push dword [ebp - 0x18]
call fcn.0056db20
lea eax, [edi + edi]
mov edi, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x18]
add eax, esi
push edi
push eax
call fcn.0056db20
mov esi, dword [ebp - 0x18]
add esp, 0x18
jmp 0x45943d
mov edi, dword [ebp - 0x14]
xor eax, eax
mov dword [ebp - 0xa0], 0
mov dword [ebp - 0x9c], 0
mov dword [ebp - 0x98], 0
mov dword [ebp - 0x94], 0
mov dword [ebp - 0x90], 0
mov dword [ebp - 0x8c], 0
mov dword [ebp - 0x88], 0
mov dword [ebp - 0x84], 0
mov dword [ebp - 0x80], 0
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x74], 0
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0xa4], 0x44
cmp byte [ebx + 0x1c], al
je 0x45952f
cmp byte [ebp - 0x21], al
jge 0x4594f5
mov eax, dword [ebp - 0x30]
test eax, eax
jne 0x4594f8
mov eax, 0x593554
jmp 0x4594f8
lea eax, [ebp - 0x30]
push 4
push eax
lea ecx, [ebp - 0xb4]
call fcn.004586a0
push 0
push 1
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 9
push ecx
lea ecx, [ebp - 0xa4]
push ecx
push esi
mov ecx, eax
call fcn.004599c0
push eax
call fcn.00462c00
add esp, 0x18
mov byte [ebp - 0xd], al
jmp 0x459586
cmp byte [ebp - 0x21], al
jge 0x459542
mov eax, dword [ebp - 0x30]
test eax, eax
jne 0x459545
mov eax, 0x593554
jmp 0x459545
lea eax, [ebp - 0x30]
push 4
push eax
lea ecx, [ebp - 0xb4]
call fcn.004586a0
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0xa
push ecx
lea ecx, [ebp - 0xa4]
push ecx
push 0
push esi
push 0x400
push 0
push 0
push 0
mov ecx, eax
call fcn.004599c0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
setne byte [ebp - 0xd]
lea ecx, [ebp - 0xb4]
mov byte [ebp - 4], 8
call fcn.00456330
push esi
call fcn.0056be44
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
cmp byte [ebp - 0xd], 0
jne 0x459604
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp byte [ebp - 0x21], 0
jge 0x4595c5
mov esi, dword [ebp - 0x30]
test esi, esi
jne 0x4595c8
mov esi, 0x593554
jmp 0x4595c8
lea esi, [ebp - 0x30]
mov edi, str.CreateProcess_failed:
push eax
push esi
push edi
mov ecx, ebx
call fcn.00458c30
xor bl, bl
lea ecx, [ebp - 0x30]
call fcn.004588f0
lea ecx, [ebp - 0x50]
call fcn.004588f0
lea ecx, [ebp - 0x60]
call fcn.004588f0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x38]
push 0xffffffffffffffff
push dword [ebp - 0x40]
mov dword [ebx + 0x94], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebx + 0x94], 0
test eax, eax
jne 0x4595d7
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x40]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x45966b
mov edx, dword [ebx + 0x90]
xor eax, eax
mov esi, dword [ebx + 0x84]
test edx, edx
jle 0x459665
nop
cmp dword [esi + eax*4], ecx
je 0x459660
inc eax
cmp eax, edx
jl 0x459650
mov byte [ebp - 0xd], 0
jmp 0x45966f
cmp eax, 0xffffffff
jne 0x45966b
mov byte [ebp - 0xd], 0
jmp 0x45966f
mov byte [ebp - 0xd], 1
push dword [ebp - 0x40]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x3c]
call esi
push dword [ebp - 0x18]
lea eax, [ebp - 0xc4]
push str.Exit_Code___d__:
push 0x20
push eax
call fcn.0046a130
add esp, 0x10
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp byte [ebp - 0x21], 0
jge 0x4596b2
mov ecx, dword [ebp - 0x30]
test ecx, ecx
jne 0x4596b5
mov ecx, 0x593554
jmp 0x4596b5
lea ecx, [ebp - 0x30]
push eax
push ecx
lea eax, [ebp - 0xc4]
mov ecx, ebx
push eax
call fcn.00458c30
cmp byte [ebp - 0xd], 0
jne 0x4596d6
cmp byte [ebx + 0x60], 0
jne 0x459701
jmp 0x4595d7
mov eax, dword [ebx + 0x98]
lea ecx, [ebx + 0x98]
push dword [ebx + 0x64]
mov esi, dword [ebp - 0x20]
mov edx, dword [ebx + 0x68]
mov edi, dword [eax + 0x10]
push ecx
mov eax, esp
push ecx
mov dword [eax], edx
mov eax, esp
lea edx, [ebp - 0x244]
push esi
mov dword [eax], edx
call edi
mov bl, 1
jmp 0x4595d9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x593554
push str.Missing_parameters
mov ecx, ebx
call fcn.00458c30
mov ecx, dword [ebp - 0xc]
xor al, al
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret