Function at 0x1003b390
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1484
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 - 0x1470], eax
mov eax, dword [ebp + 0x14]
push esi
mov dword [ebp - 0x1468], eax
mov eax, dword [ebp + 0x18]
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x1484], eax
mov eax, dword [ebp + 0x1c]
push 0x208
mov dword [ebp - 0x1464], eax
lea eax, [ebp - 0x234]
push 0
push eax
mov byte [ebp - 0x1460], bl
mov dword [ebp - 0x1474], 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
mov dword [ebp - 0x145c], 0
shl ebx, 8
add ebx, 0x20119
mov dword [ebp - 0x147c], ebx
call fcn.10003180
mov esi, dword [eax + 0x154]
test esi, esi
je 0x1003b43e
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x31
call fcn.10003680
add esp, 4
test eax, eax
je 0x1003b462
lea ecx, [ebp - 0x146c]
push ecx
push ebx
mov ebx, dword [ebp - 0x1470]
push 0
push edi
push ebx
call eax
jmp 0x1003b47a
lea eax, [ebp - 0x146c]
push eax
push ebx
mov ebx, dword [ebp - 0x1470]
push 0
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, eax
test esi, esi
je 0x1003b487
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor al, al
test edi, edi
jne 0x1003b72b
mov byte [ebp - 0x1455], al
jmp 0x1003b4a0
push 0x208
lea eax, [ebp - 0x43c]
push 0
push eax
call sub.msvcrt.dll_memset
mov edi, dword [ebp - 0x146c]
add esp, 0xc
call fcn.10003180
mov esi, dword [eax + 0x154]
test esi, esi
je 0x1003b4d2
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x3b
call fcn.10003680
add esp, 4
push 0x104
test eax, eax
je 0x1003b4f7
lea ecx, [ebp - 0x43c]
push ecx
push dword [ebp - 0x145c]
push edi
call eax
jmp 0x1003b50b
lea eax, [ebp - 0x43c]
push eax
push dword [ebp - 0x145c]
push edi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
mov edi, eax
test esi, esi
je 0x1003b518
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test edi, edi
je 0x1003b54a
cmp edi, 0x103
jne 0x1003b6e5
mov esi, dword [ebp - 0x1474]
lea eax, [ebp - 0x234]
push esi
push 0x102029dc
push 0x104
push eax
call fcn.1000aa70
add esp, 0x10
jmp 0x1003b571
mov esi, dword [ebp - 0x1474]
lea eax, [ebp - 0x43c]
push eax
push esi
push 0x102040c0
lea eax, [ebp - 0x234]
push 0x104
push eax
call fcn.1000aa70
add esp, 0x14
push 0x1000
lea eax, [ebp - 0x143c]
mov dword [ebp - 0x1478], 1
push 0
push eax
mov dword [ebp - 0x1480], 0x1000
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x1480]
push dword [ebp - 0x147c]
push eax
lea eax, [ebp - 0x143c]
push eax
lea eax, [ebp - 0x1478]
push eax
push dword [ebp - 0x1468]
lea eax, [ebp - 0x234]
push eax
push ebx
call fcn.100585c0
test eax, eax
jne 0x1003b687
mov eax, dword [ebp - 0x1478]
cmp eax, 1
je 0x1003b5e1
cmp eax, 2
jne 0x1003b648
mov cl, byte [ebp + 0x24]
cmp cl, 1
jne 0x1003b64b
mov eax, dword [ebp - 0x1484]
test eax, eax
je 0x1003b687
push eax
lea eax, [ebp - 0x143c]
push eax
push esi
call fcn.10036e70
add esp, 0xc
test al, al
je 0x1003b687
cmp byte [ebp + 0x20], 0
mov byte [ebp - 0x1455], 1
jne 0x1003b66b
lea eax, [ebp - 0x143c]
push eax
push dword [ebp - 0x1468]
lea eax, [ebp - 0x234]
push eax
push ebx
push dword [ebp - 0x1460]
lea eax, [ebp - 0x1454]
push eax
call fcn.10040bd0
add esp, 0x18
jmp 0x1003b6ce
mov cl, byte [ebp + 0x24]
cmp eax, 4
jne 0x1003b687
test cl, cl
jne 0x1003b687
mov eax, dword [ebp + 0x28]
cmp eax, dword [ebp - 0x143c]
jne 0x1003b687
mov byte [ebp - 0x1455], 1
cmp byte [ebp + 0x20], cl
je 0x1003b696
push dword [ebp - 0x1464]
lea eax, [ebp - 0x234]
push eax
push ebx
push dword [ebp - 0x1460]
call fcn.1003b1b0
add esp, 0x10
test edi, edi
jne 0x1003b6e5
inc dword [ebp - 0x145c]
jmp 0x1003b4a0
push eax
push 0x102054a8
lea eax, [ebp - 0x2c]
push 0x14
push eax
call fcn.1000aa70
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 0x1468]
lea eax, [ebp - 0x234]
push eax
push ebx
push dword [ebp - 0x1460]
lea eax, [ebp - 0x1454]
push eax
call fcn.10040bd0
add esp, 0x28
mov ecx, dword [ebp - 0x1464]
push eax
call fcn.10051f40
lea ecx, [ebp - 0x1454]
call fcn.10005250
mov edi, dword [ebp - 0x146c]
call fcn.10003180
mov esi, dword [eax + 0x154]
test esi, esi
je 0x1003b701
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x44
call fcn.10003680
add esp, 4
push edi
test eax, eax
je 0x1003b714
call eax
jmp 0x1003b71a
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x1003b725
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