Function at 0x10041100
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x48
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x44], eax
mov eax, dword [ebp + 0xc]
xor edx, edx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 0x10]
xor ecx, ecx
mov dword [esp + 0x14], ecx
mov ecx, edi
mov dword [esp + 0xc], eax
mov dword [esp + 0x18], edx
test esi, esi
je 0x10041143
push esi
call sym.HncFoundation.dll_protected:_struct_HKEY______thiscall_CHncRegistry::GetSectionKey_unsigned_short_int_const__
jmp 0x10041148
call sym.HncFoundation.dll_protected:_struct_HKEY______thiscall_CHncRegistry::GetRegistryKey_void_
mov dword [esp + 0x10], eax
test eax, eax
jne 0x10041166
or eax, 0xffffffff
pop edi
pop esi
mov ecx, dword [esp + 0x44]
xor ecx, esp
call fcn.100944ae
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [esp + 0xc]
test esi, esi
je 0x10041176
push esi
call sym.HncFoundation.dll_protected:_struct_HKEY______thiscall_CHncRegistry::GetSectionKey_unsigned_short_int_const__
jmp 0x1004117b
call sym.HncFoundation.dll_protected:_struct_HKEY______thiscall_CHncRegistry::GetRegistryKey_void_
mov dword [esp + 0xc], eax
test eax, eax
jne 0x1004118b
lea esi, [eax + 1]
jmp 0x100412e2
xorps xmm0, xmm0
lea eax, [esp + 0x38]
movdqa xmmword [esp + 0x30], xmm0
mov dword [esp + 0x34], eax
lea eax, [esp + 0x20]
push eax
push 0
lea eax, [esp + 0x34]
mov dword [esp + 0x38], 0
push eax
push 0
push dword [esp + 0x2c]
push dword [esp + 0x24]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea ecx, [esp + 0x30]
mov esi, eax
call fcn.10010900
test esi, esi
je 0x100411d7
or esi, 0xffffffff
jmp 0x100412e2
push dword [esp + 0x20]
call fcn.1009427d
mov esi, dword [esp + 0x20]
lea ecx, [esp + 0x24]
add esp, 4
mov dword [esp + 0x14], eax
push dword [edi + 0x420]
push ecx
push eax
lea eax, [esp + 0x38]
push eax
push 0
push esi
push dword [esp + 0x28]
call sym.HncFoundation.dll_HncRegQueryValueEx
test eax, eax
je 0x10041214
or esi, 0xffffffff
jmp 0x100412e2
push dword [edi + 0x420]
lea eax, [esp + 0x28]
push eax
push 0
lea eax, [esp + 0x34]
push eax
push 0
push esi
mov esi, dword [esp + 0x24]
push esi
call sym.HncFoundation.dll_HncRegQueryValueEx
test eax, eax
je 0x10041241
mov esi, 1
jmp 0x100412e2
push dword [esp + 0x24]
call fcn.1009427d
add esp, 4
mov dword [esp + 0x18], eax
lea ecx, [esp + 0x20]
push dword [edi + 0x420]
push ecx
push eax
lea eax, [esp + 0x34]
push eax
push 0
push dword [esp + 0x30]
push esi
call sym.HncFoundation.dll_HncRegQueryValueEx
test eax, eax
je 0x10041279
mov esi, 1
jmp 0x100412e2
mov esi, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
cmp esi, eax
je 0x10041289
sub esi, eax
jmp 0x100412e2
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
sub esi, 4
jb 0x100412a7
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x100412ac
add ecx, 4
add edx, 4
sub esi, 4
jae 0x10041296
cmp esi, 0xfffffffc
je 0x100412e0
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x100412d9
cmp esi, 0xfffffffd
je 0x100412e0
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x100412d9
cmp esi, 0xfffffffe
je 0x100412e0
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x100412d9
cmp esi, 0xffffffff
je 0x100412e0
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
je 0x100412e0
sbb esi, esi
or esi, 1
jmp 0x100412e2
xor esi, esi
push dword [esp + 0x10]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call edi
mov eax, dword [esp + 0xc]
test eax, eax
je 0x100412f9
push eax
call edi
mov eax, dword [esp + 0x14]
mov edi, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete___void__]
test eax, eax
je 0x1004130d
push eax
call edi
add esp, 4
mov eax, dword [esp + 0x18]
test eax, eax
je 0x1004131b
push eax
call edi
add esp, 4
mov ecx, dword [esp + 0x4c]
mov eax, esi
pop edi
pop esi
xor ecx, esp
call fcn.100944ae
mov esp, ebp
pop ebp
ret 0xc