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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1478
call fcn.0047d5a0
mov eax, dword [0x5a1014]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
mov esi, dword [0x5a300c]
lea eax, [ebp - 0xa1c]
push edi
mov ebx, ecx
mov ecx, 0x100
push ecx
push eax
push ecx
lea eax, [ebp - 0x1234]
push eax
push ecx
lea eax, [ebp - 0x81c]
push eax
push 3
lea eax, [ebp - 0x10]
push eax
push dword [0x5a3054]
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wsplitpath_s]
mov edi, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
add esp, 0x24
test esi, esi
jne 0x4c0b00
xor eax, eax
mov word [ebp - 0x414], ax
mov word [ebp - 0x214], ax
lea eax, [ebp - 0x1234]
mov esi, 0x100
push eax
lea eax, [ebp - 0x414]
push esi
push eax
call edi
add esp, 0xc
lea eax, [ebp - 0x214]
push 0x402a8c
push esi
push eax
call edi
add esp, 0xc
lea eax, [ebp - 0x214]
mov esi, 0x104
push eax
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x81c]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x61c]
push esi
push eax
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wmakepath_s]
push esi
lea eax, [ebp - 0x61c]
push eax
lea eax, [ebp - 0x1034]
push eax
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wfullpath]
add esp, 0x24
test eax, eax
je 0x4c0b4e
lea ecx, [ebp - 0x1034]
call fcn.0045c3b6
mov esi, eax
mov dword [ebp - 0x1478], esi
call fcn.00458bd9
test al, al
jne 0x4c0b69
test dword [ebx + 0x150], 0x1000
jne 0x4c0b93
mov eax, dword [ebx + 0x1a4]
mov edi, esi
sub eax, 1
je 0x4c0c76
sub eax, 1
je 0x4c0c30
mov ecx, edi
call fcn.004562c9
mov edi, eax
mov ecx, edi
call fcn.00450dc5
mov dword [ebx + 0xa10], eax
test edi, edi
je 0x469bb9
push edi
call dword [sym.imp.tbbmalloc.dll_scalable_free]
pop ecx
mov ecx, dword [ebp - 8]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0047a40f
leave
ret 4
mov ecx, 0x100
lea eax, [ebp - 0x214]
push ecx
push eax
push ecx
lea eax, [ebp - 0x414]
push eax
push ecx
lea eax, [ebp - 0x81c]
push eax
push 3
lea eax, [ebp - 0x10]
push eax
push esi
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wsplitpath_s]
add esp, 0x24
cmp word [ebp - 0x414], 0
jne 0x469b01
cmp word [ebp - 0x214], 0
jne 0x469b01
jmp 0x469ad6
lea eax, [ebp - 0x61c]
jmp 0x4c0b5c
lea eax, [ebp - 0xe2c]
push eax
push 0x450
push 0
call fcn.0047dc0b
lea eax, [ebp - 0x1474]
push eax
push esi
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wstat64]
pop ecx
pop ecx
test eax, eax
jne 0x469b6d
push eax
push eax
push eax
push eax
xor edx, edx
mov ecx, esi
call fcn.0051c18c
jmp 0x469b6d
cmp dword [ebx + 0x1dc], 0
jne 0x469b7d
push 0x41d174
lea eax, [ebp - 0xc24]
push 0x104
push eax
call edi
add esp, 0xc
lea eax, [ebp - 0x214]
mov edi, 0x104
push eax
lea eax, [ebp - 0xc24]
push edi
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
add esp, 0xc
lea eax, [ebp - 0xc24]
push eax
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x81c]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xe2c]
push edi
push eax
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wmakepath_s]
push edi
lea eax, [ebp - 0xe2c]
push eax
lea eax, [ebp - 0x143c]
push eax
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wfullpath]
add esp, 0x24
test eax, eax
je 0x4c0b56
lea ecx, [ebp - 0x143c]
call fcn.0045c3b6
mov dword [ebx + 0x1dc], eax
jmp 0x469b7d
cmp dword [ebx + 0x1d8], 0
jne 0x4c0c4f
push 0x41d1a0
push 0x41d1b8
push 0x4c4
push 0
call fcn.0047dc0b
mov ecx, ebx
call fcn.00469846
push ecx
lea edx, [ebp - 0x61c]
lea ecx, [ebp - 0x1034]
call fcn.005155d4
mov ecx, eax
call fcn.0045c3b6
mov edi, eax
jmp 0x469b97
cmp word [ebp - 0xa1c], 0x2e
lea eax, [ebp - 0xa1c]
jne 0x4c0c8c
lea eax, [ebp - 0xa1a]
mov esi, dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push eax
push 0x41d188
call esi
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x414]
push eax
push 0
push 0
lea eax, [ebp - 0x61c]
push 0x104
push eax
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wmakepath_s]
add esp, 0x18
lea eax, [ebp - 0x61c]
push eax
push 0x41d194
call esi
push 0
push 0
push dword [0x5a50c4]
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x4c0d25
xor ecx, ecx
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
call fcn.0043d6d0
push esi
mov edi, eax
push edi
push dword [0x5a50c4]
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
jne 0x4c0d25
test edi, edi
je 0x4c0d18
push edi
call dword [sym.imp.tbbmalloc.dll_scalable_free]
pop ecx
mov esi, dword [ebp - 0x1478]
mov edi, esi
jmp 0x469b97
mov esi, dword [ebp - 0x1478]
jmp 0x469b97