Function at 0x458f80
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 0x591923
push eax
mov dword fs:[0], esp
sub esp, 0x238
push ebx
push esi
push edi
mov edi, ecx
cmp byte [edi + 0x63], 0
jne 0x4595ce
cmp dword [edi + 0x70], 0
je 0x4595a3
cmp dword [edi + 0x6c], 0
je 0x4595a3
cmp dword [edi + 0x68], 0
je 0x4595a3
push dword [edi + 0x18]
lea eax, [edi + 0x1e]
push str.HKEY_LOCAL_MACHINESoftwareValveSteamApps_d
push 0x40
push eax
call fcn.0046a100
xor eax, eax
mov dword [ebp - 0xa0], 0
push 0xff
push eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x244]
push eax
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 - 0xa4], 0x44
call fcn.0056cde0
mov ecx, dword [edi + 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.00457570
add esp, 0x18
test al, al
jne 0x4590eb
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [edi + 0x6c]
mov ecx, edi
push str.BExtractRegParts_failed:
call fcn.00458830
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [edi + 0x62], 0
jne 0x459129
mov ecx, dword [edi + 0x68]
lea eax, [ebp - 0x14]
push eax
push ecx
mov eax, esp
mov dword [ebp - 0x14], 0
push ecx
mov dword [eax], ecx
mov eax, esp
lea ecx, [ebp - 0x244]
mov dword [eax], ecx
lea ecx, [edi + 0x98]
mov eax, dword [ecx]
push dword [ebp - 0x20]
call dword [eax + 4]
mov eax, dword [ebp - 0x14]
cmp eax, dword [edi + 0x64]
jae 0x4595ce
cmp byte [edi + 0x1d], 0
je 0x459210
mov ebx, dword [0x64d054]
mov esi, dword [edi + 0x70]
cmp ebx, 0xffffffff
je 0x4591e7
mov eax, dword [0x64d06c]
lea ebx, [ebx]
lea ecx, [ebx + ebx*2]
shl ecx, 3
mov dword [ebp - 0x14], ecx
add ecx, 0x10
add eax, ecx
mov ecx, 0x59934c
mov dword [ebp - 0x18], eax
push closesocket
mov eax, dword [eax]
test eax, eax
cmovne ecx, eax
push ecx
push esi
call fcn.0046a600
add esp, 0xc
test eax, eax
jns 0x45919c
mov eax, dword [0x64d06c]
cmp ebx, 0xffffffff
je 0x459193
mov ebx, dword [ebp - 0x14]
add ebx, eax
mov ebx, dword [ebx]
jmp 0x4591d7
mov ebx, 0x64d040
mov ebx, dword [ebx]
jmp 0x4591d7
mov eax, dword [ebp - 0x18]
mov ecx, 0x59934c
push closesocket
push esi
mov eax, dword [eax]
test eax, eax
cmovne ecx, eax
push ecx
call fcn.0046a600
add esp, 0xc
test eax, eax
jns 0x4591e2
mov eax, dword [0x64d06c]
cmp ebx, 0xffffffff
je 0x4591cf
mov ebx, dword [ebp - 0x14]
add ebx, eax
jmp 0x4591d4
mov ebx, 0x64d040
mov ebx, dword [ebx + 4]
cmp ebx, 0xffffffff
jne 0x459150
jmp 0x4591e7
cmp ebx, 0xffffffff
jne 0x459210
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [edi + 0x70]
mov ecx, edi
push str.Executable_not_white_listed:
call fcn.00458830
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push dword [edi + 0x70]
lea eax, [ebp - 0x1c]
push eax
call fcn.004585b0
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.0046b650
mov byte [ebp - 4], 3
call fcn.0047f570
push 0
push dword [ebp - 0x1c]
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x1c]
push dword [edi + 0x74]
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 2
push eax
call fcn.00463040
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.0046b650
mov byte [ebp - 4], 7
call fcn.0047f570
push 0
push dword [ebp - 0x14]
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x1c]
mov byte [ebp - 0x30], 0
mov byte [ebp - 0x21], 0xf
cmp byte [ebp - 0x41], 0
mov byte [ebp - 4], 8
jge 0x4592ac
mov eax, dword [ebp - 0x50]
test eax, eax
jne 0x4592af
mov eax, 0x59934c
jmp 0x4592af
lea eax, [ebp - 0x50]
cmp byte [ebp - 0x51], 0
jge 0x4592c3
mov ecx, dword [ebp - 0x60]
test ecx, ecx
jne 0x4592c6
mov ecx, 0x59934c
jmp 0x4592c6
lea ecx, [ebp - 0x60]
push eax
push ecx
lea eax, [ebp - 0x30]
push str.__s___s
push eax
call fcn.0046afa0
push 0x80
lea eax, [ebp - 0x144]
push 0
push eax
call fcn.0056cde0
push dword [edi + 0x18]
lea eax, [ebp - 0x144]
push str.SteamAppId_d
push eax
call fcn.00458160
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 0x459322
mov ebx, str.GetEnvironmentStrings_failed
mov esi, 0x59934c
jmp 0x459482
mov ecx, eax
xor eax, eax
xor ebx, ebx
xor edx, edx
lea ecx, [ecx + 2]
inc eax
lea ebx, [ebx + 1]
cmp word [ecx - 2], dx
cmovne eax, edx
cmp eax, 2
jne 0x459328
xor ecx, ecx
lea eax, [ebx + esi]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0056b4bb
mov esi, eax
add esp, 4
mov dword [ebp - 0x18], esi
test esi, esi
je 0x459392
mov esi, dword [ebp - 0x1c]
lea eax, [ebp - 0x144]
add esi, esi
push esi
push eax
push dword [ebp - 0x18]
call fcn.0056d100
lea eax, [ebx + ebx]
mov ebx, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x18]
add eax, esi
push ebx
push eax
call fcn.0056d100
mov esi, dword [ebp - 0x18]
add esp, 0x18
jmp 0x459395
mov ebx, dword [ebp - 0x14]
cmp byte [edi + 0x1d], 0
je 0x4593e9
cmp byte [ebp - 0x21], 0
jge 0x4593af
mov eax, dword [ebp - 0x30]
test eax, eax
jne 0x4593b2
mov eax, 0x59934c
jmp 0x4593b2
lea eax, [ebp - 0x30]
push 4
push eax
lea ecx, [ebp - 0xb4]
call fcn.00458180
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.00459d10
push eax
call fcn.00462da0
add esp, 0x18
mov byte [ebp - 0xd], al
jmp 0x459441
cmp byte [ebp - 0x21], 0
jge 0x4593fd
mov eax, dword [ebp - 0x30]
test eax, eax
jne 0x459400
mov eax, 0x59934c
jmp 0x459400
lea eax, [ebp - 0x30]
push 4
push eax
lea ecx, [ebp - 0xb4]
call fcn.00458180
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.00459d10
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.00456350
push esi
call fcn.0056b4c4
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
cmp byte [ebp - 0xd], 0
jne 0x4594bf
cmp byte [ebp - 0x21], 0
jge 0x45947a
mov esi, dword [ebp - 0x30]
test esi, esi
jne 0x45947d
mov esi, 0x59934c
jmp 0x45947d
lea esi, [ebp - 0x30]
mov ebx, str.CreateProcess_failed:
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push ebx
mov ecx, edi
call fcn.00458830
xor bl, bl
lea ecx, [ebp - 0x30]
call fcn.00458370
lea ecx, [ebp - 0x50]
call fcn.00458370
lea ecx, [ebp - 0x60]
call fcn.00458370
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
push 0xffffffffffffffff
push dword [ebp - 0x40]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x459492
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 0x45950e
mov edx, dword [edi + 0x94]
xor eax, eax
mov esi, dword [edi + 0x88]
test edx, edx
jle 0x45950a
cmp dword [esi + eax*4], ecx
je 0x459505
inc eax
cmp eax, edx
jl 0x4594f7
xor bl, bl
jmp 0x459510
cmp eax, 0xffffffff
jne 0x45950e
xor bl, bl
jmp 0x459510
mov bl, 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.0046a100
add esp, 0x10
cmp byte [ebp - 0x21], 0
jge 0x45954d
mov esi, dword [ebp - 0x30]
test esi, esi
jne 0x459550
mov esi, 0x59934c
jmp 0x459550
lea esi, [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
lea eax, [ebp - 0xc4]
mov ecx, edi
push eax
call fcn.00458830
test bl, bl
jne 0x459578
cmp byte [edi + 0x61], bl
je 0x459492
cmp byte [edi + 0x1c], bl
jne 0x45959c
push dword [edi + 0x64]
mov ecx, dword [edi + 0x68]
push ecx
mov eax, esp
push ecx
mov dword [eax], ecx
mov eax, esp
lea ecx, [ebp - 0x244]
mov dword [eax], ecx
lea ecx, [edi + 0x98]
mov eax, dword [ecx]
push dword [ebp - 0x20]
call dword [eax + 0x10]
mov bl, 1
jmp 0x459494
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x59934c
push str.Missing_parameters
mov ecx, edi
call fcn.00458830
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0xc]
mov al, 1
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret