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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x61605b
push eax
mov eax, dword [0x6ecb30]
mov dword fs:[0], esp
sub esp, 0x114
push ebx
push ebp
xor ebp, ebp
push esi
cmp eax, ebp
push edi
jne 0x494efc
mov ecx, 0x41
xor eax, eax
mov edi, 0x6eca24
push 0x6bced8
rep stosd dword es:[edi], eax
mov ecx, 0x41
mov edi, 0x6ec914
rep stosd dword es:[edi], eax
mov dword [esp + 0x1c], ebp
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebx, eax
cmp ebx, ebp
je 0x494c2b
push 0x6c058c
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
mov dword [esp + 0x10], esi
je 0x494c20
push ebp
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [esp + 0x20]
push eax
push ebp
push ebp
push 0x26
push ebp
call esi
test eax, eax
jne 0x494bdd
lea edi, [esp + 0x20]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov ebp, 1
mov edx, ecx
mov esi, edi
mov edi, 0x6eca24
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x10]
lea eax, [esp + 0x20]
push eax
push 0
push 0
push 0x24
push 0
call esi
test eax, eax
jne 0x494c1a
lea edi, [esp + 0x20]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x18], 1
mov edx, ecx
mov esi, edi
mov edi, 0x6ec914
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.ole32.dll_CoUninitialize]
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
test ebp, ebp
jne 0x494ca5
lea eax, [esp + 0x14]
push eax
push 0x20019
push 0
push 0x6bea30
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x494ca5
lea ecx, [esp + 0x10]
lea edx, [esp + 0x20]
push ecx
push edx
push eax
push eax
mov eax, dword [esp + 0x24]
push 0x6bea20
push eax
mov dword [esp + 0x28], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x494c9a
lea edi, [esp + 0x20]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov ebp, 1
mov edx, ecx
mov esi, edi
mov edi, 0x6eca24
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x494ced
lea ecx, [esp + 0x20]
push 0x104
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
je 0x494ced
lea edi, [esp + 0x20]
or ecx, 0xffffffff
xor eax, eax
mov dword [esp + 0x18], 1
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, 0x6ec914
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
test ebp, ebp
mov ebp, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov bl, 0x5c
je 0x494e37
push 0x7e
push 0x6eca24
call fcn.005de150
add esp, 8
test eax, eax
je 0x494d88
push 0x6eca24
lea ecx, [esp + 0x14]
call fcn.005fa8c7
push ecx
lea eax, [esp + 0x14]
mov ecx, esp
mov dword [esp + 0x20], esp
push eax
mov dword [esp + 0x134], 0
call fcn.005fa5ce
lea ecx, [esp + 0x18]
push ecx
call fcn.0044d460
mov edi, dword [esp + 0x1c]
or ecx, 0xffffffff
xor eax, eax
add esp, 8
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, 0x6eca24
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x14]
call fcn.005fa859
lea ecx, [esp + 0x10]
mov dword [esp + 0x12c], 0xffffffff
call fcn.005fa859
mov edi, 0x6eca24
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
test ecx, ecx
jle 0x494dd0
cmp byte [ecx + 0x6eca23], bl
je 0x494dd0
mov edi, 0x6bd984
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, 0x6eca24
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x6eca18
call fcn.00401070
mov eax, 0x6eca24
test eax, eax
je 0x494e37
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x494e37
push eax
push eax
push 0xffffffffffffffff
push 0x6eca24
push eax
push eax
call ebp
test eax, eax
mov dword [0x6eca20], eax
je 0x494e37
lea ecx, [eax + eax + 2]
push ecx
call fcn.005f6c5c
add esp, 4
mov dword [0x6eca18], eax
test eax, eax
je 0x494e37
mov edx, dword [0x6eca20]
push edx
push eax
push 0xffffffffffffffff
push 0x6eca24
push 0
push 0
call ebp
mov dword [0x6eca20], eax
mov eax, dword [esp + 0x18]
test eax, eax
je 0x494ef2
mov edi, 0x6ec914
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
test ecx, ecx
jle 0x494e8b
cmp byte [ecx + 0x6ec913], bl
je 0x494e8b
mov edi, 0x6bd984
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, 0x6ec914
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x6ec908
call fcn.00401070
mov eax, 0x6ec914
test eax, eax
je 0x494ef2
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x494ef2
push eax
push eax
push 0xffffffffffffffff
push 0x6ec914
push eax
push eax
call ebp
test eax, eax
mov dword [0x6ec910], eax
je 0x494ef2
lea ecx, [eax + eax + 2]
push ecx
call fcn.005f6c5c
add esp, 4
mov dword [0x6ec908], eax
test eax, eax
je 0x494ef2
mov edx, dword [0x6ec910]
push edx
push eax
push 0xffffffffffffffff
push 0x6ec914
push 0
push 0
call ebp
mov dword [0x6ec910], eax
mov dword [0x6ecb30], 1
mov eax, dword [0x6eca18]
test eax, eax
jne 0x494f31
mov eax, 0x6eca1c
mov esi, eax
push eax
call fcn.005de123
mov edi, dword [esp + 0x138]
shl eax, 1
push eax
push esi
push edi
call fcn.005e0470
add esp, 0x10
test eax, eax
jne 0x494f35
mov eax, 1
jmp 0x494f62
mov esi, eax
jmp 0x494f0c
mov esi, dword [0x6ec908]
test esi, esi
je 0x494f43
mov eax, esi
jmp 0x494f4a
mov eax, 0x6ec90c
mov esi, eax
push eax
call fcn.005de123
shl eax, 1
push eax
push esi
push edi
call fcn.005e0470
add esp, 0x10
neg eax
sbb eax, eax
inc eax
mov ecx, dword [esp + 0x124]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x120
ret