Function at 0x4111e0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5860d5
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x5fcfe4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x20], ecx
mov byte [ebp - 0x11], 0
call fcn.0041b1fd
mov edi, eax
test edi, edi
je 0x411529
mov eax, dword [edi]
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x597998]
mov ecx, edi
call esi
lea esi, [eax + 0x10]
mov dword [ebp - 0x1c], esi
mov dword [ebp - 4], 0
mov byte [ebp - 4], 1
call fcn.0041b1fd
mov ebx, eax
test ebx, ebx
je 0x411533
mov eax, dword [ebx]
mov edi, dword [eax + 0xc]
mov ecx, edi
call dword [0x597998]
mov ecx, ebx
call edi
add eax, 0x10
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x20]
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
mov eax, dword [eax + 0xc0]
push dword [eax - 0xc]
push eax
call fcn.0040a7b0
push 0
push 0x5dd330
lea ecx, [ebp - 0x18]
call fcn.0040a7b0
mov edi, dword [ebp - 0x18]
lea eax, [ebp - 0x24]
push eax
push 1
push 0
push edi
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4113e8
push 1
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x18]
call fcn.00417900
mov ecx, 0x5dd32c
mov eax, dword [eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4112f0
test dx, dx
je 0x4112e7
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4112f0
add eax, 4
add ecx, 4
test dx, dx
jne 0x4112c5
mov dword [ebp - 0x20], 0
jmp 0x4112f8
sbb ecx, ecx
or ecx, 1
mov dword [ebp - 0x20], ecx
mov ecx, dword [ebp - 0x28]
or ebx, 0xffffffff
add ecx, 0xfffffff0
mov eax, ebx
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x411327
lfence
mov ebx, dword [ecx]
push ecx
mov eax, dword [ebx]
mov edi, dword [eax + 4]
mov ecx, edi
call dword [0x597998]
mov ecx, ebx
call edi
or ebx, 0xffffffff
cmp dword [ebp - 0x20], 0
je 0x41133c
push 1
push 0x5dd32c
lea ecx, [ebp - 0x18]
call fcn.0040a7b0
mov edi, dword [ebp + 8]
test edi, edi
jne 0x411347
xor ecx, ecx
jmp 0x41135f
mov ecx, edi
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x411350
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0x18]
call fcn.0040a7b0
mov dword [ebp - 0x2c], 0x200
mov ecx, 1
mov eax, dword [esi - 8]
sub ecx, dword [esi - 4]
sub eax, 0x200
or eax, ecx
jge 0x411397
push 0x200
lea ecx, [ebp - 0x1c]
lfence
call fcn.0040b0e0
mov esi, dword [ebp - 0x1c]
lea eax, [ebp - 0x2c]
push eax
push esi
push 0
push 0
push edi
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [esi - 8]
mov edi, eax
push esi
call fcn.00566c42
add esp, 8
test eax, eax
js 0x411558
cmp eax, dword [esi - 8]
jg 0x411558
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
test edi, edi
jne 0x41153d
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [ebp - 0x18]
jmp 0x4113eb
or ebx, 0xffffffff
mov edx, dword [ebp + 0xc]
lea eax, [esi - 0x10]
mov ecx, dword [edx]
sub ecx, 0x10
mov dword [ebp - 0x20], ecx
cmp eax, ecx
je 0x411468
cmp dword [ecx + 0xc], 0
lea edx, [ecx + 0xc]
mov dword [ebp - 0x28], edx
mov edx, dword [ebp + 0xc]
jl 0x41145d
mov eax, dword [eax]
cmp eax, dword [ecx]
jne 0x41145d
lea eax, [esi - 0x10]
push eax
call fcn.0040a8a0
mov dword [ebp - 0x34], eax
add esp, 4
mov eax, dword [ebp - 0x28]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x411450
mov ecx, dword [ebp - 0x20]
lfence
push ecx
mov eax, dword [ecx]
mov dword [ebp - 0x28], eax
mov eax, dword [eax]
mov ebx, dword [eax + 4]
mov ecx, ebx
call dword [0x597998]
mov ecx, dword [ebp - 0x28]
call ebx
or ebx, 0xffffffff
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x34]
add eax, 0x10
mov dword [ecx], eax
jmp 0x411468
push dword [esi - 0xc]
mov ecx, edx
push esi
call fcn.0040b2c0
mov cl, 1
add edi, 0xfffffff0
mov byte [ebp - 0x11], cl
mov eax, ebx
mov byte [ebp - 4], cl
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x4114e5
lfence
mov ebx, dword [edi]
push edi
mov eax, dword [ebx]
mov edi, dword [eax + 4]
mov ecx, edi
call dword [0x597998]
mov ecx, ebx
call edi
mov cl, byte [ebp - 0x11]
jmp 0x4114e2
or ebx, 0xffffffff
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x411513
lfence
mov edi, dword [esi]
push esi
mov edx, dword [edi]
mov esi, dword [edx + 4]
mov ecx, esi
call dword [0x597998]
mov ecx, edi
call esi
mov cl, byte [ebp - 0x11]
mov al, cl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push 0x80004005
call fcn.0040b400
push 0x80004005
call fcn.0040b400
push str.Error
lea ecx, [ebp - 0x30]
call fcn.00419860
push 0x5f8070
lea eax, [ebp - 0x30]
push eax
call fcn.005603aa
push 0x80070057
call fcn.0040b400
int3