Function at 0x10080730
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101f2d62
mov eax, dword fs:[0]
push eax
sub esp, 0x274
mov eax, dword [0x10275008]
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 edi, dword [ebp + 8]
mov esi, dword [ebp + 0x14]
test edi, edi
jne 0x1008076f
xor al, al
jmp 0x100809f4
push edi
lea eax, [ebp - 0x24c]
movzx ebx, di
push eax
call fcn.10080a20
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x268]
cmp dword [ebp - 0x238], 8
lea eax, [ebp - 0x24c]
push ecx
cmovae eax, dword [ebp - 0x24c]
push 0x20019
push 0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x268], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x100807c9
xor bl, bl
jmp 0x100809e0
test edi, 0xffff0000
jne 0x100807dc
imul eax, ebx, 0x10001
mov dword [esi + 4], eax
jmp 0x100807df
mov dword [esi + 4], edi
push 0x26
push 0x10224e80
lea ecx, [esi + 0x10]
mov dword [esi], ebx
call fcn.10005390
push 0x26
push 0x10224e80
lea ecx, [esi + 0x28]
call fcn.10005390
mov al, byte [ebp + 0xc]
push 0x208
mov byte [esi + 0x70], al
lea eax, [ebp - 0x218]
push 0
push eax
mov byte [esi + 0x71], 1
mov dword [esi + 0x74], 0
call sub.VCRUNTIME140.dll_memset
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0x21c]
add esp, 0xc
mov dword [ebp - 0x21c], 0x208
push eax
lea eax, [ebp - 0x218]
push eax
push 0
push 0
push str.Ime_File
push dword [ebp - 0x268]
call ebx
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x264]
call fcn.10005290
mov byte [ebp - 4], 1
cmp dword [ebp - 0x254], 0
jbe 0x100808e5
lea ecx, [ebp - 0x234]
call fcn.100052e0
mov edx, ecx
mov byte [ebp - 4], 2
mov ecx, 0x25
call fcn.100ea410
mov edx, 0x10
lea ecx, [ebp - 0x234]
call fcn.100e1620
lea eax, [ebp - 0x264]
push eax
lea edx, [ebp - 0x234]
lea ecx, [ebp - 0x280]
call fcn.10022b10
add esp, 4
push eax
lea ecx, [esi + 0x40]
mov byte [ebp - 4], 3
call fcn.10008620
lea ecx, [ebp - 0x280]
mov byte [ebp - 4], 2
call fcn.10005250
lea ecx, [ebp - 0x234]
mov byte [ebp - 4], 1
call fcn.10005250
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x21c], 0x208
push eax
lea eax, [ebp - 0x218]
push eax
push 0
push 0
push str.Layout_Display_Name
push dword [ebp - 0x268]
call ebx
test eax, eax
jne 0x1008096a
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x234]
call fcn.10005290
lea eax, [ebp - 0x234]
mov byte [ebp - 4], 4
push eax
lea eax, [ebp - 0x280]
push eax
call fcn.10080240
lea edi, [esi + 0x58]
mov byte [ebp - 4], 5
push eax
mov ecx, edi
call fcn.10008620
lea ecx, [ebp - 0x280]
mov byte [ebp - 4], 4
call fcn.10005250
lea ecx, [ebp - 0x234]
mov byte [ebp - 4], 1
call fcn.10005250
jmp 0x1008096d
lea edi, [esi + 0x58]
cmp dword [esi + 0x68], 0
jne 0x100809c3
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x21c], 0x208
push eax
lea eax, [ebp - 0x218]
push eax
push 0
push 0
push str.Layout_Text
push dword [ebp - 0x268]
call ebx
lea edx, [ebp - 0x218]
lea ecx, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x100809a5
sub edx, ecx
lea eax, [ebp - 0x218]
sar edx, 1
mov ecx, edi
push edx
push eax
call fcn.10005390
push dword [ebp - 0x268]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x264]
mov byte [ebp - 4], 0
mov bl, 1
call fcn.10005250
lea ecx, [ebp - 0x24c]
mov dword [ebp - 4], 0xffffffff
call fcn.10005250
mov al, bl
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.101c837b
mov esp, ebp
pop ebp
ret 0x10