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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x238
push ebx
mov ebx, ecx
push esi
push edi
cmp dword [ebx + 0x70], 0
je 0x10057178
cmp dword [ebx + 0x6c], 0
je 0x10057178
cmp dword [ebx + 0x68], 0
je 0x10057178
push dword [ebx + 0x18]
lea eax, [ebx + 0x1d]
push str.HKEY_LOCAL_MACHINESoftwareValveSteamApps_d
push 0x40
push eax
call fcn.100bb550
push 0xff
lea eax, [ebp - 0x238]
push 0
push eax
call fcn.100c3490
mov ecx, dword [ebx + 0x6c]
lea eax, [ebp - 0x238]
add esp, 0x1c
mov dword [ebp - 0x10], 0
push 0
push 0
push 0xff
push eax
lea eax, [ebp - 0x10]
push eax
push ecx
mov eax, esp
mov dword [eax], ecx
call fcn.10083ce0
add esp, 0x18
test al, al
jne 0x10056c13
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebx + 0x6c]
mov ecx, ebx
push str.BExtractRegParts_failed:
call fcn.100566d0
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [ebx + 0x61], 0
jne 0x10056c5d
mov eax, dword [ebx + 0x98]
lea ecx, [ebx + 0x98]
mov esi, dword [ebp - 0x10]
mov edx, dword [ebx + 0x68]
mov dword [ebp - 8], 0
mov edi, dword [eax + 4]
lea eax, [ebp - 8]
push eax
push ecx
mov eax, esp
push ecx
mov dword [eax], edx
mov eax, esp
lea edx, [ebp - 0x238]
push esi
mov dword [eax], edx
call edi
mov eax, dword [ebp - 8]
cmp eax, dword [ebx + 0x64]
jb 0x10056c5d
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [ebx + 0x1c], 0
je 0x10056d53
mov edi, dword [0x103170a4]
mov esi, dword [ebx + 0x70]
cmp edi, 0xffffffff
je 0x10056d34
mov eax, dword [0x103170b8]
mov edi, edi
lea ecx, [edi + edi*2]
shl ecx, 3
mov dword [ebp - 8], ecx
add ecx, 0x10
add eax, ecx
mov ecx, 0x1024cb86
mov dword [ebp - 0xc], eax
push SysReAllocString
mov eax, dword [eax]
test eax, eax
cmovne ecx, eax
push ecx
push esi
call fcn.100bb950
add esp, 0xc
test eax, eax
jns 0x10056ccc
mov eax, dword [0x103170b8]
cmp edi, 0xffffffff
je 0x10056cc3
mov edi, dword [ebp - 8]
add edi, eax
mov edi, dword [edi]
jmp 0x10056d07
mov edi, 0x10317090
mov edi, dword [edi]
jmp 0x10056d07
mov eax, dword [ebp - 0xc]
mov ecx, 0x1024cb86
push SysReAllocString
push esi
mov eax, dword [eax]
test eax, eax
cmovne ecx, eax
push ecx
call fcn.100bb950
add esp, 0xc
test eax, eax
jns 0x10056d2f
mov eax, dword [0x103170b8]
cmp edi, 0xffffffff
je 0x10056cff
mov edi, dword [ebp - 8]
add edi, eax
jmp 0x10056d04
mov edi, 0x10317090
mov edi, dword [edi + 4]
cmp edi, 0xffffffff
jne 0x10056c80
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebx + 0x70]
mov ecx, ebx
push str.Executable_not_white_listed:
call fcn.100566d0
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp edi, 0xffffffff
jne 0x10056d53
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebx + 0x70]
mov ecx, ebx
push str.Executable_not_white_listed:
call fcn.100566d0
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push dword [ebx + 0x70]
lea eax, [ebp - 0xc]
push eax
call fcn.10056530
add esp, 8
mov byte [ebp - 0x54], 0
lea ecx, [ebp - 0x54]
mov byte [ebp - 0x45], 0xf
push eax
call fcn.10077840
call fcn.100ad570
push 0
push dword [ebp - 0xc]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x1c]
mov ecx, eax
call edx
push dword [ebx + 0x74]
lea eax, [ebp - 8]
push eax
call fcn.10062900
add esp, 8
mov byte [ebp - 0x44], 0
lea eax, [ebp - 8]
mov byte [ebp - 0x35], 0xf
lea ecx, [ebp - 0x44]
push eax
call fcn.10077840
call fcn.100ad570
push 0
push dword [ebp - 8]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x1c]
mov ecx, eax
call edx
cmp byte [ebp - 0x35], 0
mov byte [ebp - 0x20], 0
mov byte [ebp - 0x11], 0xf
jge 0x10056dd8
mov eax, dword [ebp - 0x44]
test eax, eax
jne 0x10056ddb
mov eax, 0x1024cb86
jmp 0x10056ddb
lea eax, [ebp - 0x44]
cmp byte [ebp - 0x45], 0
jge 0x10056def
mov ecx, dword [ebp - 0x54]
test ecx, ecx
jne 0x10056df2
mov ecx, 0x1024cb86
jmp 0x10056df2
lea ecx, [ebp - 0x54]
push eax
push ecx
lea eax, [ebp - 0x20]
push 0x1024e9d0
push eax
call fcn.10076ee0
push 0x80
lea eax, [ebp - 0x138]
push 0
push eax
call fcn.100c3490
push dword [ebx + 0x18]
lea eax, [ebp - 0x138]
push str.SteamAppId_d
push eax
call fcn.10056310
add esp, 0x28
inc eax
mov dword [ebp - 0x24], eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
mov dword [ebp - 0xc], esi
test esi, esi
jne 0x10056e54
mov edi, str.GetEnvironmentStrings_failed
mov esi, 0x1024cb86
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x10057043
xor eax, eax
mov ecx, esi
xor edi, edi
lea ebx, [ebx]
xor edx, edx
lea ecx, [ecx + 2]
inc eax
cmp word [ecx - 2], dx
cmovne eax, edx
inc edi
cmp eax, 2
jne 0x10056e60
mov eax, dword [ebp - 0x24]
mov ecx, 2
add eax, edi
mul ecx
mov ecx, 0xffffffff
cmovb eax, ecx
push eax
call fcn.100c192b
add esp, 4
mov dword [ebp - 8], eax
test eax, eax
je 0x10056ec5
mov esi, dword [ebp - 0x24]
lea ecx, [ebp - 0x138]
add esi, esi
push esi
push ecx
push eax
call fcn.100c2f10
lea eax, [edi + edi]
push eax
mov eax, dword [ebp - 8]
push dword [ebp - 0xc]
add eax, esi
push eax
call fcn.100c2f10
mov eax, dword [ebp - 8]
add esp, 0x18
mov esi, dword [ebp - 0xc]
xor ecx, ecx
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 - 0x60], 0
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x98], 0x44
cmp byte [ebx + 0x1c], cl
je 0x10056faa
cmp byte [ebp - 0x11], cl
jge 0x10056f74
mov ecx, dword [ebp - 0x20]
test ecx, ecx
jne 0x10056f77
mov ecx, 0x1024cb86
jmp 0x10056f77
lea ecx, [ebp - 0x20]
push 0
push 1
lea edx, [ebp - 0x34]
push edx
lea edx, [ebp - 0x98]
push edx
push eax
push 4
push ecx
lea ecx, [ebp - 0xa8]
call fcn.10056330
mov ecx, eax
call fcn.10057500
push eax
call fcn.10062130
add esp, 0x18
mov byte [ebp - 1], al
jmp 0x10056ffd
cmp byte [ebp - 0x11], cl
jge 0x10056fbd
mov ecx, dword [ebp - 0x20]
test ecx, ecx
jne 0x10056fc0
mov ecx, 0x1024cb86
jmp 0x10056fc0
lea ecx, [ebp - 0x20]
lea edx, [ebp - 0x34]
push edx
lea edx, [ebp - 0x98]
push edx
push 0
push eax
push 0x400
push 0
push 0
push 0
push 4
push ecx
lea ecx, [ebp - 0xa8]
call fcn.10056330
mov ecx, eax
call fcn.10057500
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
setne byte [ebp - 1]
lea ecx, [ebp - 0xa8]
call fcn.10056440
mov eax, dword [ebp - 8]
push eax
call fcn.100c1934
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
cmp byte [ebp - 1], 0
jne 0x10057070
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp byte [ebp - 0x11], 0
jge 0x1005703b
mov esi, dword [ebp - 0x20]
test esi, esi
jne 0x1005703e
mov esi, 0x1024cb86
jmp 0x1005703e
lea esi, [ebp - 0x20]
mov edi, str.CreateProcess_failed:
push eax
push esi
push edi
mov ecx, ebx
call fcn.100566d0
xor bl, bl
lea ecx, [ebp - 0x20]
call fcn.100564a0
lea ecx, [ebp - 0x44]
call fcn.100564a0
lea ecx, [ebp - 0x54]
call fcn.100564a0
mov al, bl
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x2c]
push 0xffffffffffffffff
push dword [ebp - 0x34]
mov dword [ebx + 0x94], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebx + 0x94], 0
test eax, eax
jne 0x1005704d
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov ecx, dword [ebp - 8]
test ecx, ecx
je 0x100570db
mov edx, dword [ebx + 0x90]
xor eax, eax
mov esi, dword [ebx + 0x84]
test edx, edx
jle 0x100570d5
jmp 0x100570c0
cmp dword [esi + eax*4], ecx
je 0x100570d0
inc eax
cmp eax, edx
jl 0x100570c0
mov byte [ebp - 1], 0
jmp 0x100570df
cmp eax, 0xffffffff
jne 0x100570db
mov byte [ebp - 1], 0
jmp 0x100570df
mov byte [ebp - 1], 1
push dword [ebp - 0x34]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x30]
call esi
push dword [ebp - 8]
lea eax, [ebp - 0xb8]
push str.Exit_Code___d__:
push 0x20
push eax
call fcn.100bb550
add esp, 0x10
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp byte [ebp - 0x11], 0
jge 0x10057122
mov ecx, dword [ebp - 0x20]
test ecx, ecx
jne 0x10057125
mov ecx, 0x1024cb86
jmp 0x10057125
lea ecx, [ebp - 0x20]
push eax
push ecx
lea eax, [ebp - 0xb8]
mov ecx, ebx
push eax
call fcn.100566d0
cmp byte [ebp - 1], 0
jne 0x10057146
cmp byte [ebx + 0x60], 0
jne 0x10057171
jmp 0x1005704d
mov eax, dword [ebx + 0x98]
lea ecx, [ebx + 0x98]
push dword [ebx + 0x64]
mov esi, dword [ebp - 0x10]
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 - 0x238]
push esi
mov dword [eax], edx
call edi
mov bl, 1
jmp 0x1005704f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x1024cb86
push str.Missing_parameters
mov ecx, ebx
call fcn.100566d0
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret