Function at 0x47ce40
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, 0x2a0
mov edi, dword [ebp + 0x10]
mov ebx, dword [ebp + 0xc]
mov eax, dword [0x540010]
xor eax, ebp
mov dword [esp + 0x298], eax
lea esi, [esp + 0x108]
push 0x190
push 0
push esi
call fcn.004e3a90
add esp, 0xc
cmp byte [ebx + 0xb], 0
mov eax, ebx
jns 0x47ce86
mov ecx, ebx
mov eax, dword [ebx]
mov ebx, dword [ebp + 8]
push 0xc8
push eax
push esi
call fcn.00489070
add esp, 0xc
push esi
call fcn.00411780
add esp, 4
cmp byte [edi + 0x1d], 0
je 0x47cf16
mov ecx, dword [ebp + 0xc]
movzx eax, byte [ecx + 0xb]
test al, al
jns 0x47ceb7
mov eax, dword [ecx + 4]
mov ecx, dword [ecx]
test eax, eax
js 0x47d4f3
mov bl, byte [edi]
mov bh, byte [edi + 0x1c]
je 0x47cece
test ecx, ecx
je 0x47d4ec
lea edi, [esp + 0x90]
push eax
push ecx
push edi
call fcn.004974c0
add esp, 0xc
movzx eax, bl
movzx esi, bh
mov ebx, dword [ebp + 8]
mov ecx, ebx
mov edx, edi
push eax
push esi
call fcn.0047cbe0
add esp, 8
mov ecx, edi
call fcn.00496ed0
mov ecx, dword [esp + 0x298]
xor ecx, ebp
call fcn.004e0685
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [esp + 0x20], 0xa
mov eax, dword [0x52ce88]
mov al, byte [eax + 0xa]
test al, al
jne 0x47d568
xor eax, eax
dec eax
lea edi, [esp + 0xe4]
mov dword [edi + 8], eax
mov dword [edi + 4], eax
mov dword [edi], eax
lea esi, [esp + 0x90]
push 0x103
push str.launch_win.cc
push str.LaunchProcess
push esi
call fcn.00492120
add esp, 0x10
mov ecx, edi
push 0x5459fc
push esi
call fcn.004abf70
pxor xmm0, xmm0
movdqa xmmword [esp + 0xf0], xmm0
pcmpeqd xmm0, xmm0
movdqu xmmword [esi + 0x3c], xmm0
movdqa xmmword [esi + 0x30], xmm0
movdqa xmmword [esi + 0x20], xmm0
movdqa xmmword [esi + 0x10], xmm0
movdqa xmmword [esi], xmm0
lea ecx, [esp + 0x90]
call fcn.004ac170
xor edi, edi
mov esi, dword [ebp + 0x10]
cmp byte [esi + 0x4a], 0
mov ecx, 0
je 0x47cfbe
call fcn.004d92f0
xor ecx, ecx
cmp eax, 0x10
setge cl
mov edx, dword [esi + 0x24]
xor eax, eax
cmp edx, dword [esi + 0x28]
setne al
add eax, ecx
je 0x47cfe7
lea ecx, [esp + 0x90]
push eax
call fcn.004ac1d0
mov edi, 0x80000
test al, al
je 0x47d080
cmp byte [esi + 0x4a], 0
je 0x47d01a
call fcn.004d92f0
cmp eax, 0x10
jl 0x47d01a
lea eax, [esp + 0xf0]
or byte [eax + 0xb], 0x20
lea ecx, [esp + 0x90]
push 0x10
push eax
push 0x20007
call fcn.004ac280
test al, al
je 0x47d080
mov dword [esp + 8], edi
cmp dword [esi + 0x20], 1
mov edi, dword [esi + 0x24]
sete cl
mov ebx, dword [esi + 0x28]
cmp edi, ebx
je 0x47d0c0
cmp ebx, edi
js 0x47d07d
xor esi, esi
inc esi
push esi
push esi
push dword [edi]
call dword [sym.imp.KERNEL32.dll_SetHandleInformation]
test eax, eax
je 0x47d502
add edi, 4
cmp edi, ebx
jne 0x47d03a
mov ecx, dword [ebp + 0x10]
mov eax, dword [ecx + 0x24]
mov edx, dword [ecx + 0x28]
sub edx, eax
je 0x47d4e5
lea ecx, [esp + 0x90]
push edx
push eax
push 0x20002
call fcn.004ac280
mov cl, 1
test al, al
jne 0x47d0c0
mov ebx, dword [ebp + 8]
mov ecx, ebx
push 0
call fcn.0047c650
lea edi, [esp + 0x90]
mov ecx, edi
call fcn.004ac1a0
lea ecx, [esp + 0xe4]
call fcn.004ac080
mov dword [esp + 0x20], 0xa
mov eax, dword [0x52ce88]
mov al, byte [eax + 0xa]
test al, al
je 0x47cefe
jmp 0x47d544
mov edi, dword [ebp + 0x10]
cmp byte [edi + 0x1e], 0
je 0x47d0d1
or byte [esp + 0xc0], 0x80
mov byte [esp + 7], cl
cmp byte [edi + 0x34], 0
je 0x47d0e6
mov dword [esp + 0x9c], 0x52335a
mov eax, dword [esp + 0xc0]
mov ecx, eax
or ecx, 1
mov dword [esp + 0xc0], ecx
movzx ecx, byte [edi + 0x1c]
xor ecx, 1
mov word [esp + 0xc4], cx
mov ecx, dword [edi + 0x3c]
mov edx, dword [edi + 0x40]
mov esi, dword [edi + 0x44]
test ecx, ecx
mov ebx, dword [ebp + 8]
jne 0x47d120
test edx, edx
jne 0x47d120
test esi, esi
je 0x47d16f
mov edi, dword [edi + 0x24]
mov dword [esp + 0xc], esi
mov esi, dword [ebp + 0x10]
cmp edi, dword [esi + 0x28]
mov esi, dword [esp + 0xc]
mov edi, dword [ebp + 0x10]
jne 0x47d14e
test ecx, ecx
je 0x47d58e
test edx, edx
je 0x47d591
test esi, esi
je 0x47d594
or eax, 0x101
mov dword [esp + 0xc0], eax
mov dword [esp + 0xcc], ecx
mov dword [esp + 0xd0], edx
mov dword [esp + 0xd4], esi
cmp dword [edi + 0x38], 0
je 0x47d1b4
call fcn.004d92f0
mov esi, dword [esp + 8]
lea ecx, [esi + 0x1000000]
cmp eax, 5
cmovl esi, ecx
mov edx, dword [ebp + 0xc]
mov eax, esi
or eax, 0x1000000
cmp byte [edi + 0x48], 0
cmove eax, esi
mov esi, eax
pxor xmm0, xmm0
movdqa xmmword [esp + 0x70], xmm0
movzx eax, byte [edi + 0x1b]
test al, al
js 0x47d1cd
add edi, 0x10
jmp 0x47d1d3
mov edx, dword [ebp + 0xc]
mov esi, dword [esp + 8]
jmp 0x47d18d
lea ecx, [esp + 0x60]
push dword [edx + 4]
push dword [edx]
call fcn.00478a70
jmp 0x47d1fe
mov eax, dword [edi + 0x14]
mov edi, dword [edi + 0x10]
test eax, eax
cmove edi, eax
xor eax, eax
dec eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
cmp byte [edx + 0xb], 0
js 0x47d1bd
mov eax, dword [edx + 8]
mov dword [esp + 0x68], eax
movq xmm0, qword [edx]
movq qword [esp + 0x60], xmm0
mov edx, dword [ebp + 0x10]
mov eax, dword [edx + 0x30]
test eax, eax
je 0x47d249
xor ecx, ecx
lea edx, [esp + 0x20]
mov dword [edx], ecx
push ecx
push eax
push edx
call sub.USERENV.dll_CreateEnvironmentBlock
test eax, eax
je 0x47d435
or esi, 0x400
mov ecx, dword [esp + 0x20]
movzx eax, byte [esp + 7]
mov dword [esp + 8], eax
cmp byte [esp + 0x6b], 0
js 0x47d31d
mov ebx, esi
lea edx, [esp + 0x60]
jmp 0x47d323
pxor xmm0, xmm0
movq qword [esp + 0x20], xmm0
mov dword [esp + 0x28], 0
mov cl, byte [edx + 0x58]
test cl, cl
jne 0x47d280
xor eax, eax
cmp dword [edx + 0x54], 0
jne 0x47d280
mov cl, byte [esp + 7]
movzx edx, cl
cmp byte [esp + 0x6b], 0
js 0x47d2d3
mov ecx, eax
lea eax, [esp + 0x60]
jmp 0x47d2d9
test cl, cl
je 0x47d49f
mov ebx, esi
mov eax, dword [ebp + 0x10]
add eax, 0x4c
lea esi, [esp + 0x50]
push eax
push 0x52f3ae
push esi
call fcn.004ac2b0
add esp, 0xc
mov eax, dword [esi + 8]
mov dword [esp + 0x28], eax
movq xmm0, qword [esi]
movq qword [esp + 0x20], xmm0
cmp byte [esp + 0x2b], 0
mov cl, byte [esp + 7]
mov esi, ebx
jns 0x47d2cd
mov eax, dword [esp + 0x20]
or esi, 0x400
jmp 0x47d26e
lea eax, [esp + 0x20]
jmp 0x47d2c5
mov ecx, eax
mov eax, dword [esp + 0x60]
mov dword [esp + 8], eax
lea eax, [esp + 0x70]
xor ebx, ebx
push eax
lea eax, [esp + 0x98]
push eax
push edi
push ecx
push esi
push edx
push ebx
push ebx
push dword [esp + 0x28]
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x47d440
cmp byte [esp + 0x2b], 0
mov ebx, dword [ebp + 8]
jns 0x47d35f
push dword [esp + 0x20]
call fcn.004dfb35
add esp, 4
jmp 0x47d35f
mov ebx, esi
mov edx, dword [esp + 0x60]
lea eax, [esp + 0x70]
xor esi, esi
push eax
lea eax, [esp + 0x98]
push eax
push edi
push ecx
push ebx
push dword [esp + 0x1c]
push esi
push esi
push edx
push esi
mov eax, dword [ebp + 0x10]
push dword [eax + 0x30]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
mov edi, eax
push dword [esp + 0x20]
call sub.USERENV.dll_DestroyEnvironmentBlock
mov ebx, dword [ebp + 8]
test edi, edi
je 0x47d435
mov esi, dword [ebp + 0x10]
pcmpeqd xmm0, xmm0
lea ecx, [esp + 0x50]
movdqa xmmword [ecx], xmm0
lea eax, [esp + 0x70]
push eax
call fcn.004ac600
mov eax, dword [esi + 0x38]
test eax, eax
je 0x47d392
push dword [esp + 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_AssignProcessToJobObject]
test eax, eax
je 0x47d461
cmp byte [esi + 0x49], 0
je 0x47d3ab
push dword [esp + 0x50]
call fcn.0047cab0
add esp, 4
push eax
call dword [sym.imp.USER32.dll_AllowSetForegroundWindow]
cmp byte [esi], 0
je 0x47d3ff
pcmpeqd xmm0, xmm0
lea edi, [esp + 0x20]
movdqa xmmword [edi + 0x20], xmm0
movdqa xmmword [edi + 0x10], xmm0
movdqa xmmword [edi], xmm0
lea esi, [esp + 0x10]
push 0x1c2
push str.launch_win.cc
push str.LaunchProcess
push esi
call fcn.00492120
add esp, 0x10
mov ecx, edi
push 0
push esi
call fcn.00486fa0
push 0xffffffffffffffff
push dword [esp + 0x54]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, edi
call fcn.00487010
lea ecx, [esp + 0x50]
call fcn.004ac7e0
mov ecx, ebx
push eax
call fcn.0047c650
lea ecx, [esp + 0x50]
call fcn.004ac750
cmp byte [esp + 0x6b], 0
jns 0x47d089
push dword [esp + 0x60]
call fcn.004dfb35
add esp, 4
jmp 0x47d089
mov ecx, ebx
push 0
call fcn.0047c650
jmp 0x47d419
mov ebx, dword [ebp + 8]
mov ecx, ebx
push 0
call fcn.0047c650
cmp byte [esp + 0x2b], 0
jns 0x47d419
push dword [esp + 0x20]
call fcn.004dfb35
add esp, 4
jmp 0x47d419
lea edi, [esp + 0x20]
xor eax, eax
dec eax
mov dword [edi + 4], eax
mov dword [edi], eax
lea ecx, [esp + 0x50]
call fcn.004ac7e0
mov ecx, edi
push eax
call fcn.0047c650
xor eax, eax
inc eax
mov ecx, edi
push eax
push eax
call fcn.0047c760
mov ecx, ebx
push 0
call fcn.0047c650
mov ecx, edi
call fcn.0047bf50
jmp 0x47d410
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test eax, eax
je 0x47d435
mov ecx, eax
mov ebx, esi
mov eax, dword [ebp + 0x10]
add eax, 0x4c
lea edx, [esp + 0x50]
push eax
push ecx
push edx
mov esi, ecx
call fcn.004ac2b0
add esp, 0xc
lea ecx, [esp + 0x50]
mov eax, dword [ecx + 8]
mov dword [esp + 0x28], eax
movq xmm0, qword [ecx]
movq qword [esp + 0x20], xmm0
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x47d2b4
push str....._third_partylibc_srcinclude_vector:1400:_assertion___n___size___failed:_vector___index_out_of_bounds_n
jmp 0x47d4f8
push str....._third_partylibc_srcinclude_string_view:313:_assertion___len__0____s___nullptr_failed:_string_view::string_view__CharT___size_t_:_received_nullptr_n
jmp 0x47d4f8
push str....._third_partylibc_srcinclude_string_view:311:_assertion___len___static_cast_size_type__numeric_limits_difference_type_::max____failed:_string_view::string_view__CharT___size_t_:_length_does_not_fit_in_difference_type_n
push 0x521354
call fcn.0044d640
push 0x13e
push str.launch_win.cc
push str.LaunchProcess
lea eax, [esp + 0x2c]
push eax
call fcn.00492120
add esp, 0x10
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x90]
push eax
call fcn.00499150
add esp, 8
lea ecx, [esp + 0x8c]
call fcn.00499200
jmp 0x47d04c
movzx eax, al
mov dword [esp + 0x90], 0
lea ecx, [esp + 0x20]
push 2
push edi
push ecx
push eax
call fcn.004577c0
add esp, 0x10
jmp 0x47cefe
movzx eax, al
lea ecx, [esp + 0x90]
mov dword [ecx], str.LaunchProcess
lea edx, [esp + 0x20]
push 1
push ecx
push edx
push eax
call fcn.004568d0
add esp, 0x10
jmp 0x47cf2e
int3
int3
int3