Function at 0x433340
Capabilities:
Get common file path
Set environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4be5db
mov eax, dword fs:[0]
push eax
sub esp, 0x120
mov eax, dword [0x4f4164]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 8]
mov dword [ebp - 0x100], eax
mov dword [ebp - 0xfc], eax
mov dword [ebp - 0xf0], str.san_path_env_7D9669CE_347E_435A_BDF7_DBDBA31FEA91
mov eax, dword [ebp - 0xf0]
mov dword [ebp - 0xf0], eax
lea eax, [ebp - 0xf8]
push str.PATH
push eax
lea eax, [ebp - 0xf0]
mov dword [ebp - 4], 0
push eax
mov dword [ebp - 0xf0], 0
mov dword [ebp - 0xf8], 0
call fcn.0049f4f6
add esp, 0xc
test eax, eax
jne 0x43344e
mov edx, dword [ebp - 0xf0]
test edx, edx
je 0x43344e
mov ecx, edx
mov dword [ebp - 0xec], eax
mov dword [ebp - 0xdc], eax
mov dword [ebp - 0xd8], 7
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4333f5
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0xec]
call fcn.004038a0
push dword [ebp - 0xf0]
call fcn.004985dc
movups xmm0, xmmword [ebp - 0xec]
add esp, 4
movups xmmword [ebp - 0x110], xmm0
movups xmmword [ebp - 0xa4], xmm0
movq xmm0, qword [ebp - 0xdc]
movq qword [ebp - 0xf4], xmm0
movq qword [ebp - 0x94], xmm0
jmp 0x433493
mov dword [ebp - 0x94], 0
xor eax, eax
mov dword [ebp - 0x90], 7
movq xmm0, qword [ebp - 0x94]
mov dword [ebp - 0xa4], 0
mov word [ebp - 0xa4], ax
movq qword [ebp - 0xf4], xmm0
movups xmm0, xmmword [ebp - 0xa4]
movups xmmword [ebp - 0x110], xmm0
xor eax, eax
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 7
mov word [ebp - 0x5c], ax
mov dword [ebp - 0xb0], eax
xorps xmm0, xmm0
lea eax, [ebp - 0x12c]
movlpd qword [ebp - 0xb8], xmm0
push eax
call fcn.0042ee70
add esp, 4
mov dword [ebp - 0xbc], 0
mov dword [ebp - 0xac], 0
mov dword [ebp - 0xa8], 7
cmp byte [eax + 0x18], 0
je 0x43352d
mov dword [ebp - 0x44], 0
xor ecx, ecx
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x44], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x34], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
jmp 0x433545
movups xmm0, xmmword [ebp - 0xbc]
movups xmmword [ebp - 0x44], xmm0
movq xmm0, qword [ebp - 0xac]
movq qword [ebp - 0x34], xmm0
lea ecx, [ebp - 0x12c]
mov byte [ebp - 4], 3
call fcn.00406df0
cmp dword [ebp - 0x34], 0
je 0x433748
xor eax, eax
mov dword [ebp - 0x74], 0
push eax
push 0x4e0f24
lea ecx, [ebp - 0x74]
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x60], 7
mov word [ebp - 0x74], ax
call fcn.004038a0
lea eax, [ebp - 0x74]
mov byte [ebp - 4], 4
push eax
lea ecx, [ebp - 0x44]
call fcn.0040f570
mov edx, dword [ebp - 0x60]
mov byte [ebp - 4], 3
cmp edx, 8
jb 0x4335d5
mov ecx, dword [ebp - 0x74]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4335cb
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x433936
push edx
push ecx
call fcn.00450975
add esp, 8
cmp dword [ebp - 0x30], 8
lea edi, [ebp - 0x44]
mov eax, dword [ebp - 0x34]
cmovae edi, dword [ebp - 0x44]
lea esi, [edi + eax*2]
push esi
push edi
call fcn.0040f2a0
add esp, 8
cmp eax, esi
je 0x433645
movzx ecx, word [eax]
cmp ecx, 0x5c
je 0x433601
cmp ecx, 0x2f
jne 0x433610
add eax, 2
cmp eax, esi
jne 0x4335f4
jmp 0x433645
movzx edx, word [esi - 2]
cmp edx, 0x5c
je 0x433627
cmp edx, 0x2f
je 0x433627
add esi, 0xfffffffe
cmp eax, esi
jne 0x433610
jmp 0x433645
cmp eax, esi
je 0x433645
nop dword [eax + eax]
movzx edx, word [esi - 2]
cmp edx, 0x5c
je 0x43363e
cmp edx, 0x2f
jne 0x433645
add esi, 0xfffffffe
cmp eax, esi
jne 0x433630
sub esi, edi
mov dword [ebp - 0x8c], 0
sar esi, 1
lea ecx, [ebp - 0x8c]
push esi
xor eax, eax
mov dword [ebp - 0x7c], 0
push edi
mov dword [ebp - 0x78], 7
mov word [ebp - 0x8c], ax
call fcn.004038a0
lea eax, [ebp - 0x8c]
mov byte [ebp - 4], 5
push eax
lea ecx, [ebp - 0xd4]
call fcn.00405c80
mov edx, dword [ebp - 0x48]
cmp edx, 8
jb 0x4336c7
mov ecx, dword [ebp - 0x5c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4336bd
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x43393b
push edx
push ecx
call fcn.00450975
add esp, 8
movups xmm0, xmmword [ebp - 0xd4]
xor eax, eax
lea ecx, [ebp - 0xd4]
mov word [ebp - 0xd4], ax
movups xmmword [ebp - 0x5c], xmm0
movq xmm0, qword [ebp - 0xc4]
movq qword [ebp - 0x4c], xmm0
mov dword [ebp - 0xc4], 0
mov dword [ebp - 0xc0], 7
call fcn.00403690
mov edx, dword [ebp - 0x78]
mov byte [ebp - 4], 3
cmp edx, 8
jb 0x433748
mov ecx, dword [ebp - 0x8c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x43373e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x43393b
push edx
push ecx
call fcn.00450975
add esp, 8
xor eax, eax
mov dword [ebp - 0x2c], 0
push 0x108
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
call fcn.00403d40
mov edx, eax
mov dword [ebp - 0x1c], 0x104
xor eax, eax
mov dword [ebp - 0x18], 0x107
mov ecx, 0x82
mov edi, edx
rep stosd dword es:[edi], eax
mov word [edx + 0x208], ax
mov dword [ebp - 0x2c], edx
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
push 0x104
cmovae eax, edx
mov byte [ebp - 4], 6
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, 0x104
jae 0x4337e2
cmp dword [ebp - 0x4c], 0
je 0x4337cb
push 1
push 0x4cbbf8
lea ecx, [ebp - 0x5c]
call fcn.004052f0
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
push dword [ebp - 0x1c]
cmovae eax, dword [ebp - 0x2c]
lea ecx, [ebp - 0x5c]
push eax
call fcn.004052f0
cmp dword [ebp - 0x48], 8
lea eax, [ebp - 0x5c]
cmovae eax, dword [ebp - 0x5c]
push eax
push str.PATH
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov esi, dword [ebp - 0x100]
movups xmm0, xmmword [ebp - 0x110]
mov edx, dword [ebp - 0x18]
mov dword [esi], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
movups xmmword [esi], xmm0
movq xmm0, qword [ebp - 0xf4]
movq qword [esi + 0x10], xmm0
mov byte [esi + 0x18], 1
cmp edx, 8
jb 0x433868
mov ecx, dword [ebp - 0x2c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x43385e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x43393b
push edx
push ecx
call fcn.00450975
add esp, 8
mov edx, dword [ebp - 0x30]
xor eax, eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
cmp edx, 8
jb 0x4338b6
mov ecx, dword [ebp - 0x44]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4338ac
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x43393b
push edx
push ecx
call fcn.00450975
add esp, 8
mov edx, dword [ebp - 0x48]
xor eax, eax
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 7
mov word [ebp - 0x44], ax
cmp edx, 8
jb 0x433900
mov ecx, dword [ebp - 0x5c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4338f6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x43393b
push edx
push ecx
call fcn.00450975
add esp, 8
mov eax, esi
jmp 0x43391a
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00450df0
mov esp, ebp
pop ebp
ret
call fcn.004984ff
call fcn.004984ff
int3