Function at 0x10055040
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100d5fc6
mov eax, dword fs:[0]
push eax
sub esp, 0x364
mov eax, dword [0x10111404]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor ecx, ecx
mov dword [ebp - 0x36c], eax
mov dword [ebp - 0x370], 0
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 7
mov word [ebp - 0x248], cx
mov dword [ebp - 4], ecx
mov dword [ebp - 0x220], ecx
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], cx
cmp dword [eax + 0x44], 8
lea edi, [eax + 0x30]
mov byte [ebp - 4], 1
mov dword [ebp - 0x364], edi
jb 0x100550d2
mov eax, dword [edi]
mov dword [ebp - 0x364], eax
mov esi, dword [edi + 0x10]
test esi, esi
je 0x10055152
push 0x100
lea eax, [ebp - 0x360]
push 0
push eax
call fcn.100a5d20
mov edx, 0x100
add esp, 0xc
mov ecx, 0x100dff00
mov dword [ebp - 0x368], edx
nop
movzx eax, word [ecx]
cmp ax, dx
jae 0x100551ed
movzx eax, al
add ecx, 2
mov byte [ebp + eax - 0x360], 1
cmp ecx, 0x100dff02
jne 0x10055100
mov edx, dword [ebp - 0x364]
lea ecx, [edx + esi*2]
mov esi, edx
cmp edx, ecx
jae 0x10055152
movzx eax, word [esi]
cmp ax, word [ebp - 0x368]
jae 0x1005514b
cmp byte [ebp + eax - 0x360], 0
jne 0x100551e4
add esi, 2
cmp esi, ecx
jb 0x10055131
or esi, 0xffffffff
cmp esi, 0xffffffff
je 0x100552cd
xor eax, eax
mov dword [ebp - 0x250], 0
cmp dword [edi + 0x10], esi
mov ecx, esi
mov word [ebp - 0x260], ax
mov eax, edi
cmovb ecx, dword [edi + 0x10]
cmp dword [edi + 0x14], 8
mov dword [ebp - 0x24c], 7
jb 0x1005518e
mov eax, dword [edi]
push ecx
push eax
lea ecx, [ebp - 0x260]
call fcn.10011730
movups xmm0, xmmword [ebp - 0x260]
xor eax, eax
inc esi
mov word [ebp - 0x260], ax
mov eax, dword [edi + 0x10]
movups xmmword [ebp - 0x248], xmm0
movq xmm0, qword [ebp - 0x250]
movq qword [ebp - 0x238], xmm0
mov dword [ebp - 0x250], 0
mov dword [ebp - 0x24c], 7
cmp eax, esi
jb 0x100554f4
jmp 0x1005524a
sub esi, edx
sar esi, 1
jmp 0x10055155
mov eax, dword [ebp - 0x364]
lea ecx, [eax + esi*2]
mov esi, eax
mov dword [ebp - 0x368], ecx
cmp eax, ecx
jae 0x10055152
nop word [eax + eax]
movzx edx, word [esi]
mov ecx, 1
mov eax, 0x100dff00
nop dword [eax]
cmp word [eax], dx
je 0x1005523d
add eax, 2
sub ecx, 1
jne 0x10055220
add esi, 2
cmp esi, dword [ebp - 0x368]
jb 0x10055210
jmp 0x10055152
sub esi, dword [ebp - 0x364]
sar esi, 1
jmp 0x10055155
sub eax, esi
or ecx, 0xffffffff
cmp eax, 0xffffffff
cmovb ecx, eax
cmp dword [edi + 0x14], 8
jb 0x1005525d
mov edi, dword [edi]
push ecx
lea eax, [edi + esi*2]
push eax
lea ecx, [ebp - 0x260]
call fcn.10011730
mov edx, dword [ebp - 0x21c]
cmp edx, 8
jb 0x100552ad
mov ecx, dword [ebp - 0x230]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x100552a3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100554f9
push edx
push ecx
call fcn.1007f042
add esp, 8
movups xmm0, xmmword [ebp - 0x260]
movups xmmword [ebp - 0x230], xmm0
movq xmm0, qword [ebp - 0x250]
movq qword [ebp - 0x220], xmm0
jmp 0x100552df
push 0x12
push str.HKEY_LOCAL_MACHINE
lea ecx, [ebp - 0x248]
call fcn.10011730
push str.HKEY_CLASSES_ROOT
lea ecx, [ebp - 0x248]
mov esi, 0x80000002
call fcn.10055f50
test al, al
je 0x100552ff
mov esi, 0x80000000
jmp 0x1005534f
push str.HKEY_CURRENT_USER
lea ecx, [ebp - 0x248]
call fcn.10055f50
test al, al
je 0x1005531a
mov esi, 0x80000001
jmp 0x1005534f
push str.HKEY_USERS
lea ecx, [ebp - 0x248]
call fcn.10055f50
test al, al
je 0x10055335
mov esi, 0x80000003
jmp 0x1005534f
push str.HKEY_CURRENT_CONFIG
lea ecx, [ebp - 0x248]
call fcn.10055f50
test al, al
mov ecx, 0x80000005
cmovne esi, ecx
cmp dword [ebp - 0x21c], 8
lea ecx, [ebp - 0x364]
push ecx
push 0x20219
lea eax, [ebp - 0x230]
mov dword [ebp - 0x364], 0
cmovae eax, dword [ebp - 0x230]
push 0
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10055401
mov eax, dword [ebp - 0x36c]
mov esi, dword [ebp - 0x364]
add eax, 0x48
cmp dword [eax + 0x14], 8
jb 0x1005539e
mov eax, dword [eax]
lea ecx, [ebp - 0x368]
mov dword [ebp - 0x368], 0x208
push ecx
lea ecx, [ebp - 0x218]
push ecx
lea ecx, [ebp - 0x36c]
push ecx
push 0
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x100553f6
mov eax, dword [ebp - 0x36c]
cmp eax, 1
je 0x100553db
cmp eax, 2
jne 0x100553f6
mov eax, dword [ebp - 0x368]
test eax, eax
je 0x10055438
test al, 1
jne 0x100553f6
shr eax, 1
cmp word [ebp + eax*2 - 0x21a], 0
je 0x10055441
test esi, esi
je 0x10055401
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x230]
call fcn.10008cf0
lea ecx, [ebp - 0x248]
call fcn.10008cf0
mov eax, dword [ebp - 0x370]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1007f3c1
mov esp, ebp
pop ebp
ret
xor eax, eax
mov word [ebp - 0x218], ax
mov dword [ebp - 0x370], 1
test esi, esi
je 0x10055456
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0x21c]
cmp edx, 8
jb 0x10055492
mov ecx, dword [ebp - 0x230]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10055488
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100554fe
push edx
push ecx
call fcn.1007f042
add esp, 8
mov edx, dword [ebp - 0x234]
xor eax, eax
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
cmp edx, 8
jb 0x10055417
mov ecx, dword [ebp - 0x248]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x100554e5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10055503
push edx
push ecx
call fcn.1007f042
add esp, 8
jmp 0x10055417
call fcn.10011380
call fcn.100a9b45
call fcn.100a9b45
call fcn.100a9b45
int3