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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x575d97
mov eax, dword fs:[0]
push eax
sub esp, 0xe8
mov eax, dword [0x5edd38]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0xc4]
xor eax, eax
mov dword [ebp - 0xf4], ebx
push eax
push 0x586454
mov dword [ebp - 0xb4], 0
mov dword [ebp - 0xb0], 7
mov word [ebp - 0xc4], ax
call fcn.00408f30
push 0x20119
lea eax, [ebp - 0xa8]
mov dword [ebp - 4], 0
mov ecx, 0x26
lea edi, [ebp - 0xa8]
mov esi, str.SoftwareClassesCLSID054AAE20_4BEA_4347_8A35_64A533254A9DLocalServer32
xorps xmm0, xmm0
rep movsd dword es:[edi], dword [esi]
push eax
push 0x80000002
lea ecx, [ebp - 0xf0]
movlpd qword [ebp - 0xf0], xmm0
call fcn.0040c860
push 0x400
lea ecx, [ebp - 0xc4]
mov byte [ebp - 4], 1
mov dword [ebp - 0xf4], 0x400
call fcn.00410200
mov ecx, dword [ebp - 0xb4]
cmp ecx, 0x3ff
jb 0x49fd2a
cmp dword [ebp - 0xb0], 8
lea eax, [ebp - 0xc4]
mov dword [ebp - 0xb4], 0x3ff
cmovae eax, dword [ebp - 0xc4]
xor ecx, ecx
mov word [eax + 0x7fe], cx
jmp 0x49fd42
mov eax, 0x3ff
sub eax, ecx
lea ecx, [ebp - 0xc4]
push 0
push eax
lfence
call fcn.0046c230
cmp dword [ebp - 0xb0], 8
lea ecx, [ebp - 0xf4]
push 0
push ecx
lea eax, [ebp - 0xc4]
cmovae eax, dword [ebp - 0xc4]
lea ecx, [ebp - 0xf0]
push eax
push 0
call fcn.004470c0
test eax, eax
jne 0x4a0172
mov edx, dword [ebp - 0xb4]
test edx, edx
je 0x4a0172
mov esi, dword [ebp - 0xb0]
lea ecx, [ebp - 0xc4]
mov edi, dword [ebp - 0xc4]
cmp esi, 8
cmovae ecx, edi
lea eax, [ecx + 2]
mov dword [ebp - 0xac], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x49fda4
sub ecx, dword [ebp - 0xac]
sar ecx, 1
cmp ecx, edx
ja 0x49fdd5
cmp esi, 8
mov dword [ebp - 0xb4], ecx
lea eax, [ebp - 0xc4]
cmovae eax, edi
xor edx, edx
mov word [eax + ecx*2], dx
jmp 0x49fde8
sub ecx, edx
push 0
push ecx
lea ecx, [ebp - 0xc4]
lfence
call fcn.0046c230
cmp dword [ebp - 0xb0], 8
lea eax, [ebp - 0xc4]
push 0x14
cmovae eax, dword [ebp - 0xc4]
push str._CommonProgramFiles_
push 0
push dword [ebp - 0xb4]
push eax
call fcn.0040fea0
add esp, 0x14
cmp eax, 0xffffffff
je 0x4a00ef
push 0x14
push eax
lea ecx, [ebp - 0xc4]
call fcn.0042b0a0
xor eax, eax
mov dword [ebp - 0xcc], 0
mov dword [ebp - 0xc8], 7
mov word [ebp - 0xdc], ax
push eax
push eax
push str.CommonProgramW6432
mov byte [ebp - 4], 5
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov esi, eax
test esi, esi
je 0x49ff45
xorps xmm0, xmm0
mov dword [ebp - 0xe0], 0
movq qword [ebp - 0xe8], xmm0
mov dword [ebp - 0xe8], 0
mov dword [ebp - 0xe4], 0
mov dword [ebp - 0xe0], 0
lea eax, [esi + 1]
mov byte [ebp - 4], 6
push eax
lea ecx, [ebp - 0xe8]
call fcn.004a5050
push esi
mov esi, dword [ebp - 0xe8]
push esi
push str.CommonProgramW6432
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x49fec1
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0xdc]
call fcn.00408f30
mov byte [ebp - 4], 5
test esi, esi
je 0x4a0029
mov eax, dword [ebp - 0xe0]
sub eax, esi
sar eax, 1
lea ecx, [eax + eax]
mov eax, esi
mov byte [ebp - 4], 7
cmp ecx, 0x1000
jb 0x49ff18
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4a01e0
push ecx
push esi
call fcn.00409f25
add esp, 8
mov dword [ebp - 0xe8], 0
mov dword [ebp - 0xe4], 0
mov dword [ebp - 0xe0], 0
jmp 0x4a0025
mov dword [ebp - 0xac], 0
lea eax, [ebp - 0xac]
mov byte [ebp - 4], 8
push eax
push 0
push 0
push 0x58ef5c
call sub.SHELL32.dll_SHGetKnownFolderPath
test eax, eax
jns 0x49ffff
push 0
mov ecx, ebx
call fcn.0040e610
mov eax, dword [ebp - 0xac]
mov byte [ebp - 4], 9
test eax, eax
je 0x49ff8e
push eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov dword [ebp - 0xac], 0
mov eax, dword [ebp - 0xc8]
mov byte [ebp - 4], 0xa
cmp eax, 8
jb 0x49ffba
inc eax
lea ecx, [ebp - 0xdc]
push eax
push dword [ebp - 0xdc]
call fcn.0040a2e0
xor eax, eax
mov dword [ebp - 0xcc], 0
lea ecx, [ebp - 0xf0]
mov dword [ebp - 0xc8], 7
mov word [ebp - 0xdc], ax
call fcn.0040c8e0
mov eax, dword [ebp - 0xb0]
mov dword [ebp - 4], 0xb
cmp eax, 8
jb 0x4a01c2
inc eax
push eax
jmp 0x4a01b1
push dword [ebp - 0xac]
lea ecx, [ebp - 0xdc]
call fcn.0040e5e0
mov eax, dword [ebp - 0xac]
mov byte [ebp - 4], 0xc
test eax, eax
je 0x4a0025
push eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0xcc]
test ecx, ecx
jne 0x4a00a6
push 0x586454
mov ecx, ebx
call fcn.0040e610
mov eax, dword [ebp - 0xc8]
mov byte [ebp - 4], 0xd
cmp eax, 8
jb 0x4a0061
inc eax
lea ecx, [ebp - 0xdc]
push eax
push dword [ebp - 0xdc]
call fcn.0040a2e0
xor eax, eax
mov dword [ebp - 0xcc], 0
lea ecx, [ebp - 0xf0]
mov dword [ebp - 0xc8], 7
mov word [ebp - 0xdc], ax
call fcn.0040c8e0
mov eax, dword [ebp - 0xb0]
mov dword [ebp - 4], 0xe
cmp eax, 8
jb 0x4a01c2
inc eax
push eax
jmp 0x4a01b1
cmp dword [ebp - 0xc8], 8
lea eax, [ebp - 0xdc]
push ecx
cmovae eax, dword [ebp - 0xdc]
lea ecx, [ebp - 0xc4]
push eax
push 1
call fcn.004288c0
mov eax, dword [ebp - 0xc8]
mov byte [ebp - 4], 0xf
cmp eax, 8
jb 0x4a00eb
inc eax
lea ecx, [ebp - 0xdc]
push eax
push dword [ebp - 0xdc]
call fcn.0040a2e0
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0xb4]
cmp ecx, 2
jb 0x4a0143
mov edx, dword [ebp - 0xb0]
lea eax, [ebp - 0xc4]
mov esi, dword [ebp - 0xc4]
cmp edx, 8
cmovae eax, esi
cmp word [eax], 0x22
jne 0x4a0143
cmp edx, 8
lea eax, [ebp - 0xc4]
cmovae eax, esi
cmp word [eax + ecx*2 - 2], 0x22
jne 0x4a0143
lea eax, [ecx - 2]
push eax
push 1
push ebx
lea ecx, [ebp - 0xc4]
lfence
call fcn.00409610
jmp 0x4a0151
lea eax, [ebp - 0xc4]
mov ecx, ebx
push eax
call fcn.0040a1e0
lea ecx, [ebp - 0xf0]
call fcn.0040c8e0
mov eax, dword [ebp - 0xb0]
mov dword [ebp - 4], 0x10
cmp eax, 8
jb 0x4a01c2
inc eax
push eax
jmp 0x4a01b1
xor eax, eax
mov dword [ebx + 0x10], 0
push eax
mov dword [ebx + 0x14], 7
mov ecx, ebx
push 0x586454
mov word [ebx], ax
call fcn.00408f30
lea ecx, [ebp - 0xf0]
call fcn.0040c8e0
mov ecx, dword [ebp - 0xb0]
mov dword [ebp - 4], 4
cmp ecx, 8
jb 0x4a01c2
inc ecx
push ecx
push dword [ebp - 0xc4]
lea ecx, [ebp - 0xc4]
call fcn.0040a2e0
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00401682
mov esp, ebp
pop ebp
ret
call fcn.0054223b
int3