Function at 0x1003b910
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1480
call fcn.101f99e0
mov eax, dword [0x102519c8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov bl, byte [ebp + 8]
mov dword [ebp - 0x145c], eax
mov eax, dword [ebp + 0x14]
push esi
mov dword [ebp - 0x1460], eax
mov eax, dword [ebp + 0x18]
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x1480], eax
mov eax, dword [ebp + 0x1c]
push 0x208
mov dword [ebp - 0x1474], eax
lea eax, [ebp - 0x234]
push 0
push eax
mov byte [ebp - 0x1470], bl
mov dword [ebp - 0x1468], edi
call sub.msvcrt.dll_memset
push 0x1000
lea eax, [ebp - 0x143c]
push 0
push eax
call sub.msvcrt.dll_memset
movzx ebx, bl
add esp, 0x18
xor ebx, 1
shl ebx, 8
add ebx, 0x20119
mov dword [ebp - 0x1478], ebx
call fcn.10003180
mov esi, dword [eax + 0x154]
test esi, esi
je 0x1003b9b4
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x31
call fcn.10003680
add esp, 4
test eax, eax
je 0x1003b9d7
lea ecx, [ebp - 0x1464]
push ecx
push ebx
push 0
push edi
push dword [ebp - 0x145c]
call eax
jmp 0x1003b9ee
lea eax, [ebp - 0x1464]
push eax
push ebx
push 0
push edi
push dword [ebp - 0x145c]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, eax
test esi, esi
je 0x1003b9fb
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor al, al
test edi, edi
jne 0x1003bc67
mov byte [ebp - 0x1455], al
xor ebx, ebx
lea ecx, [ecx]
push 0x208
lea eax, [ebp - 0x43c]
push 0
push eax
call sub.msvcrt.dll_memset
mov edi, dword [ebp - 0x1464]
add esp, 0xc
call fcn.10003180
mov esi, dword [eax + 0x154]
test esi, esi
je 0x1003ba42
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x3b
call fcn.10003680
add esp, 4
push 0x104
test eax, eax
je 0x1003ba62
lea ecx, [ebp - 0x43c]
push ecx
push ebx
push edi
call eax
jmp 0x1003ba71
lea eax, [ebp - 0x43c]
push eax
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
mov edi, eax
test esi, esi
je 0x1003ba7e
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test edi, edi
je 0x1003baaf
cmp edi, 0x103
jne 0x1003bc21
push dword [ebp - 0x1468]
lea eax, [ebp - 0x234]
push 0x102029dc
push 0x104
push eax
call fcn.1000aa70
add esp, 0x10
jmp 0x1003bad5
lea eax, [ebp - 0x43c]
push eax
push dword [ebp - 0x1468]
lea eax, [ebp - 0x234]
push 0x102040c0
push 0x104
push eax
call fcn.1000aa70
add esp, 0x14
push 0x1000
lea eax, [ebp - 0x143c]
mov dword [ebp - 0x146c], 1
push 0
push eax
mov dword [ebp - 0x147c], 0x1000
call sub.msvcrt.dll_memset
mov esi, dword [ebp - 0x145c]
lea eax, [ebp - 0x147c]
add esp, 0xc
push dword [ebp - 0x1478]
push eax
lea eax, [ebp - 0x143c]
push eax
lea eax, [ebp - 0x146c]
push eax
push dword [ebp - 0x1460]
lea eax, [ebp - 0x234]
push eax
push esi
call fcn.100585c0
test eax, eax
jne 0x1003bc17
mov eax, dword [ebp - 0x146c]
cmp eax, 1
je 0x1003bb4b
cmp eax, 2
jne 0x1003bbaa
mov cl, byte [ebp + 0x20]
cmp cl, 1
jne 0x1003bbad
mov eax, dword [ebp - 0x1480]
test eax, eax
je 0x1003bc17
push eax
lea eax, [ebp - 0x143c]
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
jne 0x1003bc17
lea eax, [ebp - 0x143c]
mov byte [ebp - 0x1455], 1
push eax
push dword [ebp - 0x1460]
lea eax, [ebp - 0x234]
push eax
push esi
push dword [ebp - 0x1470]
lea eax, [ebp - 0x1454]
push eax
call fcn.10040bd0
add esp, 0x18
jmp 0x1003bc00
mov cl, byte [ebp + 0x20]
cmp eax, 4
jne 0x1003bc17
test cl, cl
jne 0x1003bc17
mov eax, dword [ebp + 0x24]
cmp eax, dword [ebp - 0x143c]
je 0x1003bc17
push eax
push 0x102054a8
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x1455], 1
push 0x14
push eax
call fcn.1000aa70
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 0x1460]
lea eax, [ebp - 0x234]
push eax
push esi
push dword [ebp - 0x1470]
lea eax, [ebp - 0x1454]
push eax
call fcn.10040bd0
add esp, 0x28
mov ecx, dword [ebp - 0x1474]
push eax
call fcn.10051f40
lea ecx, [ebp - 0x1454]
call fcn.10005250
test edi, edi
jne 0x1003bc21
inc ebx
jmp 0x1003ba10
mov edi, dword [ebp - 0x1464]
call fcn.10003180
mov esi, dword [eax + 0x154]
test esi, esi
je 0x1003bc3d
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x44
call fcn.10003680
add esp, 4
push edi
test eax, eax
je 0x1003bc50
call eax
jmp 0x1003bc56
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x1003bc61
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, byte [ebp - 0x1455]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.101f99c6
mov esp, ebp
pop ebp
ret