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

Disassembly:
mov eax, 0x100e71e
call fcn.01007000
sub esp, 0x158
mov eax, dword [0x1010100]
xor eax, dword [ebp + 4]
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
xor ebx, ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x24], ebx
lea eax, [ebp - 0x28]
push eax
push 0x100
push dword [ebp + 8]
call fcn.01003a35
test eax, eax
jl 0x100569b
push dword [ebp + 8]
push 0x1001c34
call fcn.01004423
pop ecx
pop ecx
call fcn.010052ad
test eax, eax
je 0x1005628
lea eax, [ebp - 0x1c]
push eax
push 0x20019
push ebx
push 0x1001c00
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x10057c5
lea eax, [ebp - 0x20]
push eax
push ebx
lea eax, [ebp - 0x2c]
push eax
push ebx
mov edi, 0x1001be4
push edi
push dword [ebp - 0x1c]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
call esi
cmp eax, ebx
jne 0x100561f
cmp dword [ebp - 0x2c], 7
jne 0x100561f
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x20]
add eax, 3
and eax, 0xfffffffc
call fcn.01007020
mov dword [ebp - 0x10], esp
mov eax, esp
mov dword [ebp - 0x30], eax
lea ecx, [ebp - 0x20]
push ecx
push eax
push ebx
push ebx
push edi
push dword [ebp - 0x1c]
call esi
mov dword [ebp - 0x34], eax
cmp eax, ebx
jne 0x100561f
push ebx
push dword [ebp + 8]
push dword [ebp - 0x20]
push dword [ebp - 0x30]
call fcn.01003ef9
test eax, eax
jne 0x10055f4
push ebx
push 0x1001bd8
push dword [ebp - 0x20]
push dword [ebp - 0x30]
call fcn.01003ef9
test eax, eax
je 0x10055f7
xor eax, eax
inc eax
mov dword [ebp - 0x18], eax
jmp 0x100561f
or dword [ebp - 4], 0xffffffff
jmp 0x10057bd
cmp dword [ebp - 0x28], 9
jne 0x1005680
mov dword [ebp - 4], 3
push 0xc
pop eax
call fcn.01007020
mov dword [ebp - 0x10], esp
mov esi, esp
mov dword [ebp - 0x44], esi
push dword [ebp + 8]
push 0xa
push esi
call fcn.0100399f
mov dword [ebp - 0x48], eax
cmp eax, ebx
jl 0x1005680
mov al, byte [esi + 3]
mov byte [esi + 2], al
mov byte [esi + 3], 0x7e
mov al, byte [esi + 7]
mov byte [esi + 8], al
mov al, byte [esi + 6]
mov byte [esi + 7], al
mov al, byte [esi + 5]
mov byte [esi + 6], al
mov al, byte [esi + 4]
mov byte [esi + 5], al
mov byte [esi + 4], 0x31
mov dword [ebp + 8], esi
or dword [ebp - 4], 0xffffffff
mov esi, 0x104
push esi
lea eax, [ebp - 0x158]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
jne 0x10056c3
xor eax, eax
jmp 0x10057f6
push 0x1001b60
push esi
lea eax, [ebp - 0x158]
push eax
call fcn.01003a97
cmp eax, ebx
jl 0x10057bd
push 0x1001b5c
lea eax, [ebp - 0x158]
push eax
call fcn.010073f7
pop ecx
pop ecx
mov dword [ebp - 0x24], eax
cmp eax, ebx
jne 0x100570f
lea eax, [ebp - 0x158]
push eax
push 0x1001b30
call fcn.01004423
pop ecx
pop ecx
jmp 0x10057c5
mov dword [ebp - 4], 6
mov esi, 0x1000
mov eax, esi
call fcn.01007020
mov dword [ebp - 0x10], esp
mov edi, esp
mov dword [ebp - 0x30], edi
cmp edi, ebx
je 0x10057bd
push dword [ebp - 0x24]
push esi
push edi
call fcn.01007315
add esp, 0xc
test eax, eax
je 0x10057bd
push ebx
push 0x1001b24
push esi
push edi
call fcn.01003ef9
test eax, eax
je 0x1005732
push dword [ebp - 0x24]
push esi
push edi
call fcn.01007315
add esp, 0xc
test eax, eax
je 0x1005732
mov al, byte [edi]
cmp al, 0x5b
je 0x1005732
cmp al, 0xa
je 0x1005732
push ebx
push dword [ebp + 8]
push esi
push edi
call fcn.01003ef9
test eax, eax
jne 0x100578f
push ebx
push 0x1001bd8
push esi
push edi
call fcn.01003ef9
test eax, eax
je 0x1005792
xor eax, eax
inc eax
mov dword [ebp - 0x18], eax
jmp 0x1005754
or dword [ebp - 4], 0xffffffff
jmp 0x10057c5
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x24], ebx
je 0x10057dc
push dword [ebp - 0x24]
call fcn.010072c4
pop ecx
cmp dword [ebp - 0x18], ebx
je 0x10057e8
push 0x1001adc
jmp 0x10057ed
push 0x1001ab8
call fcn.01004423
pop ecx
mov eax, dword [ebp - 0x18]
lea esp, [ebp - 0x170]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x14]
xor ecx, dword [ebp + 4]
call fcn.0100708e
pop edi
pop esi
pop ebx
leave
ret 4