Function at 0x101fc438
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x1ac
mov eax, dword [0x1023904c]
xor eax, esp
mov dword [esp + 0x1a8], eax
cmp dword [0x1023a234], 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 0x101fc6b0
mov ecx, esi
lea edx, [ecx + 2]
xor ebx, ebx
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x101fc49a
sub ecx, edx
sar ecx, 1
lea eax, [ecx + 1]
cmp eax, 1
jbe 0x101fc4d0
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 0x101fc4d4
mov eax, 0x8007000e
jmp 0x101fc6bc
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.1015692e
mov eax, dword [esp + 0x48]
mov dword [esp + 0x20], eax
test eax, eax
jne 0x101fc505
lea ecx, [esp + 0x44]
call fcn.1000cead
jmp 0x101fc4c6
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 0x101fc5b2
test edi, edi
je 0x101fc53e
test ebp, ebp
je 0x101fc530
mov eax, dword [edi]
mov dword [esp + 0x10], eax
jmp 0x101fc534
mov dword [esp + 0x10], ebx
lea eax, [esp + 0x10]
mov dword [esp + 0x24], eax
jmp 0x101fc544
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 0x101fc6a3
mov ecx, dword [esp + 0x1c]
test ecx, ecx
je 0x101fc68d
cmp ecx, 2
jbe 0x101fc581
cmp ecx, 7
jne 0x101fc68d
test edi, edi
je 0x101fc697
push 1
push ebx
lea eax, [esp + 0x58]
push eax
push dword [esp + 0x1c]
lea ecx, [esp + 0x38]
push ebx
push 0x78
call fcn.1015692e
mov ebx, dword [esp + 0x2c]
test ebx, ebx
jne 0x101fc5bc
lea ecx, [esp + 0x28]
call fcn.1000cead
mov esi, 0x8007000e
jmp 0x101fc6a3
test ebp, ebp
je 0x101fc5fe
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 0x101fc5a9
lea eax, [esi + esi]
lea ecx, [esp + 0x28]
mov dword [edi], eax
call fcn.1000cead
mov ecx, dword [esp + 0x1c]
jmp 0x101fc697
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 0x101fc627
lea ecx, [esp + 0x28]
call fcn.1000cead
jmp 0x101fc6a3
mov eax, dword [ebp]
test eax, eax
je 0x101fc633
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.1015692e
cmp dword [esp + 0x3c], 0
jne 0x101fc668
lea ecx, [esp + 0x38]
call fcn.1000cead
jmp 0x101fc5a9
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.1000cead
jmp 0x101fc5e3
test edi, edi
je 0x101fc697
mov eax, dword [esp + 0x10]
mov dword [edi], eax
mov eax, dword [esp + 0x14]
test eax, eax
je 0x101fc6a1
mov dword [eax], ecx
mov esi, ebx
lea ecx, [esp + 0x44]
call fcn.1000cead
mov eax, esi
jmp 0x101fc6bc
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.10001e57
add esp, 0x1ac
ret 0x18