Function at 0x459060
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 0x5919b3
push eax
mov dword fs:[0], esp
sub esp, 0x244
push ebx
mov ebx, ecx
push esi
push edi
cmp byte [ebx + 0x63], 0
jne 0x4596ec
cmp dword [ebx + 0x70], 0
je 0x4596c1
cmp dword [ebx + 0x6c], 0
je 0x4596c1
cmp dword [ebx + 0x68], 0
je 0x4596c1
push dword [ebx + 0x18]
lea eax, [ebx + 0x1e]
push str.HKEY_LOCAL_MACHINESoftwareValveSteamApps_d
push 0x40
push eax
call fcn.00469e00
xor eax, eax
mov dword [ebp - 0xac], 0
push 0xff
push eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x250]
push eax
mov dword [ebp - 0xa8], 0
mov dword [ebp - 0xa4], 0
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 - 0xb0], 0x44
call fcn.0056ce40
mov ecx, dword [ebx + 0x6c]
lea eax, [ebp - 0x250]
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.00457640
add esp, 0x18
test al, al
jne 0x4591d4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebx + 0x6c]
mov ecx, ebx
push str.BExtractRegParts_failed:
call fcn.00458bc0
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 [ebx + 0x62], 0
jne 0x459219
mov eax, dword [ebx + 0x9c]
lea ecx, [ebx + 0x9c]
mov esi, dword [ebp - 0x20]
mov edx, dword [ebx + 0x68]
mov dword [ebp - 0x34], 0
mov edi, dword [eax + 4]
lea eax, [ebp - 0x34]
push eax
push ecx
mov eax, esp
push ecx
mov dword [eax], edx
mov eax, esp
lea edx, [ebp - 0x250]
push esi
mov dword [eax], edx
call edi
mov eax, dword [ebp - 0x34]
cmp eax, dword [ebx + 0x64]
jae 0x4596ec
cmp byte [ebx + 0x1d], 0
je 0x459300
mov edi, dword [0x629058]
mov esi, dword [ebx + 0x70]
cmp edi, 0xffffffff
je 0x4592d7
mov eax, dword [0x629070]
lea ebx, [ebx]
lea ecx, [edi + edi*2]
shl ecx, 3
mov dword [ebp - 0x14], ecx
add ecx, 0x10
add eax, ecx
mov ecx, 0x594544
mov dword [ebp - 0x1c], eax
push closesocket
mov eax, dword [eax]
test eax, eax
cmovne ecx, eax
push ecx
push esi
call fcn.0046a300
add esp, 0xc
test eax, eax
jns 0x45928c
mov eax, dword [0x629070]
cmp edi, 0xffffffff
je 0x459283
mov edi, dword [ebp - 0x14]
add edi, eax
mov edi, dword [edi]
jmp 0x4592c7
mov edi, 0x629044
mov edi, dword [edi]
jmp 0x4592c7
mov eax, dword [ebp - 0x1c]
mov ecx, 0x594544
push closesocket
push esi
mov eax, dword [eax]
test eax, eax
cmovne ecx, eax
push ecx
call fcn.0046a300
add esp, 0xc
test eax, eax
jns 0x4592d2
mov eax, dword [0x629070]
cmp edi, 0xffffffff
je 0x4592bf
mov edi, dword [ebp - 0x14]
add edi, eax
jmp 0x4592c4
mov edi, 0x629044
mov edi, dword [edi + 4]
cmp edi, 0xffffffff
jne 0x459240
jmp 0x4592d7
cmp edi, 0xffffffff
jne 0x459300
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebx + 0x70]
mov ecx, ebx
push str.Executable_not_white_listed:
call fcn.00458bc0
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 [ebx + 0x70]
lea eax, [ebp - 0x4c]
push eax
call fcn.00458960
add esp, 8
push eax
lea ecx, [ebp - 0x6c]
mov dword [ebp - 4], 0
mov byte [ebp - 0x6c], 0
mov byte [ebp - 0x5d], 0xf
call fcn.0046b360
mov byte [ebp - 4], 3
call fcn.0047f4e0
push 0
push dword [ebp - 0x4c]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x1c]
mov ecx, eax
call edx
push dword [ebx + 0x74]
lea eax, [ebp - 0x38]
mov byte [ebp - 4], 2
push eax
call fcn.00462d50
add esp, 8
lea eax, [ebp - 0x38]
mov byte [ebp - 4], 4
push eax
lea ecx, [ebp - 0x5c]
mov byte [ebp - 0x5c], 0
mov byte [ebp - 0x4d], 0xf
call fcn.0046b360
mov byte [ebp - 4], 7
call fcn.0047f4e0
push 0
push dword [ebp - 0x38]
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 - 0x4d], 0
mov byte [ebp - 4], 8
jge 0x4593a0
mov eax, dword [ebp - 0x5c]
test eax, eax
jne 0x4593a3
mov eax, 0x594544
jmp 0x4593a3
lea eax, [ebp - 0x5c]
cmp byte [ebp - 0x5d], 0
jge 0x4593b7
mov ecx, dword [ebp - 0x6c]
test ecx, ecx
jne 0x4593ba
mov ecx, 0x594544
jmp 0x4593ba
lea ecx, [ebp - 0x6c]
push eax
push ecx
lea eax, [ebp - 0x30]
push str.__s___s
push eax
call fcn.0046acc0
push 0x80
lea eax, [ebp - 0x150]
push 0
push eax
call fcn.0056ce40
push dword [ebx + 0x18]
lea eax, [ebp - 0x150]
push str.SteamAppId_d
push eax
call fcn.00458750
add esp, 0x28
lea esi, [eax + 1]
mov dword [ebp - 0x18], esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov dword [ebp - 0x1c], eax
test eax, eax
jne 0x45941c
mov edi, str.GetEnvironmentStrings_failed
mov esi, 0x594544
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x459582
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 0x459422
xor ecx, ecx
lea eax, [edi + esi]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0056b51b
mov esi, eax
add esp, 4
mov dword [ebp - 0x14], esi
test esi, esi
je 0x45948c
mov esi, dword [ebp - 0x18]
lea eax, [ebp - 0x150]
add esi, esi
push esi
push eax
push dword [ebp - 0x14]
call fcn.0056d160
lea eax, [edi + edi]
mov edi, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x14]
add eax, esi
push edi
push eax
call fcn.0056d160
mov esi, dword [ebp - 0x14]
add esp, 0x18
jmp 0x45948f
mov edi, dword [ebp - 0x1c]
cmp byte [ebx + 0x1d], 0
je 0x4594e3
cmp byte [ebp - 0x21], 0
jge 0x4594a9
mov eax, dword [ebp - 0x30]
test eax, eax
jne 0x4594ac
mov eax, 0x594544
jmp 0x4594ac
lea eax, [ebp - 0x30]
push 4
push eax
lea ecx, [ebp - 0xc0]
call fcn.00458770
push 0
push 1
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 9
push ecx
lea ecx, [ebp - 0xb0]
push ecx
push esi
mov ecx, eax
call fcn.00459980
push eax
call fcn.00462ab0
add esp, 0x18
mov byte [ebp - 0xd], al
jmp 0x45953b
cmp byte [ebp - 0x21], 0
jge 0x4594f7
mov eax, dword [ebp - 0x30]
test eax, eax
jne 0x4594fa
mov eax, 0x594544
jmp 0x4594fa
lea eax, [ebp - 0x30]
push 4
push eax
lea ecx, [ebp - 0xc0]
call fcn.00458770
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 0xa
push ecx
lea ecx, [ebp - 0xb0]
push ecx
push 0
push esi
push 0x400
push 0
push 0
push 0
mov ecx, eax
call fcn.00459980
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
setne byte [ebp - 0xd]
lea ecx, [ebp - 0xc0]
mov byte [ebp - 4], 8
call fcn.00456410
push esi
call fcn.0056b524
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
cmp byte [ebp - 0xd], 0
jne 0x4595b9
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp byte [ebp - 0x21], 0
jge 0x45957a
mov esi, dword [ebp - 0x30]
test esi, esi
jne 0x45957d
mov esi, 0x594544
jmp 0x45957d
lea esi, [ebp - 0x30]
mov edi, str.CreateProcess_failed:
push eax
push esi
push edi
mov ecx, ebx
call fcn.00458bc0
xor bl, bl
lea ecx, [ebp - 0x30]
call fcn.004588a0
lea ecx, [ebp - 0x5c]
call fcn.004588a0
lea ecx, [ebp - 0x6c]
call fcn.004588a0
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 - 0x40]
push 0xffffffffffffffff
push dword [ebp - 0x48]
mov dword [ebx + 0x98], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebx + 0x98], 0
test eax, eax
jne 0x45958c
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x48]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x45961f
mov edx, dword [ebx + 0x94]
xor eax, eax
mov esi, dword [ebx + 0x88]
test edx, edx
jle 0x459619
cmp dword [esi + eax*4], ecx
je 0x459614
inc eax
cmp eax, edx
jl 0x459604
mov byte [ebp - 0xd], 0
jmp 0x459623
cmp eax, 0xffffffff
jne 0x45961f
mov byte [ebp - 0xd], 0
jmp 0x459623
mov byte [ebp - 0xd], 1
push dword [ebp - 0x48]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x44]
call esi
push dword [ebp - 0x14]
lea eax, [ebp - 0xd0]
push str.Exit_Code___d__:
push 0x20
push eax
call fcn.00469e00
add esp, 0x10
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp byte [ebp - 0x21], 0
jge 0x459666
mov ecx, dword [ebp - 0x30]
test ecx, ecx
jne 0x459669
mov ecx, 0x594544
jmp 0x459669
lea ecx, [ebp - 0x30]
push eax
push ecx
lea eax, [ebp - 0xd0]
mov ecx, ebx
push eax
call fcn.00458bc0
cmp byte [ebp - 0xd], 0
jne 0x45968f
cmp byte [ebx + 0x61], 0
je 0x45958c
cmp byte [ebx + 0x1c], 0
jne 0x4596ba
mov eax, dword [ebx + 0x9c]
lea ecx, [ebx + 0x9c]
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 - 0x250]
push esi
mov dword [eax], edx
call edi
mov bl, 1
jmp 0x45958e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x594544
push str.Missing_parameters
mov ecx, ebx
call fcn.00458bc0
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