Function at 0x403a80
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 0x41bceb
mov eax, dword fs:[0]
push eax
push ecx
push ebx
sub esp, 0x148
mov eax, dword [0x42b014]
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 dword [ebp - 0x12c], ecx
mov dword [ebp - 0x11c], ecx
mov dword [ebp - 4], 0
mov dword [ebp - 0x114], str.san_path_env_7D9669CE_347E_435A_BDF7_DBDBA31FEA91
mov eax, dword [ebp - 0x114]
mov dword [ebp - 0x114], eax
lea eax, [ebp - 0x11c]
push str.PATH
push eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x120], ecx
push eax
mov dword [ebp - 0x114], 0
mov dword [ebp - 0x11c], 0
call fcn.0040c760
add esp, 0xc
test eax, eax
jne 0x403ba9
mov edx, dword [ebp - 0x114]
test edx, edx
je 0x403ba9
mov ecx, edx
mov dword [ebp - 0xdc], eax
mov dword [ebp - 0xcc], eax
mov dword [ebp - 0xc8], 7
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x403b50
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0xdc]
call fcn.00405f10
push dword [ebp - 0x114]
call fcn.0040c5b0
movups xmm0, xmmword [ebp - 0xdc]
add esp, 4
movups xmmword [ebp - 0x158], xmm0
movups xmmword [ebp - 0xac], xmm0
movq xmm0, qword [ebp - 0xcc]
movq qword [ebp - 0x118], xmm0
movq qword [ebp - 0x9c], xmm0
jmp 0x403bee
mov dword [ebp - 0x9c], 0
xor eax, eax
mov dword [ebp - 0x98], 7
movq xmm0, qword [ebp - 0x9c]
mov dword [ebp - 0xac], 0
mov word [ebp - 0xac], ax
movq qword [ebp - 0x118], xmm0
movups xmm0, xmmword [ebp - 0xac]
movups xmmword [ebp - 0x158], xmm0
xor eax, eax
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], 7
mov word [ebp - 0x64], ax
mov byte [ebp - 4], 2
lea edx, [ebp - 0x128]
xorps xmm0, xmm0
mov dword [ebp - 0xb8], eax
lea ecx, [ebp - 0xf4]
movlpd qword [ebp - 0xc0], xmm0
mov dword [ebp - 0x128], eax
mov dword [ebp - 0x124], 0x42ba20
call fcn.004036b0
mov eax, dword [ebp - 0x124]
mov eax, dword [eax + 4]
cmp eax, dword [0x42ba24]
jne 0x403c81
cmp dword [ebp - 0x128], 0
jne 0x403c81
movups xmm0, xmmword [ebp - 0xf4]
mov al, 1
mov byte [ebp - 0x130], al
movups xmmword [ebp - 0x148], xmm0
movq xmm0, qword [ebp - 0xe4]
movq qword [ebp - 0x138], xmm0
jmp 0x403ccf
mov edx, dword [ebp - 0xe0]
xor al, al
mov byte [ebp - 0x130], al
cmp edx, 8
jb 0x403ccf
mov ecx, dword [ebp - 0xf4]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x403cbf
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x404156
push edx
push ecx
call fcn.0040826d
mov al, byte [ebp - 0x130]
add esp, 8
mov dword [ebp - 0xc4], 0
mov dword [ebp - 0xb4], 0
mov dword [ebp - 0xb0], 7
test al, al
je 0x403d1a
movups xmm0, xmmword [ebp - 0x148]
mov ecx, 7
xor edx, edx
mov word [ebp - 0x148], dx
movups xmmword [ebp - 0x4c], xmm0
movq xmm0, qword [ebp - 0x138]
mov dword [ebp - 0x134], ecx
jmp 0x403d33
movups xmm0, xmmword [ebp - 0xc4]
mov ecx, dword [ebp - 0x134]
movups xmmword [ebp - 0x4c], xmm0
movq xmm0, qword [ebp - 0xb4]
movq qword [ebp - 0x3c], xmm0
mov byte [ebp - 4], 3
test al, al
je 0x403d97
cmp ecx, 8
jb 0x403d7a
lea edx, [ecx*2 + 2]
mov ecx, dword [ebp - 0x148]
mov eax, ecx
cmp edx, 0x1000
jb 0x403d70
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x404156
push edx
push ecx
call fcn.0040826d
add esp, 8
xor eax, eax
mov dword [ebp - 0x138], 0
mov dword [ebp - 0x134], 7
mov word [ebp - 0x148], ax
cmp dword [ebp - 0x3c], 0
je 0x403f60
xor eax, eax
mov dword [ebp - 0x7c], 0
push eax
push 0x427a70
lea ecx, [ebp - 0x7c]
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x68], 7
mov word [ebp - 0x7c], ax
call fcn.00405f10
lea eax, [ebp - 0x7c]
mov byte [ebp - 4], 4
push eax
lea ecx, [ebp - 0x4c]
call fcn.004034d0
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x68]
cmp edx, 8
jb 0x403e18
mov ecx, dword [ebp - 0x7c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x403e0e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40415b
push edx
push ecx
call fcn.0040826d
add esp, 8
cmp dword [ebp - 0x38], 8
lea edi, [ebp - 0x4c]
mov eax, dword [ebp - 0x3c]
cmovae edi, dword [ebp - 0x4c]
mov ecx, edi
lea edx, [edi + eax*2]
call fcn.004033e0
cmp eax, edx
je 0x403e85
movzx ecx, word [eax]
cmp ecx, 0x5c
je 0x403e41
cmp ecx, 0x2f
jne 0x403e50
add eax, 2
cmp eax, edx
jne 0x403e34
jmp 0x403e85
movzx esi, word [edx - 2]
cmp esi, 0x5c
je 0x403e67
cmp esi, 0x2f
je 0x403e67
add edx, 0xfffffffe
cmp eax, edx
jne 0x403e50
jmp 0x403e85
cmp eax, edx
je 0x403e85
nop dword [eax + eax]
movzx esi, word [edx - 2]
cmp esi, 0x5c
je 0x403e7e
cmp esi, 0x2f
jne 0x403e85
add edx, 0xfffffffe
cmp eax, edx
jne 0x403e70
sub edx, edi
mov dword [ebp - 0x94], 0
sar edx, 1
lea ecx, [ebp - 0x94]
push edx
xor eax, eax
mov dword [ebp - 0x84], 0
push edi
mov dword [ebp - 0x80], 7
mov word [ebp - 0x94], ax
call fcn.00405f10
lea eax, [ebp - 0x94]
mov byte [ebp - 4], 5
push eax
lea ecx, [ebp - 0x10c]
call fcn.00405890
lea eax, [ebp - 0x10c]
push eax
lea ecx, [ebp - 0x64]
call fcn.00405800
mov edx, dword [ebp - 0xf8]
cmp edx, 8
jb 0x403f1f
mov ecx, dword [ebp - 0x10c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x403f15
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x404160
push edx
push ecx
call fcn.0040826d
add esp, 8
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x80]
cmp edx, 8
jb 0x403f60
mov ecx, dword [ebp - 0x94]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x403f56
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x404160
push edx
push ecx
call fcn.0040826d
add esp, 8
xor eax, eax
mov dword [ebp - 0x34], 0
push 0x108
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 7
mov word [ebp - 0x34], ax
call fcn.004061d0
mov edx, eax
mov dword [ebp - 0x24], 0x104
xor eax, eax
mov dword [ebp - 0x20], 0x107
mov ecx, 0x82
mov edi, edx
rep stosd dword es:[edi], eax
mov word [edx + 0x208], ax
mov dword [ebp - 0x34], edx
mov byte [ebp - 4], 6
lea eax, [ebp - 0x34]
cmp dword [ebp - 0x20], 8
push 0x104
cmovae eax, edx
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, 0x104
jae 0x403ffa
cmp dword [ebp - 0x54], 0
je 0x403fe3
push 1
push 0x427a74
lea ecx, [ebp - 0x64]
call fcn.00405680
cmp dword [ebp - 0x20], 8
lea eax, [ebp - 0x34]
push dword [ebp - 0x24]
cmovae eax, dword [ebp - 0x34]
lea ecx, [ebp - 0x64]
push eax
call fcn.00405680
cmp dword [ebp - 0x50], 8
lea eax, [ebp - 0x64]
cmovae eax, dword [ebp - 0x64]
push eax
push str.PATH
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov esi, dword [ebp - 0x12c]
movups xmm0, xmmword [ebp - 0x158]
mov edx, dword [ebp - 0x20]
mov dword [esi], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
movups xmmword [esi], xmm0
movq xmm0, qword [ebp - 0x118]
movq qword [esi + 0x10], xmm0
mov byte [esi + 0x18], 1
cmp edx, 8
jb 0x404080
mov ecx, dword [ebp - 0x34]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x404076
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x404160
push edx
push ecx
call fcn.0040826d
add esp, 8
mov edx, dword [ebp - 0x38]
xor eax, eax
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 7
mov word [ebp - 0x34], ax
cmp edx, 8
jb 0x4040ce
mov ecx, dword [ebp - 0x4c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4040c4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x404160
push edx
push ecx
call fcn.0040826d
add esp, 8
mov edx, dword [ebp - 0x50]
xor eax, eax
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 7
mov word [ebp - 0x4c], ax
cmp edx, 8
jb 0x404118
mov ecx, dword [ebp - 0x64]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40410e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x404160
push edx
push ecx
call fcn.0040826d
add esp, 8
mov eax, esi
jmp 0x404138
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.0040825f
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.0040c55f
call fcn.0040c55f
call fcn.0040c55f
int3