Function at 0x411910
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4654c9
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push esi
push edi
mov eax, dword [0x49806c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 4], 0
mov dword [ebp - 0x1c], 0
call fcn.00401640
mov ecx, eax
test ecx, ecx
jne 0x411960
push 0x80004005
call fcn.004012a0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebx], eax
push 0x47acb4
mov ecx, ebx
mov dword [ebp - 4], 1
call fcn.00407350
test al, al
jne 0x41198f
push 0
push 0x47acb4
mov ecx, ebx
call fcn.00407a80
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
push ecx
mov edx, 0x47acb8
mov dword [ebp - 4], 2
lea ecx, [ebp - 0x18]
xor esi, esi
call fcn.0040fa80
add esp, 4
lea ecx, [ebp - 0x34]
push 0x20219
push dword [eax]
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.0040e910
mov edx, dword [ebp - 0x18]
test eax, eax
sete byte [ebp - 0xd]
or edi, 0xffffffff
add edx, 0xfffffff0
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4119fc
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [ebp - 0xd], 0
je 0x411b17
push ecx
mov edx, 0x47ad14
lea ecx, [ebp - 0x24]
call fcn.0040fa80
add esp, 4
mov dword [ebp - 0x18], esi
lea ecx, [ebp - 0x18]
xor esi, esi
mov dword [ebp - 0x14], esi
push ecx
push esi
lea ecx, [ebp - 0x20]
push ecx
push esi
push dword [eax]
push dword [ebp - 0x34]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test edi, edi
jne 0x411a56
mov eax, dword [ebp - 0x20]
cmp eax, 1
je 0x411a4c
cmp eax, 2
je 0x411a4c
lea edi, [esi + 0xd]
jmp 0x411a56
mov esi, dword [ebp - 0x18]
shr esi, 1
xor edi, edi
mov dword [ebp - 0x14], esi
mov edx, dword [ebp - 0x24]
or eax, 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x411a71
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test edi, edi
jne 0x411b14
lea eax, [esi*2 + 2]
push eax
mov dword [ebp - 0x24], eax
call fcn.00448d70
mov edi, eax
add esp, 4
test edi, edi
je 0x411b14
push dword [ebp - 0x24]
push 0
push edi
call fcn.00441bb0
add esp, 8
lea ecx, [ebp - 0x24]
mov edx, 0x47ad38
call fcn.0040fa80
add esp, 4
lea ecx, [ebp - 0x14]
push ecx
push edi
push dword [eax]
lea ecx, [ebp - 0x34]
call fcn.0040e9c0
mov edx, dword [ebp - 0x24]
test eax, eax
sete byte [ebp - 0xd]
add edx, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x411ae4
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [ebp - 0xd], 0
je 0x411b08
mov ecx, edi
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x411af0
sub ecx, edx
sar ecx, 1
push ecx
push edi
mov ecx, ebx
call fcn.00407a80
push edi
call fcn.00448d6b
mov esi, dword [ebp - 0x14]
add esp, 4
or edi, 0xffffffff
mov eax, dword [ebx]
cmp dword [eax - 0xc], 0
jne 0x411c77
push ecx
mov edx, str.GwcOHB8JGg0UBSErOic7Jy48FAs6MTg8Jy86KTggMQ
lea ecx, [ebp - 0x24]
call fcn.0040fa80
add esp, 4
lea ecx, [ebp - 0x34]
push 0x20119
push dword [eax]
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.0040e910
mov edx, dword [ebp - 0x24]
test eax, eax
mov eax, edi
sete byte [ebp - 0xd]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x411b68
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [ebp - 0xd], 0
je 0x411c77
push ecx
mov edx, 0x47ad5c
lea ecx, [ebp - 0x20]
call fcn.0040fa80
add esp, 4
mov ecx, dword [eax]
lea eax, [esi + esi]
mov dword [ebp - 0x18], eax
xor esi, esi
lea eax, [ebp - 0x18]
mov dword [ebp - 0x14], esi
push eax
push esi
lea eax, [ebp - 0x24]
push eax
push esi
push ecx
push dword [ebp - 0x34]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test edi, edi
jne 0x411bc6
mov eax, dword [ebp - 0x24]
cmp eax, 1
je 0x411bbc
cmp eax, 2
je 0x411bbc
lea edi, [esi + 0xd]
jmp 0x411bc6
mov esi, dword [ebp - 0x18]
shr esi, 1
xor edi, edi
mov dword [ebp - 0x14], esi
mov edx, dword [ebp - 0x20]
or eax, 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x411be1
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test edi, edi
jne 0x411c77
lea edi, [esi*2 + 2]
push edi
call fcn.00448d70
mov esi, eax
add esp, 4
test esi, esi
je 0x411c77
push edi
push 0
push esi
call fcn.00441bb0
add esp, 8
lea ecx, [ebp - 0x24]
mov edx, str.BSkrICEmLQ89ISw
call fcn.0040fa80
add esp, 4
lea ecx, [ebp - 0x14]
push ecx
push esi
push dword [eax]
lea ecx, [ebp - 0x34]
call fcn.0040e9c0
mov edx, dword [ebp - 0x24]
test eax, eax
sete byte [ebp - 0xd]
add edx, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x411c4b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [ebp - 0xd], 0
je 0x411c6e
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x411c56
sub ecx, edx
sar ecx, 1
push ecx
push esi
mov ecx, ebx
call fcn.00407a80
push esi
call fcn.00448d6b
add esp, 4
mov eax, dword [ebx]
mov esi, dword [eax - 0xc]
mov dword [ebp - 0x20], esi
test esi, esi
je 0x411d24
jns 0x411c93
push 0x80070057
call fcn.004012a0
mov ecx, 1
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, esi
or ecx, eax
jge 0x411cac
push esi
mov ecx, ebx
call fcn.00407a20
mov edx, dword [ebx]
mov ecx, edx
lea eax, [edx + esi*2]
mov dword [ebp - 0x14], eax
cmp edx, eax
jae 0x411cfa
mov esi, eax
nop dword [eax]
cmp word [edx], 0x2d
lea eax, [edx + 2]
mov dword [ebp - 0x24], eax
je 0x411cf1
lea edi, [ecx + 2]
xor esi, esi
cmp ecx, edi
je 0x411cee
cmp esi, 1
jae 0x411ceb
mov ax, word [edx]
inc esi
mov word [ecx], ax
add edx, 2
add ecx, 2
cmp ecx, edi
jne 0x411cd5
mov eax, dword [ebp - 0x24]
mov esi, dword [ebp - 0x14]
mov edx, eax
cmp eax, esi
jb 0x411cc0
mov esi, dword [ebp - 0x20]
sub edx, ecx
xor eax, eax
sar edx, 1
sub esi, edx
mov word [ecx], ax
js 0x411c89
mov eax, dword [ebx]
cmp esi, dword [eax - 8]
jg 0x411c89
mov dword [eax - 0xc], esi
xor ecx, ecx
mov eax, dword [ebx]
mov word [eax + esi*2], cx
mov ecx, ebx
call fcn.00413120
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x411d32
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret