Function at 0x43f880
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 + 0xc]
mov eax, dword [0x5c1040]
xor eax, ebp
mov dword [esp + 0x298], eax
lea esi, [esp + 0x108]
push 0x190
push 0
push esi
call fcn.004f5920
add esp, 0xc
cmp byte [edi + 0xb], 0
mov eax, edi
jns 0x43f8c1
mov eax, dword [edi]
mov ebx, dword [ebp + 8]
push 0xc8
push eax
push esi
call fcn.004b5180
add esp, 0xc
push esi
call fcn.004999e0
add esp, 4
mov ecx, dword [ebp + 0x10]
cmp byte [ecx + 0x11], 0
jne 0x43faaa
mov dword [esp + 0x20], 0xa
mov eax, dword [0x5a6cc4]
mov al, byte [eax + 0xa]
test al, al
jne 0x43ff79
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 0x181
push str....._baseprocesslaunch_win.cc
push str.LaunchProcess
push esi
call fcn.004bbec0
add esp, 0x10
mov ecx, edi
push 0x5c8708
push esi
call fcn.00462cd0
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.00464b70
xor edi, edi
mov esi, dword [ebp + 0x10]
cmp byte [esi + 0x3f], 0
mov ecx, 0
je 0x43f991
call fcn.004aaa60
xor ecx, ecx
cmp eax, 0x10
setge cl
mov edx, dword [esi + 0x18]
xor eax, eax
cmp edx, dword [esi + 0x1c]
setne al
add eax, ecx
je 0x43f9ba
lea ecx, [esp + 0x90]
push eax
call fcn.00464bd0
mov edi, 0x80000
test al, al
je 0x43fa57
cmp byte [esi + 0x3f], 0
je 0x43f9ed
call fcn.004aaa60
cmp eax, 0x10
jl 0x43f9ed
lea eax, [esp + 0xf0]
or byte [eax + 0xb], 0x20
lea ecx, [esp + 0x90]
push 0x10
push eax
push 0x20007
call fcn.00464c80
test al, al
je 0x43fa57
mov dword [esp + 0xc], edi
cmp dword [esi + 0x14], 1
mov edi, dword [esi + 0x18]
sete cl
mov ebx, dword [esi + 0x1c]
cmp edi, ebx
je 0x43fb02
cmp ebx, edi
js 0x43fa54
xor esi, esi
inc esi
push esi
push esi
push dword [edi]
call dword [sym.imp.KERNEL32.dll_SetHandleInformation]
test eax, eax
je 0x43fef6
add edi, 4
cmp edi, ebx
jne 0x43fa0d
mov esi, dword [ebp + 0x10]
mov eax, dword [esi + 0x18]
mov edx, dword [esi + 0x1c]
sub edx, eax
je 0x43ff46
lea ecx, [esp + 0x90]
push edx
push eax
push 0x20002
call fcn.00464c80
mov cl, 1
test al, al
jne 0x43fb02
mov ebx, dword [ebp + 8]
mov ecx, ebx
push 0
call fcn.0043f350
lea edi, [esp + 0x90]
mov ecx, edi
call fcn.00464ba0
lea ecx, [esp + 0xe4]
call fcn.00462de0
mov dword [esp + 0x20], 0xa
mov eax, dword [0x5a6cc4]
mov al, byte [eax + 0xa]
test al, al
jne 0x43ff55
mov ecx, dword [esp + 0x298]
xor ecx, ebp
call fcn.004f1eb0
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
movsx eax, byte [edi + 0xb]
test eax, eax
jns 0x43fab7
mov eax, dword [edi + 4]
mov edi, dword [edi]
test eax, eax
js 0x43ff38
mov bl, byte [ecx]
mov bh, byte [ecx + 0x10]
je 0x43face
test edi, edi
je 0x43ff3f
mov ecx, edi
lea edi, [esp + 0x90]
push eax
push ecx
push edi
call fcn.00540870
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.00539c30
add esp, 8
mov ecx, edi
call fcn.00453fa0
jmp 0x43fa92
cmp byte [esi + 0x12], 0
je 0x43fb10
or byte [esp + 0xc0], 0x80
mov byte [esp + 0xb], cl
cmp byte [esi + 0x28], 0
je 0x43fb25
mov dword [esp + 0x9c], 0x59c764
mov eax, dword [esp + 0xc0]
mov edi, eax
or edi, 1
mov dword [esp + 0xc0], edi
movzx ecx, byte [esi + 0x10]
xor ecx, 1
mov word [esp + 0xc4], cx
mov ecx, dword [esi + 0x30]
mov edx, dword [esi + 0x34]
mov esi, dword [esi + 0x38]
test ecx, ecx
mov ebx, dword [ebp + 8]
jne 0x43fb5f
test edx, edx
jne 0x43fb5f
test esi, esi
je 0x43fba8
mov ebx, dword [ebp + 0x10]
mov edi, dword [ebx + 0x18]
cmp edi, dword [ebx + 0x1c]
jne 0x43fb82
test ecx, ecx
je 0x43ff9f
test edx, edx
je 0x43ffa2
test esi, esi
je 0x43ffa5
or eax, 0x101
mov dword [esp + 0xc0], eax
mov dword [esp + 0xcc], ecx
mov dword [esp + 0xd0], edx
mov dword [esp + 0xd4], esi
mov edi, eax
mov ebx, dword [ebp + 8]
mov esi, dword [ebp + 0x10]
cmp byte [esi + 0x3e], 0
je 0x43fbbe
or edi, 0x80
mov dword [esp + 0xc0], edi
mov eax, dword [esp + 0xc]
lea ecx, [eax + 0x1000000]
cmp byte [esi + 0x3c], 0
cmove ecx, eax
mov dword [esp + 0xc], ecx
pxor xmm0, xmm0
movdqa xmmword [esp + 0x70], xmm0
movsx eax, byte [esi + 0xf]
test eax, eax
js 0x43fbfa
lea edi, [esi + 4]
jmp 0x43fc00
lea ecx, [esp + 0x60]
push dword [edx + 4]
push dword [edx]
call fcn.004a9620
jmp 0x43fc2e
mov eax, dword [esi + 8]
mov edi, dword [esi + 4]
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
mov edx, dword [ebp + 0xc]
cmp byte [edx + 0xb], 0
js 0x43fbea
mov eax, dword [edx + 8]
mov dword [esp + 0x68], eax
movq xmm0, qword [edx]
movq qword [esp + 0x60], xmm0
mov eax, dword [esi + 0x24]
test eax, eax
je 0x43fc72
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 0x43fe4f
or dword [esp + 0xc], 0x400
mov ecx, dword [esp + 0x20]
movzx eax, byte [esp + 0xb]
cmp byte [esp + 0x6b], 0
js 0x43fd3c
lea edx, [esp + 0x60]
jmp 0x43fd40
pxor xmm0, xmm0
movq qword [esp + 0x20], xmm0
mov dword [esp + 0x28], 0
mov cl, byte [esi + 0x4c]
test cl, cl
jne 0x43fca7
xor eax, eax
cmp dword [esi + 0x48], 0
jne 0x43fca7
mov cl, byte [esp + 0xb]
movzx ecx, cl
cmp byte [esp + 0x6b], 0
js 0x43fcf5
lea edx, [esp + 0x60]
jmp 0x43fcf9
test cl, cl
je 0x43feb6
lea eax, [esi + 0x40]
lea esi, [esp + 0x50]
push eax
push 0x5a8f10
push esi
call fcn.00546cc0
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 + 0xb]
jns 0x43fcef
mov eax, dword [esp + 0x20]
or dword [esp + 0xc], 0x400
jmp 0x43fc97
lea eax, [esp + 0x20]
jmp 0x43fce5
mov edx, dword [esp + 0x60]
lea esi, [esp + 0x70]
xor ebx, ebx
push esi
lea esi, [esp + 0x98]
push esi
push edi
push eax
push dword [esp + 0x1c]
push ecx
push ebx
push ebx
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
mov ebx, dword [ebp + 8]
je 0x43fe5a
cmp byte [esp + 0x2b], 0
jns 0x43fd37
push dword [esp + 0x20]
call fcn.004f193e
add esp, 4
mov esi, dword [ebp + 0x10]
jmp 0x43fd7c
mov edx, dword [esp + 0x60]
lea ebx, [esp + 0x70]
xor esi, esi
push ebx
lea ebx, [esp + 0x98]
push ebx
push edi
push ecx
push dword [esp + 0x1c]
push eax
push esi
push esi
push edx
push esi
mov esi, dword [ebp + 0x10]
push dword [esi + 0x24]
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 0x43fe4f
pcmpeqd xmm0, xmm0
lea ecx, [esp + 0x50]
movdqa xmmword [ecx], xmm0
lea eax, [esp + 0x70]
push eax
call fcn.00464d40
mov eax, dword [esi + 0x2c]
test eax, eax
je 0x43fdac
push dword [esp + 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_AssignProcessToJobObject]
test eax, eax
je 0x43fe78
cmp byte [esi + 0x3d], 0
je 0x43fdc5
push dword [esp + 0x50]
call fcn.0043f790
add esp, 4
push eax
call dword [sym.imp.USER32.dll_AllowSetForegroundWindow]
cmp byte [esi], 0
je 0x43fe19
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 0x238
push str....._baseprocesslaunch_win.cc
push str.LaunchProcess
push esi
call fcn.004bbec0
add esp, 0x10
mov ecx, edi
push 0
push esi
call fcn.004b1470
push 0xffffffffffffffff
push dword [esp + 0x54]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, edi
call fcn.004b14e0
lea ecx, [esp + 0x50]
call fcn.00464f00
mov ecx, ebx
push eax
call fcn.0043f350
lea ecx, [esp + 0x50]
call fcn.00464e60
cmp byte [esp + 0x6b], 0
jns 0x43fa60
push dword [esp + 0x60]
call fcn.004f193e
add esp, 4
jmp 0x43fa60
mov ecx, ebx
push 0
call fcn.0043f350
jmp 0x43fe33
mov ecx, ebx
push 0
call fcn.0043f350
cmp byte [esp + 0x2b], 0
jns 0x43fe33
push dword [esp + 0x20]
call fcn.004f193e
add esp, 4
jmp 0x43fe33
lea edi, [esp + 0x20]
xor eax, eax
dec eax
mov dword [edi + 4], eax
mov dword [edi], eax
lea ecx, [esp + 0x50]
call fcn.00464f00
mov ecx, edi
push eax
call fcn.0043f350
xor eax, eax
inc eax
mov ecx, edi
push eax
push eax
call fcn.00539b50
mov ecx, ebx
push 0
call fcn.0043f350
mov ecx, edi
call fcn.0043f450
jmp 0x43fe2a
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test eax, eax
je 0x43fe5a
mov ecx, eax
mov eax, dword [ebp + 0x10]
add eax, 0x40
lea esi, [esp + 0x50]
push eax
push ecx
push esi
mov ebx, ecx
call fcn.00546cc0
add esp, 0xc
mov eax, dword [esi + 8]
mov dword [esp + 0x28], eax
movq xmm0, qword [esi]
movq qword [esp + 0x20], xmm0
push ebx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x43fcd6
push 0x1bc
push str....._baseprocesslaunch_win.cc
push str.LaunchProcess
lea eax, [esp + 0x2c]
push eax
call fcn.004bbec0
add esp, 0x10
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x90]
push eax
call fcn.00541300
add esp, 8
lea ecx, [esp + 0x8c]
call fcn.005413a0
jmp 0x43fa1f
push str....._third_partylibc_srcinclude_string_view:314:_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
jmp 0x43ff4b
push str....._third_partylibc_srcinclude_string_view:316:_assertion___len__0____s___nullptr_failed:_string_view::string_view__CharT___size_t_:_received_nullptr_n
jmp 0x43ff4b
push str....._third_partylibc_srcinclude_vector:1418:_assertion___n___size___failed:_vector___index_out_of_bounds_n
push 0x59a9a3
call fcn.00523170
movzx eax, al
mov dword [esp + 0x90], 0
lea ecx, [esp + 0x20]
push 2
push edi
push ecx
push eax
call fcn.004a52f0
add esp, 0x10
jmp 0x43fa92
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.004a4950
add esp, 0x10
jmp 0x43f901
int3
int3
int3