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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x104
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x4c04d0
lea eax, [ebp - 0x18]
lea esi, [ebp - 0x110]
mov ecx, dword fs:[0]
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
mov dword [ebp - 0x34], 7
mov dword [ebp - 0x38], 0
mov word [ebp - 0x48], 0
push 0x98
push str.SoftwareClassesCLSID054AAE20_4BEA_4347_8A35_64A533254A9DLocalServer32
push esi
call fcn.0061e340
add esp, 0xc
mov dword [ebp - 0x64], 7
mov dword [ebp - 0x10], 7
lea ecx, [ebp - 0x78]
push 0x20119
push esi
push 0x80000002
call fcn.004098d0
lea eax, [ebp - 0x48]
mov dword [ebp - 0x6c], 0x400
mov dword [ebp - 0x10], 8
push 0x400
push eax
call fcn.0042fcb0
add esp, 8
lea edx, [ebp - 0x6c]
lea ecx, [ebp - 0x78]
push 0
push edx
push eax
push 0
call fcn.004692e0
mov esi, dword [ebp + 8]
test eax, eax
je 0x4bcead
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], 0
jmp 0x4bd3e8
mov edi, dword [ebp - 0x38]
test edi, edi
je 0x4bce95
mov eax, dword [ebp - 0x34]
cmp eax, 8
mov dword [ebp - 0x30], eax
jb 0x4bcec4
mov ebx, dword [ebp - 0x48]
jmp 0x4bcec7
lea ebx, [ebp - 0x48]
push ebx
call fcn.005d3244
add esp, 4
mov esi, eax
cmp edi, eax
jae 0x4bcf08
mov edx, dword [ebp - 0x30]
mov eax, esi
sub eax, edi
mov ecx, edx
sub ecx, edi
cmp ecx, eax
jae 0x4bcf0d
sub esp, 0x10
mov cl, byte [ebp - 0x60]
mov byte [esp + 4], cl
lea ecx, [ebp - 0x48]
mov dword [esp + 8], eax
mov dword [esp], eax
mov dword [esp + 0xc], 0
call fcn.0040e070
jmp 0x4bcf38
mov dword [ebp - 0x38], esi
jmp 0x4bcf32
cmp edx, 7
mov dword [ebp - 0x38], esi
jbe 0x4bcf1a
mov ebx, dword [ebp - 0x48]
jmp 0x4bcf1d
lea ebx, [ebp - 0x48]
test eax, eax
je 0x4bcf32
add eax, eax
lea ecx, [ebx + edi*2]
push eax
push 0
push ecx
call fcn.0061e8c0
add esp, 0xc
mov word [ebx + esi*2], 0
mov eax, dword [ebp - 0x38]
cmp dword [ebp - 0x34], 7
jbe 0x4bcf4e
mov edx, dword [ebp - 0x48]
cmp eax, 0x14
jae 0x4bcf5a
jmp 0x4bd3ce
lea edx, [ebp - 0x48]
cmp eax, 0x14
jb 0x4bd3ce
lea esi, [edx + eax*2 - 0x26]
mov edi, esi
sub edi, edx
je 0x4bd3ce
mov ecx, edx
sar edi, 1
nop dword [eax]
cmp word [ecx], 0x25
je 0x4bcf81
add ecx, 2
dec edi
jne 0x4bcf70
jmp 0x4bd3ce
mov edi, 0xffffffda
nop word cs:[eax + eax]
test edi, edi
je 0x4bcfb3
movzx ebx, word [ecx + edi + 0x28]
cmp bx, word [edi + 0x65dc1c]
lea edi, [edi + 2]
je 0x4bcf90
add ecx, 2
mov edi, esi
sub edi, ecx
jne 0x4bcf6a
jmp 0x4bd3ce
mov esi, ecx
sub esi, edx
cmp esi, 0xfffffffe
je 0x4bd3ce
sar esi, 1
mov edx, eax
sub edx, esi
jb 0x4bd449
cmp edx, 0x14
mov edi, 0x14
cmovb edi, edx
sub eax, edi
lea edx, [ecx + edi*2]
mov dword [ebp - 0x38], eax
sub eax, esi
lea eax, [eax + eax + 2]
push eax
push edx
push ecx
call fcn.0061e340
add esp, 0xc
mov dword [ebp - 0x4c], 7
mov dword [ebp - 0x50], 0
mov word [ebp - 0x60], 0
mov dword [ebp - 0x10], 9
push 0
push 0
push str.CommonProgramW6432
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x4bd0a2
mov edx, eax
xor ecx, ecx
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
inc edx
je 0x4bd05b
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x20]
mov dword [ebp - 0x10], 0xa
lea ecx, [ebp - 0x2c]
push eax
push edx
call fcn.004beb40
mov ecx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x10], 0xa
push eax
push ecx
push str.CommonProgramW6432
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov edi, dword [ebp - 0x2c]
push edi
call fcn.005d3244
add esp, 4
mov esi, eax
mov eax, dword [ebp - 0x4c]
cmp eax, esi
jae 0x4bd101
sub esp, 0xc
mov al, byte [ebp - 0x20]
lea ecx, [ebp - 0x60]
mov byte [esp + 4], al
mov dword [esp + 8], edi
mov dword [esp], esi
call fcn.00405590
jmp 0x4bd126
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x10], 0xb
push eax
push 0
push 0
push 0x65817c
call sub.SHELL32.dll_SHGetKnownFolderPath
test eax, eax
js 0x4bd177
mov edi, dword [ebp - 0x2c]
push edi
call fcn.005d3244
add esp, 4
mov esi, eax
mov eax, dword [ebp - 0x4c]
cmp eax, esi
jae 0x4bd1bc
sub esp, 0xc
mov al, byte [ebp - 0x20]
lea ecx, [ebp - 0x60]
mov byte [esp + 4], al
mov dword [esp + 8], edi
mov dword [esp], esi
call fcn.00405590
jmp 0x4bd250
cmp eax, 7
jbe 0x4bd10b
mov ebx, dword [ebp - 0x60]
jmp 0x4bd10e
lea ebx, [ebp - 0x60]
mov eax, esi
mov dword [ebp - 0x50], esi
add eax, esi
push eax
push edi
push ebx
call fcn.0061e340
add esp, 0xc
mov word [ebx + esi*2], 0
mov ecx, dword [ebp - 0x2c]
test ecx, ecx
je 0x4bd265
mov eax, dword [ebp - 0x24]
sub eax, ecx
cmp eax, 0x1000
jb 0x4bd153
mov edx, dword [ecx - 4]
add ecx, 0xfffffffc
sub ecx, edx
cmp ecx, 0x20
jae 0x4bd461
add eax, 0x23
mov ecx, edx
push eax
push ecx
call fcn.005d319e
add esp, 8
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
jmp 0x4bd265
mov edi, dword [ebp + 8]
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], 0
mov word [edi], 0
push 0
call fcn.005d3244
add esp, 4
mov esi, eax
cmp eax, 7
jbe 0x4bd1c6
sub esp, 0xc
mov al, byte [ebp - 0x20]
mov ecx, edi
mov byte [esp + 4], al
mov dword [esp], esi
mov dword [esp + 8], 0
call fcn.00405590
jmp 0x4bd1df
cmp eax, 7
jbe 0x4bd235
mov ebx, dword [ebp - 0x60]
jmp 0x4bd238
mov eax, esi
mov dword [edi + 0x10], esi
add eax, esi
push eax
push 0
push edi
call fcn.0061e340
add esp, 0xc
mov word [edi + esi*2], 0
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x4bd1f4
mov dword [ebp - 0x10], 2
push eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov ecx, dword [ebp - 0x4c]
mov esi, dword [ebp + 8]
cmp ecx, 8
jb 0x4bd3e8
mov eax, dword [ebp - 0x60]
lea edx, [ecx + ecx + 2]
cmp edx, 0x1000
jb 0x4bd2c2
mov edx, eax
mov eax, dword [eax - 4]
add edx, 0xfffffffc
sub edx, eax
cmp edx, 0x20
jb 0x4bd2bb
mov dword [ebp - 0x10], 3
call fcn.006207e0
lea ebx, [ebp - 0x60]
mov eax, esi
mov dword [ebp - 0x50], esi
add eax, esi
push eax
push edi
push ebx
call fcn.0061e340
add esp, 0xc
mov word [ebx + esi*2], 0
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x4bd265
mov dword [ebp - 0x10], 1
push eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov esi, dword [ebp - 0x50]
test esi, esi
je 0x4bd277
cmp dword [ebp - 0x4c], 7
jbe 0x4bd2d1
mov edi, dword [ebp - 0x60]
jmp 0x4bd2d4
mov ecx, dword [ebp - 0x4c]
mov esi, dword [ebp + 8]
cmp ecx, 7
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], 0
jbe 0x4bd3e8
mov eax, dword [ebp - 0x60]
lea edx, [ecx + ecx + 2]
cmp edx, 0x1000
jb 0x4bd2c2
mov edx, eax
mov eax, dword [eax - 4]
add edx, 0xfffffffc
sub edx, eax
cmp edx, 0x20
jae 0x4bd479
add ecx, ecx
add ecx, 0x25
mov edx, ecx
push edx
push eax
call fcn.005d319e
add esp, 8
jmp 0x4bd3e8
lea edi, [ebp - 0x60]
mov eax, dword [ebp - 0x38]
test eax, eax
je 0x4bd455
mov ecx, dword [ebp - 0x34]
mov edx, ecx
sub edx, eax
cmp edx, esi
jae 0x4bd318
mov dword [ebp - 0x10], 9
sub esp, 0x14
mov al, byte [ebp - 0x2c]
lea ecx, [ebp - 0x48]
mov byte [esp + 4], al
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], edi
mov dword [esp], esi
mov dword [esp + 8], 1
call fcn.0041ef90
jmp 0x4bd38c
lea edx, [eax + esi]
cmp ecx, 7
mov dword [ebp - 0x38], edx
jbe 0x4bd328
mov ecx, dword [ebp - 0x48]
jmp 0x4bd32b
lea ecx, [ebp - 0x48]
lea edx, [edi + esi*2]
lea ebx, [ecx + 2]
mov dword [ebp - 0x30], edx
cmp edx, ebx
mov edx, edi
mov edi, esi
jbe 0x4bd351
lea ecx, [ecx + eax*2]
mov edi, esi
cmp ecx, edx
jb 0x4bd351
mov ecx, ebx
xor edi, edi
sub ecx, edx
jbe 0x4bd351
sar ecx, 1
mov edi, ecx
add eax, eax
lea ecx, [ebx + esi*2]
push eax
push ebx
push ecx
mov dword [ebp - 0x68], edx
call fcn.0061e340
add esp, 0xc
lea eax, [edi + edi]
push eax
push dword [ebp - 0x68]
push ebx
call fcn.0061e340
add esp, 0xc
mov eax, dword [ebp - 0x30]
sub esi, edi
lea ecx, [ebx + edi*2]
add esi, esi
lea eax, [eax + edi*2]
push esi
push eax
push ecx
call fcn.0061e340
add esp, 0xc
mov ecx, dword [ebp - 0x4c]
cmp ecx, 8
jb 0x4bd3c7
mov eax, dword [ebp - 0x60]
lea edx, [ecx + ecx + 2]
cmp edx, 0x1000
jb 0x4bd3bd
mov edx, eax
mov eax, dword [eax - 4]
add edx, 0xfffffffc
sub edx, eax
cmp edx, 0x20
jae 0x4bd46d
add ecx, ecx
add ecx, 0x25
mov edx, ecx
push edx
push eax
call fcn.005d319e
add esp, 8
mov dword [ebp - 0x10], 8
lea eax, [ebp - 0x48]
mov dword [ebp - 0x10], 8
push eax
mov eax, dword [ebp + 8]
push eax
call fcn.004b7360
mov esi, dword [ebp + 8]
add esp, 8
lea ecx, [ebp - 0x78]
call fcn.004080a0
mov ecx, dword [ebp - 0x34]
cmp ecx, 8
jb 0x4bd427
mov eax, dword [ebp - 0x48]
lea edx, [ecx + ecx + 2]
cmp edx, 0x1000
jb 0x4bd41d
mov edx, eax
mov eax, dword [eax - 4]
add edx, 0xfffffffc
sub edx, eax
cmp edx, 0x20
jae 0x4bd43d
add ecx, ecx
add ecx, 0x25
mov edx, ecx
push edx
push eax
call fcn.005d319e
add esp, 8
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
mov eax, esi
add esp, 0x104
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [ebp - 0x10], 6
call fcn.006207e0
mov dword [ebp - 0x10], 8
call fcn.005e9a00
mov dword [ebp - 0x10], 9
call fcn.005e9a00
mov dword [ebp - 0x10], 0
call fcn.006207e0
mov dword [ebp - 0x10], 4
call fcn.006207e0
mov dword [ebp - 0x10], 5
call fcn.006207e0
nop word cs:[eax + eax]
nop
push ebp
sub esp, 0x14
add ebp, 0xc
call fcn.0061de80
nop dword [eax]
push ebp
sub esp, 0x14
add ebp, 0xc
call fcn.0061de80
nop dword [eax]
push ebp
sub esp, 0x14
add ebp, 0xc
call fcn.0061de80
nop dword [eax]
push ebp
sub esp, 0x14
add ebp, 0xc
call fcn.0061de80
nop dword [eax]
push ebp
sub esp, 0x14
add ebp, 0xc
call fcn.0061de80
nop dword [eax]
push ebp
sub esp, 0x14
add ebp, 0xc
call fcn.0061de80
nop dword [eax]
push ebp
sub esp, 0x14
add ebp, 0xc
call fcn.0061de80
nop dword [eax]
push ebp
sub esp, 0x14
add ebp, 0xc
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x4bd515
push eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
add esp, 0x14
pop ebp
ret