Function at 0x1003e9f0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1438
call fcn.101f99e0
mov eax, dword [0x102519c8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x1438], eax
mov eax, dword [ebp + 0x10]
push esi
mov dword [ebp - 0x141c], eax
mov eax, dword [ebp + 0x18]
push edi
mov edi, dword [ebp + 0x14]
mov dword [ebp - 0x142c], eax
mov eax, dword [ebp + 0x1c]
push 0x208
mov dword [ebp - 0x1434], eax
lea eax, [ebp - 0x20c]
push 0
push eax
mov dword [ebp - 0x1424], edi
call sub.msvcrt.dll_memset
push 0x1000
lea eax, [ebp - 0x1414]
push 0
push eax
call sub.msvcrt.dll_memset
movzx eax, byte [ebp + 0xc]
add esp, 0x18
xor eax, 1
xor ebx, ebx
shl eax, 8
add eax, 0xf013f
mov dword [ebp - 0x1418], eax
call fcn.10003180
mov esi, dword [eax + 0x154]
test esi, esi
je 0x1003ea8d
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x31
call fcn.10003680
add esp, 4
test eax, eax
je 0x1003eab5
lea ecx, [ebp - 0x1420]
push ecx
push dword [ebp - 0x1418]
push 0
push edi
push dword [ebp - 0x141c]
call eax
jmp 0x1003ead1
lea eax, [ebp - 0x1420]
push eax
push dword [ebp - 0x1418]
push 0
push edi
push dword [ebp - 0x141c]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, eax
test esi, esi
je 0x1003eade
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test edi, edi
jne 0x1003eccb
jmp 0x1003eaf0
push 0x208
lea eax, [ebp - 0x414]
push 0
push eax
call sub.msvcrt.dll_memset
mov edi, dword [ebp - 0x1420]
add esp, 0xc
call fcn.10003180
mov esi, dword [eax + 0x154]
test esi, esi
je 0x1003eb22
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x3b
call fcn.10003680
add esp, 4
push 0x104
test eax, eax
je 0x1003eb42
lea ecx, [ebp - 0x414]
push ecx
push ebx
push edi
call eax
jmp 0x1003eb51
lea eax, [ebp - 0x414]
push eax
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
mov edi, eax
test esi, esi
je 0x1003eb5e
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test edi, edi
je 0x1003eb8f
cmp edi, 0x103
jne 0x1003ec8b
push dword [ebp - 0x1424]
lea eax, [ebp - 0x20c]
push 0x102029dc
push 0x104
push eax
call fcn.1000aa70
add esp, 0x10
jmp 0x1003ebb5
lea eax, [ebp - 0x414]
push eax
push dword [ebp - 0x1424]
lea eax, [ebp - 0x20c]
push 0x102040c0
push 0x104
push eax
call fcn.1000aa70
add esp, 0x14
push 0x1000
lea eax, [ebp - 0x1414]
mov dword [ebp - 0x1428], 1
push 0
push eax
mov dword [ebp - 0x1430], 0x1000
call sub.msvcrt.dll_memset
mov esi, dword [ebp - 0x141c]
lea eax, [ebp - 0x1430]
add esp, 0xc
push dword [ebp - 0x1418]
push eax
lea eax, [ebp - 0x1414]
push eax
lea eax, [ebp - 0x1428]
push eax
push dword [ebp - 0x142c]
lea eax, [ebp - 0x20c]
push eax
push esi
call fcn.100585c0
test eax, eax
jne 0x1003ec81
mov eax, dword [ebp - 0x1428]
cmp eax, 1
je 0x1003ec27
cmp eax, 2
jne 0x1003ec48
mov cl, byte [ebp + 0x20]
cmp cl, 1
jne 0x1003ec4b
push dword [ebp - 0x1434]
lea eax, [ebp - 0x1414]
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
jne 0x1003ec81
jmp 0x1003ec5f
mov cl, byte [ebp + 0x20]
cmp eax, 4
jne 0x1003ec81
test cl, cl
jne 0x1003ec81
mov eax, dword [ebp + 0x24]
cmp eax, dword [ebp - 0x1414]
je 0x1003ec81
push dword [ebp - 0x1418]
lea eax, [ebp - 0x20c]
push dword [ebp - 0x142c]
push eax
push esi
push dword [ebp - 0x1438]
call fcn.1003ece0
add esp, 0x14
test edi, edi
jne 0x1003ec8b
inc ebx
jmp 0x1003eaf0
mov edi, dword [ebp - 0x1420]
call fcn.10003180
mov esi, dword [eax + 0x154]
test esi, esi
je 0x1003eca7
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x44
call fcn.10003680
add esp, 4
push edi
test eax, eax
je 0x1003ecba
call eax
jmp 0x1003ecc0
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x1003eccb
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.101f99c6
mov esp, ebp
pop ebp
ret