Function at 0x1000a00c
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x1ac
mov eax, dword [0x100436e0]
xor eax, esp
mov dword [esp + 0x1a8], eax
cmp dword [0x10043820], 0
mov edx, dword [esp + 0x1b0]
mov ecx, dword [esp + 0x1b8]
mov eax, dword [esp + 0x1bc]
push ebx
push ebp
mov ebp, dword [esp + 0x1c8]
push esi
mov esi, dword [esp + 0x1c0]
push edi
mov edi, dword [esp + 0x1d4]
mov dword [esp + 0x18], edx
mov dword [esp + 0x34], ecx
mov dword [esp + 0x14], eax
je 0x1000a284
mov ecx, esi
lea edx, [ecx + 2]
xor ebx, ebx
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x1000a06e
sub ecx, edx
sar ecx, 1
lea eax, [ecx + 1]
cmp eax, 1
jbe 0x1000a0a4
push ebx
push ebx
push ebx
push ebx
push 0xffffffffffffffff
push esi
push ebx
push ebx
call dword [sym.imp.kernel32.dll_WideCharToMultiByte]
mov ebx, eax
test ebx, ebx
jne 0x1000a0a8
mov eax, 0x8007000e
jmp 0x1000a290
mov ebx, dword [esp + 0x14]
push 1
push 0
lea eax, [esp + 0xd0]
push eax
push ebx
push 0
push 0x78
lea ecx, [esp + 0x5c]
call fcn.1002090c
mov eax, dword [esp + 0x48]
mov dword [esp + 0x20], eax
test eax, eax
jne 0x1000a0d9
lea ecx, [esp + 0x44]
call fcn.100089b8
jmp 0x1000a09a
push 0
push 0
push ebx
push eax
push 0xffffffffffffffff
push esi
xor ebx, ebx
push ebx
push ebx
call dword [sym.imp.kernel32.dll_WideCharToMultiByte]
test eax, eax
je 0x1000a186
test edi, edi
je 0x1000a112
test ebp, ebp
je 0x1000a104
mov eax, dword [edi]
mov dword [esp + 0x10], eax
jmp 0x1000a108
mov dword [esp + 0x10], ebx
lea eax, [esp + 0x10]
mov dword [esp + 0x24], eax
jmp 0x1000a118
mov eax, ebx
mov dword [esp + 0x24], ebx
push eax
push ebp
lea eax, [esp + 0x24]
push eax
push dword [esp + 0x40]
push dword [esp + 0x30]
push dword [esp + 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
test esi, esi
jne 0x1000a277
mov ecx, dword [esp + 0x1c]
test ecx, ecx
je 0x1000a261
cmp ecx, 2
jbe 0x1000a155
cmp ecx, 7
jne 0x1000a261
test edi, edi
je 0x1000a26b
push 1
push ebx
lea eax, [esp + 0x58]
push eax
push dword [esp + 0x1c]
lea ecx, [esp + 0x38]
push ebx
push 0x78
call fcn.1002090c
mov ebx, dword [esp + 0x2c]
test ebx, ebx
jne 0x1000a190
lea ecx, [esp + 0x28]
call fcn.100089b8
mov esi, 0x8007000e
jmp 0x1000a277
test ebp, ebp
je 0x1000a1d2
push dword [esp + 0x10]
push ebp
push ebx
call sub.msvcr100.dll_memcpy
mov eax, dword [edi]
add esp, 0xc
shr eax, 1
push eax
push ebp
push 0xffffffffffffffff
push ebx
xor ebx, ebx
push ebx
push ebx
call dword [sym.imp.kernel32.dll_MultiByteToWideChar]
mov esi, eax
test esi, esi
je 0x1000a17d
lea eax, [esi + esi]
lea ecx, [esp + 0x28]
mov dword [edi], eax
call fcn.100089b8
mov ecx, dword [esp + 0x1c]
jmp 0x1000a26b
mov ebp, dword [esp + 0x24]
push ebp
push ebx
push 0
push 0
push dword [esp + 0x30]
push dword [esp + 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
test esi, esi
je 0x1000a1fb
lea ecx, [esp + 0x28]
call fcn.100089b8
jmp 0x1000a277
mov eax, dword [ebp]
test eax, eax
je 0x1000a207
mov byte [eax + ebx - 1], 0
push 1
push 0
lea eax, [esp + 0x148]
push eax
mov eax, dword [esp + 0x1c]
add eax, eax
push eax
push 0
push 0x78
lea ecx, [esp + 0x50]
call fcn.1002090c
cmp dword [esp + 0x3c], 0
jne 0x1000a23c
lea ecx, [esp + 0x38]
call fcn.100089b8
jmp 0x1000a17d
push dword [esp + 0x10]
push dword [esp + 0x40]
push 0xffffffffffffffff
push ebx
xor ebx, ebx
push ebx
push ebx
call dword [sym.imp.kernel32.dll_MultiByteToWideChar]
lea ecx, [esp + 0x38]
mov esi, eax
call fcn.100089b8
jmp 0x1000a1b7
test edi, edi
je 0x1000a26b
mov eax, dword [esp + 0x10]
mov dword [edi], eax
mov eax, dword [esp + 0x14]
test eax, eax
je 0x1000a275
mov dword [eax], ecx
mov esi, ebx
lea ecx, [esp + 0x44]
call fcn.100089b8
mov eax, esi
jmp 0x1000a290
push edi
push ebp
push eax
push ecx
push esi
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [esp + 0x1b8]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.10029dae
add esp, 0x1ac
ret 0x18