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

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fc2fe
mov eax, dword fs:[0]
push eax
push ecx
push ebx
sub esp, 0x148
mov eax, dword [0x53d058]
xor eax, ebp
mov dword [ebp - 0x1c], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 0x20], esi
mov dword [ebp - 4], 0
mov dword [ebp - 0xbc], str.san_path_env_7D9669CE_347E_435A_BDF7_DBDBA31FEA91
mov eax, dword [ebp - 0xbc]
mov dword [ebp - 0xbc], eax
lea eax, [ebp - 0x20]
push str.PATH
push eax
lea eax, [ebp - 0xbc]
mov dword [ebp - 0xc0], esi
push eax
mov dword [ebp - 0xbc], 0
mov dword [ebp - 0x20], 0
call fcn.004db58a
add esp, 0xc
test eax, eax
jne 0x45b4e3
mov edx, dword [ebp - 0xbc]
test edx, edx
je 0x45b4e3
mov ecx, edx
mov dword [ebp - 0x88], eax
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x74], 7
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x45b471
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x88]
call fcn.004034d0
push dword [ebp - 0xbc]
call fcn.004d0a23
movups xmm0, xmmword [ebp - 0x88]
add esp, 4
lea ecx, [ebp - 0x88]
xor eax, eax
movups xmmword [ebp - 0x140], xmm0
mov word [ebp - 0x88], ax
movups xmmword [ebp - 0x70], xmm0
movq xmm0, qword [ebp - 0x78]
movq qword [ebp - 0xe8], xmm0
movq qword [ebp - 0x60], xmm0
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x74], 7
call fcn.004033a0
jmp 0x45b516
mov dword [ebp - 0x60], 0
xor eax, eax
mov dword [ebp - 0x5c], 7
movq xmm0, qword [ebp - 0x60]
mov dword [ebp - 0x70], 0
mov word [ebp - 0x70], ax
movq qword [ebp - 0xe8], xmm0
movups xmm0, xmmword [ebp - 0x70]
movups xmmword [ebp - 0x140], xmm0
xor eax, eax
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
xorps xmm0, xmm0
mov dword [ebp - 0xf4], eax
lea edx, [ebp - 0x28]
movlpd qword [ebp - 0xfc], xmm0
lea ecx, [ebp - 0xb8]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], 0x53ece0
call fcn.00407230
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 4]
cmp eax, dword [0x53ece4]
jne 0x45b5b2
cmp dword [ebp - 0x28], 0
jne 0x45b5b2
movups xmm0, xmmword [ebp - 0xb8]
xor eax, eax
mov byte [ebp - 0xc4], 1
mov word [ebp - 0xb8], ax
movups xmmword [ebp - 0xdc], xmm0
movq xmm0, qword [ebp - 0xa8]
movq qword [ebp - 0xcc], xmm0
mov dword [ebp - 0xa8], 0
mov dword [ebp - 0xa4], 7
jmp 0x45b5b9
mov byte [ebp - 0xc4], 0
lea ecx, [ebp - 0xb8]
call fcn.004033a0
cmp byte [ebp - 0xc4], 0
mov dword [ebp - 0x100], 0
mov dword [ebp - 0xf0], 0
mov dword [ebp - 0xec], 7
je 0x45b620
movups xmm0, xmmword [ebp - 0xdc]
xor eax, eax
mov word [ebp - 0xdc], ax
movups xmmword [ebp - 0xa0], xmm0
movq xmm0, qword [ebp - 0xcc]
mov dword [ebp - 0xcc], 0
mov dword [ebp - 0xc8], 7
jmp 0x45b636
movups xmm0, xmmword [ebp - 0x100]
movups xmmword [ebp - 0xa0], xmm0
movq xmm0, qword [ebp - 0xf0]
movq qword [ebp - 0x90], xmm0
lea ecx, [ebp - 0x100]
mov byte [ebp - 4], 3
call fcn.004033a0
cmp byte [ebp - 0xc4], 0
je 0x45b661
lea ecx, [ebp - 0xdc]
call fcn.004033a0
cmp dword [ebp - 0x90], 0
je 0x45b744
xor eax, eax
mov dword [ebp - 0x118], 0
push eax
push 0x516ad0
lea ecx, [ebp - 0x118]
mov dword [ebp - 0x108], 0
mov dword [ebp - 0x104], 7
mov word [ebp - 0x118], ax
call fcn.004034d0
lea eax, [ebp - 0x118]
mov byte [ebp - 4], 4
push eax
lea ecx, [ebp - 0xa0]
call fcn.00404860
lea ecx, [ebp - 0x118]
mov byte [ebp - 4], 3
call fcn.004033a0
lea eax, [ebp - 0x158]
push eax
lea ecx, [ebp - 0xa0]
call fcn.004049c0
push eax
lea ecx, [ebp - 0x130]
mov byte [ebp - 4], 5
call fcn.0040bca0
lea ecx, [ebp - 0x58]
call fcn.004033a0
movups xmm0, xmmword [ebp - 0x130]
xor eax, eax
lea ecx, [ebp - 0x130]
mov word [ebp - 0x130], ax
movups xmmword [ebp - 0x58], xmm0
movq xmm0, qword [ebp - 0x120]
movq qword [ebp - 0x48], xmm0
mov dword [ebp - 0x120], 0
mov dword [ebp - 0x11c], 7
call fcn.004033a0
lea ecx, [ebp - 0x158]
mov byte [ebp - 4], 3
call fcn.004033a0
xor eax, eax
mov dword [ebp - 0x40], 0
push 0x108
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
call fcn.00403460
mov edx, eax
mov dword [ebp - 0x30], 0x104
xor eax, eax
mov dword [ebp - 0x2c], 0x107
mov ecx, 0x82
mov edi, edx
rep stosd dword es:[edi], eax
mov word [edx + 0x208], ax
mov dword [ebp - 0x40], edx
mov byte [ebp - 4], 6
lea eax, [ebp - 0x40]
cmp dword [ebp - 0x2c], 8
push 0x104
cmovae eax, edx
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, 0x104
jae 0x45b7de
cmp dword [ebp - 0x48], 0
je 0x45b7c7
push 1
push 0x51e470
lea ecx, [ebp - 0x58]
call fcn.0040ba70
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
push dword [ebp - 0x30]
cmovae eax, dword [ebp - 0x40]
lea ecx, [ebp - 0x58]
push eax
call fcn.0040ba70
cmp dword [ebp - 0x44], 8
lea eax, [ebp - 0x58]
cmovae eax, dword [ebp - 0x58]
push eax
push str.PATH
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
movups xmm0, xmmword [ebp - 0x140]
mov dword [esi], 0
lea ecx, [ebp - 0x40]
mov dword [esi + 0x10], 0
xor eax, eax
mov dword [esi + 0x14], 0
movups xmmword [esi], xmm0
mov dword [ebp - 0x60], 0
movq xmm0, qword [ebp - 0xe8]
movq qword [esi + 0x10], xmm0
mov dword [ebp - 0x5c], 7
mov word [ebp - 0x70], ax
mov byte [esi + 0x18], 1
call fcn.004033a0
lea ecx, [ebp - 0xa0]
call fcn.004033a0
lea ecx, [ebp - 0x58]
call fcn.004033a0
lea ecx, [ebp - 0x70]
call fcn.004033a0
mov eax, esi
jmp 0x45b87b
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.0049852a
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret