Function at 0x4118d0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x444468
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x4587e8]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edx, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
cmp dword [edx + 0x14], 8
mov edi, dword [ebp + 0x14]
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x44], edi
jb 0x411915
mov edx, dword [edx]
lea eax, [ebp - 0x3c]
push eax
mov eax, dword [ebp + 0x18]
or eax, 0x20019
push eax
push 0
push edx
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x411938
xor al, al
jmp 0x411aea
lea eax, [ebp - 0x34]
push eax
push 0
lea eax, [ebp - 0x38]
push eax
push 0
mov ecx, ebx
mov dword [edi], 0
mov byte [ebp - 0x2d], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
call fcn.00402800
push eax
push dword [ebp - 0x3c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, 0xea
je 0x41197c
test eax, eax
jne 0x411ade
mov eax, dword [ebp - 0x34]
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0042396e
mov ecx, dword [ebp - 0x34]
add esp, 4
mov ebx, eax
test ecx, ecx
je 0x4119bb
xor eax, eax
movzx edx, ax
mov eax, edx
shl edx, 0x10
or eax, edx
shr ecx, 1
mov edi, ebx
rep stosd dword es:[edi], eax
adc ecx, ecx
rep stosw word es:[edi], ax
mov edi, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x40]
lea eax, [ebp - 0x34]
push eax
push ebx
lea eax, [ebp - 0x38]
push eax
push 0
call fcn.00402800
push eax
push dword [ebp - 0x3c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x411ad1
mov eax, dword [ebp - 0x38]
cmp eax, 1
je 0x411a9a
cmp eax, 2
je 0x411a9a
cmp eax, 7
jne 0x411acb
mov eax, dword [ebp - 0x34]
inc eax
shr eax, 1
xor ecx, ecx
push eax
mov word [ebp - 0x2c], cx
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
push ebx
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
call fcn.00403620
mov dword [ebp - 4], 0
lea eax, [ebp - 0x2c]
cmp esi, eax
je 0x411a6c
cmp dword [esi + 0x14], 8
jb 0x411a4e
push dword [esi]
call fcn.00423c7d
add esp, 4
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], ax
lea eax, [ebp - 0x2c]
push eax
mov ecx, esi
call fcn.00402d10
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x18], 8
jb 0x411a84
push dword [ebp - 0x2c]
call fcn.00423c7d
add esp, 4
xor eax, eax
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], ax
jmp 0x411ac8
cmp word [ebx], 0
jne 0x411aa4
xor ecx, ecx
jmp 0x411abf
mov ecx, ebx
lea edx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x411ab0
sub ecx, edx
sar ecx, 1
push ecx
push ebx
mov ecx, esi
call fcn.00403620
mov eax, dword [ebp - 0x38]
mov dword [edi], eax
mov byte [ebp - 0x2d], 1
test ebx, ebx
je 0x411ade
push ebx
call fcn.00424883
add esp, 4
push dword [ebp - 0x3c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, byte [ebp - 0x2d]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00423c82
mov esp, ebp
pop ebp
ret 0x14