Function at 0x100a57c0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x224
mov eax, dword [0x1013c014]
xor eax, esp
mov dword [esp + 0x220], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov dword [esp + 0x20], eax
mov esi, ecx
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0x14]
mov dword [esp + 0x1c], eax
mov eax, dword [esi + 0x20]
push edi
test al, 0x40
jne 0x100a5807
or eax, 0x1000
and eax, 0xffffbfff
lea ebx, [esi + 0x10]
lea edi, [esi + 0x38]
mov dword [esi + 0x20], eax
cmp edi, ebx
je 0x100a5829
push ebx
push edi
call dword [sym.imp.OLEAUT32.dll_VariantCopyInd]
test eax, eax
js 0x100a5a6c
mov eax, dword [esp + 0x18]
and dword [esi + 0x20], 0xffffdfff
cmp dword [eax], 0
je 0x100a5909
push dword [esi]
lea eax, [esp + 0x2c]
push str._s_State
push 0x100
push eax
call fcn.100a4830
add esp, 0x10
mov dword [esp + 0x10], 4
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x1c]
push eax
push 0
lea eax, [esp + 0x38]
push eax
mov eax, dword [esp + 0x2c]
push dword [eax]
mov eax, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
call eax
test eax, eax
jne 0x100a5909
cmp dword [esp + 0x14], 4
jne 0x100a5909
cmp dword [esp + 0xc], 2
ja 0x100a5909
push dword [esi]
mov ecx, esi
push dword [esp + 0x1c]
call fcn.100a53c0
test al, al
je 0x100a5909
mov eax, dword [esp + 0xc]
test eax, eax
jne 0x100a58d7
mov eax, dword [esi + 0x20]
and eax, 0xffffefff
or eax, 0x4000
mov dword [esi + 0x20], eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x220]
xor ecx, esp
call fcn.100d4906
mov esp, ebp
pop ebp
ret 0x10
cmp eax, 1
jne 0x100a58fa
or dword [esi + 0x20], 0x4000
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x220]
xor ecx, esp
call fcn.100d4906
mov esp, ebp
pop ebp
ret 0x10
push edi
mov ecx, ebx
call fcn.10049140
or dword [esi + 0x20], 0x2000
mov eax, dword [esp + 0x1c]
mov eax, dword [eax]
test eax, eax
je 0x100a599f
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], 4
push ecx
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x18]
push ecx
push 0
push dword [esi]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x100a594e
cmp dword [esp + 0x10], 4
jne 0x100a594e
cmp dword [esp + 0xc], 0xdefa
je 0x100a58dc
push dword [esi]
mov ecx, esi
push dword [esp + 0x20]
call fcn.100a53c0
test al, al
jne 0x100a58b0
push dword [esi]
lea eax, [esp + 0x2c]
push str._s_Default
push 0x100
push eax
call fcn.100a4830
add esp, 0x10
lea eax, [esp + 0x28]
mov ecx, esi
push eax
push dword [esp + 0x20]
call fcn.100a53c0
test al, al
je 0x100a599f
push edi
mov ecx, ebx
call fcn.10049140
or dword [esi + 0x20], 0x2000
mov eax, dword [esp + 0x20]
cmp dword [eax], 0
je 0x100a5a37
push dword [esi]
lea eax, [esp + 0x2c]
push str._s_State
push 0x100
push eax
call fcn.100a4830
add esp, 0x10
mov dword [esp + 0x14], 4
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x18]
push eax
push 0
lea eax, [esp + 0x38]
push eax
mov eax, dword [esp + 0x34]
push dword [eax]
mov eax, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
call eax
test eax, eax
jne 0x100a5a37
cmp dword [esp + 0x10], 4
jne 0x100a5a37
cmp dword [esp + 0xc], 2
ja 0x100a5a37
push dword [esi]
mov ecx, esi
push dword [esp + 0x24]
call fcn.100a53c0
test al, al
je 0x100a5a37
mov eax, dword [esp + 0xc]
test eax, eax
je 0x100a58b0
cmp eax, 1
je 0x100a58dc
push edi
mov ecx, ebx
call fcn.10049140
or dword [esi + 0x20], 0x2000
mov eax, dword [esp + 0x24]
cmp dword [eax], 0
je 0x100a5a55
push dword [esi]
mov ecx, esi
push eax
call fcn.100a53c0
test al, al
je 0x100a5a55
and dword [esi + 0x20], 0xffffefff
mov ecx, dword [esp + 0x22c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.100d4906
mov esp, ebp
pop ebp
ret 0x10
mov ecx, 0xa
mov dword [edi + 8], eax
push eax
mov word [edi], cx
call fcn.10013970
int3