Function at 0x480e10
Capabilities:
Get common file path
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c47ed
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x4f4164]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x30]
push eax
call fcn.004808c0
add esp, 4
push eax
lea ecx, [ebp - 0x48]
mov dword [ebp - 4], 0
call fcn.00405c80
lea eax, [ebp - 0x48]
mov ecx, 0x4f5234
push eax
call fcn.004036f0
mov edx, dword [ebp - 0x34]
cmp edx, 8
jb 0x480e9e
mov ecx, dword [ebp - 0x48]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x480e94
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x48137f
push edx
push ecx
call fcn.00450975
add esp, 8
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 4], 0xffffffff
cmp edx, 8
jb 0x480edf
mov ecx, dword [ebp - 0x30]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x480ed5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x48137f
push edx
push ecx
call fcn.00450975
add esp, 8
lea eax, [ebp - 0x30]
push eax
call fcn.00480bd0
add esp, 4
push eax
lea ecx, [ebp - 0x48]
mov dword [ebp - 4], 1
call fcn.00405c80
lea eax, [ebp - 0x48]
mov ecx, 0x4f524c
push eax
call fcn.004036f0
mov edx, dword [ebp - 0x34]
cmp edx, 8
jb 0x480f43
mov ecx, dword [ebp - 0x48]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x480f39
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x481384
push edx
push ecx
call fcn.00450975
add esp, 8
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 4], 0xffffffff
cmp edx, 8
jb 0x480f84
mov ecx, dword [ebp - 0x30]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x480f7a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x481384
push edx
push ecx
call fcn.00450975
add esp, 8
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov edx, 2
test eax, eax
je 0x481025
lea esi, [eax + 1]
xor ecx, ecx
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00451161
mov edi, eax
add esp, 4
mov dword [ebp - 0x14], edi
push esi
push edi
mov dword [ebp - 4], 2
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
je 0x481016
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x480fd1
sub ecx, edx
mov dword [ebp - 0x30], 0
sar ecx, 1
xor eax, eax
push ecx
push edi
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 7
mov word [ebp - 0x30], ax
call fcn.004038a0
test edi, edi
je 0x48104c
push 2
push edi
call fcn.00450975
add esp, 8
jmp 0x48104c
test edi, edi
je 0x481025
push 2
push edi
call fcn.00450975
add esp, 8
xorps xmm0, xmm0
xor eax, eax
movups xmmword [ebp - 0x30], xmm0
mov dword [ebp - 0x30], 0
movq qword [ebp - 0x20], xmm0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 7
mov word [ebp - 0x30], ax
lea eax, [ebp - 0x30]
mov dword [ebp - 4], 3
push eax
lea ecx, [ebp - 0x48]
call fcn.00405c80
lea eax, [ebp - 0x48]
mov ecx, 0x4f5264
push eax
call fcn.004036f0
mov edx, dword [ebp - 0x34]
cmp edx, 8
jb 0x4810a7
mov ecx, dword [ebp - 0x48]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x48109d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x481389
push edx
push ecx
call fcn.00450975
add esp, 8
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 4], 0xffffffff
cmp edx, 8
jb 0x4810e8
mov ecx, dword [ebp - 0x30]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4810de
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x481389
push edx
push ecx
call fcn.00450975
add esp, 8
push 0
push 0
push str.ProgramFiles
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x48119b
lea esi, [eax + 1]
xor ecx, ecx
mov eax, esi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00451161
mov edi, eax
add esp, 4
mov dword [ebp - 0x18], edi
push esi
push edi
push str.ProgramFiles
mov dword [ebp - 4], 4
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x481185
mov ecx, edi
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x481140
sub ecx, edx
mov dword [ebp - 0x30], 0
sar ecx, 1
xor eax, eax
push ecx
push edi
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 7
mov word [ebp - 0x30], ax
call fcn.004038a0
test edi, edi
je 0x4811b3
push 2
push edi
call fcn.00450975
add esp, 8
jmp 0x4811b3
mov dword [ebp - 4], 0xffffffff
test edi, edi
je 0x48119b
push 2
push edi
call fcn.00450975
add esp, 8
mov byte [ebp - 0x14], 0
lea eax, [ebp - 0x30]
push dword [ebp - 0x14]
push 0x4cb58c
push eax
call fcn.00469cd0
add esp, 0xc
lea eax, [ebp - 0x30]
mov dword [ebp - 4], 5
push eax
lea ecx, [ebp - 0x48]
call fcn.00405c80
lea eax, [ebp - 0x48]
mov ecx, 0x4f527c
push eax
call fcn.004036f0
mov edx, dword [ebp - 0x34]
cmp edx, 8
jb 0x48120e
mov ecx, dword [ebp - 0x48]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x481204
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x48138e
push edx
push ecx
call fcn.00450975
add esp, 8
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 4], 0xffffffff
cmp edx, 8
jb 0x48124f
mov ecx, dword [ebp - 0x30]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x481245
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x48138e
push edx
push ecx
call fcn.00450975
add esp, 8
lea eax, [ebp - 0x48]
push eax
call fcn.00480260
add esp, 4
push eax
lea ecx, [ebp - 0x30]
mov dword [ebp - 4], 6
call fcn.00405c80
lea eax, [ebp - 0x30]
mov ecx, 0x4f5294
push eax
call fcn.004036f0
mov edx, dword [ebp - 0x1c]
cmp edx, 8
jb 0x4812b3
mov ecx, dword [ebp - 0x30]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4812a9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x481393
push edx
push ecx
call fcn.00450975
add esp, 8
mov edx, dword [ebp - 0x34]
mov dword [ebp - 4], 0xffffffff
cmp edx, 8
jb 0x4812f4
mov ecx, dword [ebp - 0x48]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4812ea
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x481393
push edx
push ecx
call fcn.00450975
add esp, 8
xor eax, eax
mov dword [ebp - 0x38], 0
cmp dword [0x4f5260], 8
mov word [ebp - 0x48], ax
mov eax, 0x4f524c
cmovae eax, dword [0x4f524c]
push eax
mov dword [ebp - 0x34], 7
mov byte [0x4f98fc], 1
call fcn.00486830
test al, al
mov byte [0x4f98fe], 1
mov eax, 0x4f5294
mov byte [0x4f98ff], 1
sete byte [0x4f98fd]
cmp dword [0x4f52a8], 8
cmovae eax, dword [0x4f5294]
push eax
call fcn.00486830
add esp, 8
test al, al
sete byte [0x4f9910]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00450df0
mov esp, ebp
pop ebp
ret
call fcn.004984ff
call fcn.004984ff
call fcn.004984ff
call fcn.004984ff
call fcn.004984ff
int3