Function at 0x1003e450
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1460
call fcn.101f99e0
mov eax, dword [0x102519c8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov dword [ebp - 0x1458], eax
mov eax, dword [ebp + 0x18]
push edi
mov edi, dword [ebp + 0x14]
mov dword [ebp - 0x1454], eax
mov eax, dword [ebp + 0x1c]
push 0x208
mov dword [ebp - 0x1460], eax
lea eax, [ebp - 0x20c]
push 0
push eax
mov dword [ebp - 0x143c], ebx
mov dword [ebp - 0x144c], edi
call sub.msvcrt.dll_memset
movzx eax, byte [ebp + 0xc]
add esp, 0xc
xor eax, 1
mov dword [ebp - 0x1434], 0
shl eax, 8
add eax, 0xf013f
mov dword [ebp - 0x1430], eax
call fcn.10003180
mov esi, dword [eax + 0x154]
test esi, esi
je 0x1003e4e2
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x31
call fcn.10003680
add esp, 4
test eax, eax
je 0x1003e505
lea ecx, [ebp - 0x1438]
push ecx
push dword [ebp - 0x1430]
push 0
push edi
push ebx
call eax
jmp 0x1003e51c
lea eax, [ebp - 0x1438]
push eax
push dword [ebp - 0x1430]
push 0
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, eax
test esi, esi
je 0x1003e529
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test edi, edi
jne 0x1003e88c
mov dword [ebp - 0x1448], edi
mov dword [ebp - 0x1444], edi
mov dword [ebp - 0x1440], edi
push 0x208
lea eax, [ebp - 0x414]
push 0
push eax
call sub.msvcrt.dll_memset
mov ebx, dword [ebp - 0x1438]
add esp, 0xc
call fcn.10003180
mov esi, dword [eax + 0x154]
test esi, esi
je 0x1003e575
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x3b
call fcn.10003680
add esp, 4
push 0x104
test eax, eax
je 0x1003e59a
lea ecx, [ebp - 0x414]
push ecx
push dword [ebp - 0x1434]
push ebx
call eax
jmp 0x1003e5ae
lea eax, [ebp - 0x414]
push eax
push dword [ebp - 0x1434]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
mov ebx, eax
test esi, esi
je 0x1003e5bb
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test ebx, ebx
je 0x1003e5ed
cmp ebx, 0x103
jne 0x1003e80b
mov esi, dword [ebp - 0x144c]
lea eax, [ebp - 0x20c]
push esi
push 0x102029dc
push 0x104
push eax
call fcn.1000aa70
add esp, 0x10
jmp 0x1003e614
mov esi, dword [ebp - 0x144c]
lea eax, [ebp - 0x414]
push eax
push esi
push 0x102040c0
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.1000aa70
add esp, 0x14
push 0x1000
lea eax, [ebp - 0x1414]
mov dword [ebp - 0x1450], 1
push 0
push eax
mov dword [ebp - 0x145c], 0x1000
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x145c]
push dword [ebp - 0x1430]
push eax
lea eax, [ebp - 0x1414]
push eax
lea eax, [ebp - 0x1450]
push eax
push dword [ebp - 0x1454]
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x143c]
call fcn.100585c0
test eax, eax
jne 0x1003e7d5
mov eax, dword [ebp - 0x1450]
cmp eax, 1
je 0x1003e689
cmp eax, 2
jne 0x1003e6b1
mov cl, byte [ebp + 0x24]
cmp cl, 1
jne 0x1003e6b4
push dword [ebp - 0x1460]
lea eax, [ebp - 0x1414]
push eax
push esi
call fcn.10036e70
add esp, 0xc
test al, al
je 0x1003e7d5
jmp 0x1003e6d4
mov cl, byte [ebp + 0x24]
cmp eax, 4
jne 0x1003e7d5
test cl, cl
jne 0x1003e7d5
mov eax, dword [ebp + 0x28]
cmp eax, dword [ebp - 0x1414]
jne 0x1003e7d5
cmp byte [ebp + 0x20], 0
je 0x1003e7e4
xor eax, eax
mov dword [ebp - 0x141c], 0
lea ecx, [ebp - 0x20c]
mov dword [ebp - 0x1418], 7
mov word [ebp - 0x142c], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1003e704
sub ecx, edx
lea eax, [ebp - 0x20c]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x142c]
call fcn.100070c0
cmp dword [ebp - 0x1440], edi
je 0x1003e77c
mov eax, dword [ebp - 0x142c]
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi], eax
mov eax, dword [ebp - 0x1428]
mov dword [edi + 4], eax
mov eax, dword [ebp - 0x1424]
mov dword [edi + 8], eax
mov eax, dword [ebp - 0x1420]
mov dword [edi + 0xc], eax
mov eax, dword [ebp - 0x141c]
mov dword [edi + 0x10], eax
mov eax, dword [ebp - 0x1418]
mov dword [edi + 0x14], eax
add edi, 0x18
mov dword [ebp - 0x1444], edi
jmp 0x1003e7d5
lea eax, [ebp - 0x142c]
push eax
push edi
lea ecx, [ebp - 0x1448]
call fcn.1001df20
mov edx, dword [ebp - 0x1418]
cmp edx, 8
jb 0x1003e7cf
mov ecx, dword [ebp - 0x142c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1003e7c5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1003e89d
push edx
push ecx
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
add esp, 8
mov edi, dword [ebp - 0x1444]
test ebx, ebx
jne 0x1003e80b
inc dword [ebp - 0x1434]
jmp 0x1003e543
push dword [ebp - 0x1430]
lea eax, [ebp - 0x20c]
push dword [ebp - 0x1454]
push eax
push dword [ebp - 0x143c]
push dword [ebp - 0x1458]
call fcn.1003ece0
add esp, 0x14
mov ebx, dword [ebp - 0x1438]
call fcn.10003180
mov esi, dword [eax + 0x154]
test esi, esi
je 0x1003e827
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x44
call fcn.10003680
add esp, 4
push ebx
test eax, eax
je 0x1003e83a
call eax
jmp 0x1003e840
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x1003e84b
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [ebp - 0x1448]
cmp esi, edi
je 0x1003e881
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x1003e85f
mov eax, dword [esi]
push dword [ebp - 0x1430]
push eax
push dword [ebp - 0x143c]
push dword [ebp - 0x1458]
call fcn.1003e420
add esi, 0x18
add esp, 0x10
cmp esi, edi
jne 0x1003e855
lea ecx, [ebp - 0x1448]
call fcn.10021060
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.101f99c6
mov esp, ebp
pop ebp
ret
call fcn.101e6c40
int3