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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x474edc
mov eax, dword fs:[0]
push eax
mov eax, 0x2006c
call fcn.00463950
mov eax, dword [0x4941b8]
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 [0x499174], 0
jne 0x4389fa
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 0x438740
sub ecx, edx
lea eax, [ebp - 0x20010]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x20040]
call fcn.00413ff0
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 0x43898e
nop
push 1
push 0x47ef70
lea ecx, [ebp - 0x20040]
call fcn.0040bb40
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x43879c
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.00413ff0
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.0040ade0
add esp, 8
cmp eax, esi
je 0x438845
movzx ecx, word [eax]
cmp ecx, 0x5c
je 0x438804
cmp ecx, 0x2f
jne 0x43880d
add eax, 2
cmp eax, esi
jne 0x4387f7
jmp 0x438845
cmp eax, esi
je 0x438845
movzx edx, word [esi - 2]
cmp edx, 0x5c
je 0x438828
cmp edx, 0x2f
je 0x438828
add esi, 0xfffffffe
cmp eax, esi
jne 0x438811
jmp 0x438845
cmp eax, esi
je 0x438845
nop dword [eax]
movzx edx, word [esi - 2]
cmp edx, 0x5c
je 0x43883e
cmp edx, 0x2f
jne 0x438845
add esi, 0xfffffffe
cmp eax, esi
jne 0x438830
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.00413ff0
lea eax, [ebp - 0x20058]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x20070]
call fcn.00408400
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.0040bb40
mov edx, dword [ebp - 0x2005c]
mov byte [ebp - 4], 2
cmp edx, 8
jb 0x4388f7
mov ecx, dword [ebp - 0x20070]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4388ed
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x438a16
push edx
push ecx
call fcn.004639cf
add esp, 8
mov edx, dword [ebp - 0x20044]
mov byte [ebp - 4], 1
cmp edx, 8
jb 0x43893b
mov ecx, dword [ebp - 0x20058]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x438931
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x438a16
push edx
push ecx
call fcn.004639cf
add esp, 8
mov edx, dword [ebp - 0x20014]
mov byte [ebp - 4], 0
cmp edx, 8
jb 0x43897f
mov ecx, dword [ebp - 0x20028]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x438975
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x438a16
push edx
push ecx
call fcn.004639cf
add esp, 8
add edi, 0x18
cmp edi, dword [ebp - 0x20074]
jne 0x438780
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 0x47ef74
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edx, dword [ebp - 0x2002c]
mov dword [0x499174], eax
cmp edx, 8
jb 0x4389fa
mov ecx, dword [ebp - 0x20040]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4389f0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x438a16
push edx
push ecx
call fcn.004639cf
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.004639dd
mov esp, ebp
pop ebp
ret
call fcn.00465400
int3