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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x120
mov edx, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov eax, dword [0x5f3418]
xor eax, ebp
mov dword [esp + 0x118], eax
cmp byte [edx + 0x11], 0
jne 0x56e440
mov al, byte [0x5f5168]
xor ebx, ebx
mov byte [esp + 0xf], al
test al, 0x19
jne 0x56e600
xor eax, eax
dec eax
mov dword [esp + 0x1c], 0
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], eax
pcmpeqd xmm0, xmm0
lea esi, [esp + 0xb0]
movdqa xmmword [esi], xmm0
lea edi, [esp + 0x60]
push 0x104
push str....._baseprocesslaunch_win.cc
push str.LaunchProcess
push edi
call fcn.004fdcd0
add esp, 0x10
mov ecx, esi
push 0x6bfab4
push edi
call fcn.0041d0a0
pxor xmm0, xmm0
movdqa xmmword [esp + 0x100], xmm0
pcmpeqd xmm0, xmm0
movdqu xmmword [edi + 0x3c], xmm0
movdqa xmmword [edi + 0x30], xmm0
movdqa xmmword [edi + 0x20], xmm0
movdqa xmmword [edi + 0x10], xmm0
movdqa xmmword [edi], xmm0
lea ecx, [esp + 0x60]
call fcn.00584dd0
mov esi, dword [ebp + 0x10]
cmp byte [esi + 0x3e], 0
je 0x56e027
call fcn.00421010
xor ebx, ebx
cmp eax, 0x10
setge bl
mov ecx, dword [esi + 0x18]
xor eax, eax
cmp ecx, dword [esi + 0x1c]
setne al
add eax, ebx
je 0x56e0c7
lea ecx, [esp + 0x60]
push eax
call fcn.00584e30
mov ecx, 0x80000
test al, al
jne 0x56e0c9
mov ecx, dword [ebp + 8]
push 0
call fcn.0050b970
lea ecx, [esp + 0x60]
call fcn.00584e00
lea ecx, [esp + 0xb0]
call fcn.0041d250
test byte [esp + 0xf], 0x19
mov ecx, dword [esp + 0x1c]
je 0x56e0ae
cmp byte [ecx], 0
je 0x56e0ae
mov eax, dword [esp + 0x14]
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x64], eax
sub esp, 0x10
movq xmm0, qword [esp + 0x70]
movq qword [esp + 8], xmm0
mov eax, dword [esp + 0x28]
mov dword [esp + 4], eax
mov dword [esp], ecx
call fcn.0057dc30
add esp, 0x10
mov ecx, dword [esp + 0x118]
xor ecx, ebp
call fcn.00512ee3
mov eax, dword [ebp + 8]
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
xor ecx, ecx
mov dword [esp + 8], ecx
cmp byte [esi + 0x3e], 0
je 0x56e101
call fcn.00421010
cmp eax, 0x10
jl 0x56e101
lea eax, [esp + 0x100]
or byte [eax + 0xb], 0x20
lea ecx, [esp + 0x60]
push 0x10
push eax
push 0x20007
call fcn.00584ee0
test al, al
je 0x56e04d
cmp dword [esi + 0x14], 1
mov edi, dword [esi + 0x18]
sete cl
mov ebx, dword [esi + 0x1c]
cmp edi, ebx
je 0x56e161
cmp ebx, edi
js 0x56e04d
xor esi, esi
inc esi
push esi
push esi
push dword [edi]
call dword [sym.imp.KERNEL32.dll_SetHandleInformation]
test eax, eax
je 0x56e5c9
add edi, 4
cmp edi, ebx
jne 0x56e11d
mov esi, dword [ebp + 0x10]
mov eax, dword [esi + 0x18]
mov edx, dword [esi + 0x1c]
sub edx, eax
je 0x56e671
lea ecx, [esp + 0x60]
push edx
push eax
push 0x20002
call fcn.00584ee0
mov cl, 1
test al, al
je 0x56e04d
cmp byte [esi + 0x12], 0
je 0x56e16f
or byte [esp + 0x90], 0x80
mov ebx, ecx
cmp byte [esi + 0x28], 0
je 0x56e17f
mov dword [esp + 0x6c], 0x5d7d84
mov eax, dword [esp + 0x90]
mov ecx, eax
or ecx, 1
mov dword [esp + 0x90], ecx
movzx ecx, byte [esi + 0x10]
xor ecx, 1
mov word [esp + 0x94], cx
mov ecx, dword [esi + 0x30]
mov edx, dword [esi + 0x34]
mov esi, dword [esi + 0x38]
test ecx, ecx
jne 0x56e1b6
test edx, edx
jne 0x56e1b6
test esi, esi
je 0x56e1d7
or eax, 0x101
mov dword [esp + 0x90], eax
mov dword [esp + 0x9c], ecx
mov dword [esp + 0xa0], edx
mov dword [esp + 0xa4], esi
mov esi, dword [ebp + 0x10]
cmp dword [esi + 0x2c], 0
je 0x56e29e
call fcn.00421010
mov edx, dword [esp + 8]
lea ecx, [edx + 0x1000000]
cmp eax, 5
cmovl edx, ecx
mov eax, edx
mov edx, dword [ebp + 0xc]
mov edi, eax
or edi, 0x1000000
cmp byte [esi + 0x3c], 0
cmove edi, eax
pxor xmm0, xmm0
movdqa xmmword [esp + 0x50], xmm0
movzx eax, byte [esi + 0xf]
test al, al
jns 0x56e227
mov eax, dword [esi + 8]
mov esi, dword [esi + 4]
jmp 0x56e22d
add esi, 4
and eax, 0x7f
test eax, eax
cmove esi, eax
xor eax, eax
dec eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
cmp byte [edx + 0xb], 0
js 0x56e2aa
mov eax, dword [edx + 8]
mov dword [esp + 0x48], eax
movq xmm0, qword [edx]
movq qword [esp + 0x40], xmm0
mov edx, dword [ebp + 0x10]
mov eax, dword [edx + 0x24]
test eax, eax
je 0x56e2ba
xor ecx, ecx
lea edx, [esp + 0xc0]
mov dword [edx], ecx
push ecx
push eax
push edx
call sub.USERENV.dll_CreateEnvironmentBlock
test eax, eax
je 0x56e434
or edi, 0x400
mov ecx, dword [esp + 0xc0]
movzx eax, bl
mov dword [esp + 8], eax
cmp byte [esp + 0x4b], 0
jns 0x56e301
mov edx, dword [esp + 0x40]
jmp 0x56e305
mov edx, dword [ebp + 0xc]
mov eax, dword [esp + 8]
jmp 0x56e1fe
lea ecx, [esp + 0x40]
push dword [edx + 4]
push dword [edx]
call fcn.0040ccc0
jmp 0x56e258
xor eax, eax
mov dword [esp + 0xc4], eax
mov dword [esp + 0xc0], eax
mov dword [esp + 0xc8], eax
mov cl, byte [edx + 0x4c]
test cl, cl
jne 0x56e45d
cmp dword [edx + 0x48], 0
jne 0x56e45d
movzx ecx, bl
mov dword [esp + 8], ecx
cmp byte [esp + 0x4b], 0
jns 0x56e49b
mov edx, dword [esp + 0x40]
jmp 0x56e49f
lea edx, [esp + 0x40]
lea ebx, [esp + 0x50]
xor eax, eax
push ebx
lea ebx, [esp + 0x68]
push ebx
push esi
push ecx
push edi
push dword [esp + 0x1c]
push eax
push eax
push edx
push eax
mov eax, dword [ebp + 0x10]
push dword [eax + 0x24]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
mov esi, eax
push dword [esp + 0xc0]
call sub.USERENV.dll_DestroyEnvironmentBlock
test esi, esi
je 0x56e434
mov esi, dword [ebp + 0x10]
pcmpeqd xmm0, xmm0
lea ecx, [esp + 0x30]
movdqa xmmword [ecx], xmm0
lea eax, [esp + 0x50]
push eax
call fcn.00585280
mov eax, dword [esi + 0x2c]
test eax, eax
je 0x56e371
push dword [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_AssignProcessToJobObject]
test eax, eax
je 0x56e4e6
cmp byte [esi + 0x3d], 0
je 0x56e38a
push dword [esp + 0x30]
call fcn.0056e6b0
add esp, 4
push eax
call dword [sym.imp.USER32.dll_AllowSetForegroundWindow]
cmp byte [esi], 0
je 0x56e3e6
pcmpeqd xmm0, xmm0
lea esi, [esp + 0xc0]
movdqa xmmword [esi + 0x30], xmm0
movdqa xmmword [esi + 0x20], xmm0
movdqa xmmword [esi + 0x10], xmm0
movdqa xmmword [esi], xmm0
lea edi, [esp + 0x20]
push 0x1c4
push str....._baseprocesslaunch_win.cc
push str.LaunchProcess
push edi
call fcn.004fdcd0
add esp, 0x10
mov ecx, esi
push 0
push edi
call fcn.00420eb0
push 0xffffffffffffffff
push dword [esp + 0x34]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, esi
call fcn.00407cb0
mov eax, dword [esp + 0x38]
mov ecx, dword [0x6bede4]
test ecx, ecx
je 0x56e3fd
push dword [ebp + 0xc]
push eax
call fcn.00566100
lea ecx, [esp + 0x30]
call fcn.005854e0
mov ecx, dword [ebp + 8]
push eax
call fcn.0050b970
lea ecx, [esp + 0x30]
call fcn.005852f0
cmp byte [esp + 0x4b], 0
jns 0x56e057
push dword [esp + 0x40]
call fcn.0050fc7c
add esp, 4
jmp 0x56e057
mov ecx, dword [ebp + 8]
push 0
call fcn.0050b970
jmp 0x56e418
movzx edi, byte [edx]
movzx ebx, byte [edx + 0x10]
movzx eax, byte [ecx + 0xb]
test al, al
jns 0x56e528
mov eax, dword [ecx + 4]
mov ecx, dword [ecx]
jmp 0x56e52b
test cl, cl
je 0x56e566
mov eax, dword [ebp + 0x10]
add eax, 0x40
lea ecx, [esp + 0xc0]
push eax
push 0x5decbc
push ecx
call fcn.00584ff0
add esp, 0xc
cmp byte [esp + 0xcb], 0
jns 0x56e554
mov eax, dword [esp + 0xc0]
jmp 0x56e55b
lea edx, [esp + 0x40]
lea ebx, [esp + 0x50]
xor ecx, ecx
push ebx
lea ebx, [esp + 0x68]
push ebx
push esi
push eax
push edi
push dword [esp + 0x1c]
push ecx
push ecx
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x56e59d
cmp byte [esp + 0xcb], 0
jns 0x56e33e
push dword [esp + 0xc0]
call fcn.0050fc7c
add esp, 4
jmp 0x56e33e
lea esi, [esp + 0xc0]
xor eax, eax
dec eax
mov dword [esi + 4], eax
mov dword [esi], eax
lea ecx, [esp + 0x30]
call fcn.005854e0
mov ecx, esi
push eax
call fcn.0050b970
xor eax, eax
inc eax
mov ecx, esi
push eax
push eax
call fcn.0056e810
mov ecx, dword [ebp + 8]
push 0
call fcn.0050b970
mov ecx, esi
call fcn.0050ee60
jmp 0x56e40f
and eax, 0x7f
lea esi, [esp + 0x60]
push eax
push ecx
push esi
call fcn.005644f0
add esp, 0xc
push edi
push ebx
push esi
push dword [ebp + 8]
call fcn.0056dc80
add esp, 0x10
mov ecx, esi
call fcn.005644d0
jmp 0x56e0ae
lea eax, [esp + 0xc0]
or edi, 0x400
jmp 0x56e2e6
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test eax, eax
je 0x56e59d
mov edx, eax
mov eax, dword [ebp + 0x10]
add eax, 0x40
lea ecx, [esp + 0xc0]
push eax
push edx
push ecx
mov dword [esp + 0x14], edx
call fcn.00584ff0
add esp, 0xc
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x56e481
mov ecx, dword [ebp + 8]
push 0
call fcn.0050b970
cmp byte [esp + 0xcb], 0
jns 0x56e418
push dword [esp + 0xc0]
call fcn.0050fc7c
add esp, 4
jmp 0x56e418
push 0x13f
push str....._baseprocesslaunch_win.cc
lea eax, [esp + 0xc8]
push eax
call fcn.00584f90
add esp, 0xc
lea ecx, [esp + 0xc0]
call fcn.00584fb0
lea ecx, [esp + 0xc0]
call fcn.00584fc0
jmp 0x56e12f
lea esi, [esp + 0x60]
push esi
call fcn.00509260
add esp, 4
call fcn.0050ee90
sub esp, 0x30
xor ecx, ecx
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x24], esi
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], ecx
pxor xmm0, xmm0
movdqu xmmword [esp + 0xc], xmm0
mov dword [esp + 8], str.LaunchProcess
mov dword [esp + 4], 0x5f5168
mov dword [esp], 0x58
call fcn.0057dbc0
add esp, 0x30
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], str.LaunchProcess
mov dword [esp + 0x1c], 0x5f5168
jmp 0x56dfa7
push str.vector___index_out_of_bounds
push str.__n___size__
push 0x591
push str....._buildtools_third_partylibc_trunkinclude_vector
push str._s:_d:_assertion__s_failed:__s
call fcn.005495a0
int3