Function at 0x4aab90
Capabilities:
Get common file path
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x64f4a1
mov eax, dword fs:[0]
push eax
sub esp, 0x11c
mov eax, dword [0x758898]
xor eax, esp
mov dword [esp + 0x118], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x758898]
xor eax, esp
push eax
lea eax, [esp + 0x130]
mov dword fs:[0], eax
mov edi, dword [esp + 0x140]
xor ebx, ebx
mov dword [esp + 0x20], edi
cmp dword [0x75e5b0], ebx
jne 0x4aaeb0
push 0x104
push ebx
push 0x75e4a8
xor edi, edi
mov dword [esp + 0x28], ebx
call fcn.00620850
push 0x104
push ebx
push 0x75e3a0
call fcn.00620850
push 0x67b490
call fcn.00447f30
mov esi, eax
add esp, 0x1c
cmp esi, ebx
je 0x4aacb0
push str.SHGetFolderPathA
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebp, eax
cmp ebp, ebx
je 0x4aaca5
push ebx
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [esp + 0x28]
push eax
push ebx
push ebx
push 0x26
push ebx
call ebp
test eax, eax
jne 0x4aac6a
push 0x103
lea ecx, [esp + 0x2c]
push ecx
push 0x75e4a8
call fcn.006219d0
add esp, 0xc
mov byte [0x75e5ab], bl
lea edi, [ebx + 1]
lea edx, [esp + 0x28]
push edx
push ebx
push ebx
push 0x24
push ebx
call ebp
cmp eax, ebx
jne 0x4aac9f
push 0x103
lea eax, [esp + 0x2c]
push eax
push 0x75e3a0
call fcn.006219d0
add esp, 0xc
mov byte [0x75e4a3], bl
mov dword [esp + 0x1c], 1
call dword [sym.imp.ole32.dll_CoUninitialize]
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp edi, ebx
jne 0x4aad24
lea ecx, [esp + 0x14]
push ecx
push 0x20019
push ebx
push str.SOFTWAREMicrosoftWindowsCurrentVersion
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4aad24
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x2c]
push eax
push ebx
push ebx
push str.ProgramFilesDir
push ecx
mov dword [esp + 0x30], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4aad19
push 0x103
lea edx, [esp + 0x2c]
push edx
push 0x75e4a8
call fcn.006219d0
add esp, 0xc
mov byte [0x75e5ab], bl
mov edi, 1
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [esp + 0x1c], ebx
jne 0x4aad63
push 0x104
lea ecx, [esp + 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
je 0x4aad63
push 0x103
lea edx, [esp + 0x2c]
push edx
push 0x75e3a0
call fcn.006219d0
add esp, 0xc
mov byte [0x75e4a3], bl
mov dword [esp + 0x1c], 1
cmp edi, ebx
je 0x4aae51
push 0x7e
push 0x75e4a8
call fcn.00621750
add esp, 8
test eax, eax
je 0x4aae0a
push 0x75e4a8
lea ecx, [esp + 0x1c]
call fcn.004030b0
mov dword [esp + 0x138], ebx
push ecx
lea eax, [esp + 0x1c]
mov ecx, esp
mov dword [esp + 0x28], esp
push eax
call fcn.004027c0
mov byte [esp + 0x13c], 1
lea ecx, [esp + 0x18]
push ecx
mov byte [esp + 0x140], bl
call fcn.00449de0
mov byte [esp + 0x140], 2
mov edx, dword [esp + 0x1c]
push 0x103
push edx
push 0x75e4a8
call fcn.006219d0
add esp, 0x14
mov byte [0x75e5ab], bl
mov byte [esp + 0x138], bl
lea ecx, [esp + 0x14]
call fcn.00402570
mov dword [esp + 0x138], 0xffffffff
lea ecx, [esp + 0x18]
call fcn.00402570
mov eax, 0x75e4a8
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4aae12
sub eax, edx
cmp eax, ebx
jle 0x4aae41
cmp byte [eax + 0x75e4a7], 0x5c
je 0x4aae41
mov edi, 0x75e4a8
dec edi
mov edi, edi
mov al, byte [edi + 1]
inc edi
cmp al, bl
jne 0x4aae30
mov ax, word [0x67d038]
mov word [edi], ax
push ebx
push 0x75e4a8
mov ecx, 0x75e5bc
call fcn.00401980
cmp dword [esp + 0x1c], ebx
je 0x4aaea2
mov eax, 0x75e3a0
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4aae60
sub eax, edx
cmp eax, ebx
jle 0x4aae92
cmp byte [eax + 0x75e39f], 0x5c
je 0x4aae92
mov edi, 0x75e3a0
dec edi
lea esp, [esp]
mov al, byte [edi + 1]
inc edi
cmp al, bl
jne 0x4aae80
mov cx, word [0x67d038]
mov word [edi], cx
push ebx
push 0x75e3a0
mov ecx, 0x75e5c8
call fcn.00401980
mov edi, dword [esp + 0x20]
mov dword [0x75e5b0], 1
mov edx, dword [0x75e5bc]
mov eax, edx
cmp edx, ebx
jne 0x4aaec1
mov eax, 0x75e5c0
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4aaec4
sub eax, esi
sar eax, 1
mov ecx, edx
cmp edx, ebx
jne 0x4aaede
mov ecx, 0x75e5c0
lea edx, [eax + eax]
push edx
push ecx
push edi
call fcn.00624bdd
add esp, 0xc
test eax, eax
jne 0x4aaef7
mov eax, 1
jmp 0x4aaf3c
mov edx, dword [0x75e5c8]
mov eax, edx
cmp edx, ebx
jne 0x4aaf08
mov eax, 0x75e5cc
lea esi, [eax + 2]
jmp 0x4aaf10
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4aaf10
sub eax, esi
sar eax, 1
mov ecx, edx
cmp edx, ebx
jne 0x4aaf2a
mov ecx, 0x75e5cc
add eax, eax
push eax
push ecx
push edi
call fcn.00624bdd
add esp, 0xc
neg eax
sbb eax, eax
inc eax
mov ecx, dword [esp + 0x130]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x118]
xor ecx, esp
call fcn.0062016f
add esp, 0x128
ret