Function at 0x438350
Capabilities:
Query environment variable
Set environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48a37c
mov eax, dword fs:[0]
push eax
mov eax, 0x2006c
call fcn.00462f00
mov eax, dword [0x4b01a8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [0x4b5acc], 0
jne 0x43868a
push 0xffff
lea eax, [ebp - 0x20010]
push eax
push str.PATH
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
xor eax, eax
mov dword [ebp - 0x20030], 0
lea ecx, [ebp - 0x20010]
mov dword [ebp - 0x2002c], 7
mov word [ebp - 0x20040], ax
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4383d0
sub ecx, edx
lea eax, [ebp - 0x20010]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x20040]
call fcn.00413d90
mov eax, dword [ebp + 8]
mov dword [ebp - 4], 0
mov edi, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 0x20074], eax
cmp edi, eax
je 0x43861e
nop
push 1
push 0x491750
lea ecx, [ebp - 0x20040]
call fcn.0040b8e0
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x43842c
mov eax, dword [edi]
push dword [edi + 0x10]
xor ecx, ecx
mov dword [ebp - 0x20018], 0
mov word [ebp - 0x20028], cx
lea ecx, [ebp - 0x20028]
push eax
mov dword [ebp - 0x20014], 7
call fcn.00413d90
cmp dword [ebp - 0x20014], 8
lea ebx, [ebp - 0x20028]
mov eax, dword [ebp - 0x20018]
cmovae ebx, dword [ebp - 0x20028]
mov byte [ebp - 4], 1
lea esi, [ebx + eax*2]
push esi
push ebx
call fcn.0040ab80
add esp, 8
cmp eax, esi
je 0x4384d5
movzx ecx, word [eax]
cmp ecx, 0x5c
je 0x438494
cmp ecx, 0x2f
jne 0x43849d
add eax, 2
cmp eax, esi
jne 0x438487
jmp 0x4384d5
cmp eax, esi
je 0x4384d5
movzx edx, word [esi - 2]
cmp edx, 0x5c
je 0x4384b8
cmp edx, 0x2f
je 0x4384b8
add esi, 0xfffffffe
cmp eax, esi
jne 0x4384a1
jmp 0x4384d5
cmp eax, esi
je 0x4384d5
nop dword [eax]
movzx edx, word [esi - 2]
cmp edx, 0x5c
je 0x4384ce
cmp edx, 0x2f
jne 0x4384d5
add esi, 0xfffffffe
cmp eax, esi
jne 0x4384c0
sub esi, ebx
mov dword [ebp - 0x20048], 0
sar esi, 1
lea ecx, [ebp - 0x20058]
push esi
xor eax, eax
mov dword [ebp - 0x20044], 7
push ebx
mov word [ebp - 0x20058], ax
call fcn.00413d90
lea eax, [ebp - 0x20058]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x20070]
call fcn.004081a0
cmp dword [ebp - 0x2005c], 8
lea eax, [ebp - 0x20070]
push dword [ebp - 0x20060]
cmovae eax, dword [ebp - 0x20070]
lea ecx, [ebp - 0x20040]
push eax
mov byte [ebp - 4], 3
call fcn.0040b8e0
mov edx, dword [ebp - 0x2005c]
mov byte [ebp - 4], 2
cmp edx, 8
jb 0x438587
mov ecx, dword [ebp - 0x20070]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x43857d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4386a6
push edx
push ecx
call fcn.00462f7f
add esp, 8
mov edx, dword [ebp - 0x20044]
mov byte [ebp - 4], 1
cmp edx, 8
jb 0x4385cb
mov ecx, dword [ebp - 0x20058]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4385c1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4386a6
push edx
push ecx
call fcn.00462f7f
add esp, 8
mov edx, dword [ebp - 0x20014]
mov byte [ebp - 4], 0
cmp edx, 8
jb 0x43860f
mov ecx, dword [ebp - 0x20028]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x438605
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4386a6
push edx
push ecx
call fcn.00462f7f
add esp, 8
add edi, 0x18
cmp edi, dword [ebp - 0x20074]
jne 0x438410
cmp dword [ebp - 0x2002c], 8
lea eax, [ebp - 0x20040]
cmovae eax, dword [ebp - 0x20040]
push eax
push str.PATH
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push 0x491754
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edx, dword [ebp - 0x2002c]
mov dword [0x4b5acc], eax
cmp edx, 8
jb 0x43868a
mov ecx, dword [ebp - 0x20040]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x438680
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4386a6
push edx
push ecx
call fcn.00462f7f
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00462f8d
mov esp, ebp
pop ebp
ret
call fcn.00468719
int3