Function at 0x100e5ad0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x62c
mov eax, dword [0x102519c8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov dword [ebp - 0x62c], eax
call fcn.10002d70
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0xc]
add eax, 0x10
push esi
mov dword [ebp - 0x624], eax
lea eax, [ebp - 0x624]
push str._s_shell
push eax
call fcn.10002cb0
push 0x410
lea eax, [ebp - 0x61c]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0x18
call fcn.10002d70
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0xc]
push 0x20019
add eax, 0x10
push 0x410
mov dword [ebp - 0x620], eax
lea eax, [ebp - 0x61c]
push eax
push 1
push 0x10202940
push dword [ebp - 0x624]
push ebx
call fcn.10176900
add esp, 0x1c
test eax, eax
je 0x100e5bef
push 0x10202940
lea eax, [ebp - 0x61c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jle 0x100e5bef
lea eax, [ebp - 0x61c]
push eax
push esi
lea eax, [ebp - 0x620]
push str._s_shell_s
push eax
call fcn.10002cb0
mov edi, dword [ebp - 0x620]
push 0x200
push edi
push ebx
call fcn.10176c90
add esp, 0x1c
test eax, eax
je 0x100e5bef
lea ecx, [ebp - 0x61c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100e5bc3
sub ecx, edx
lea eax, [ebp - 0x61c]
sar ecx, 1
push ecx
mov ecx, dword [ebp - 0x62c]
push eax
call fcn.10003740
mov ebx, 1
jmp 0x100e5d9e
push 0
push 0x10202940
lea ecx, [ebp - 0x620]
call fcn.10003740
push str.open
push esi
lea eax, [ebp - 0x620]
push str._s_shell_s
push eax
call fcn.10002cb0
mov edi, dword [ebp - 0x620]
push 0x200
push edi
push ebx
call fcn.10176c90
add esp, 0x1c
test eax, eax
je 0x100e5c52
mov ecx, 4
mov eax, str.open
push ecx
mov ecx, dword [ebp - 0x62c]
push eax
call fcn.10003740
mov ebx, 1
jmp 0x100e5d9e
mov dword [ebp - 0x628], 0
call fcn.10003180
mov esi, dword [eax + 0x154]
test esi, esi
je 0x100e5c72
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x2f
call fcn.10003680
add esp, 4
test eax, eax
je 0x100e5c92
lea ecx, [ebp - 0x628]
push ecx
push dword [ebp - 0x624]
push ebx
call eax
jmp 0x100e5ca6
lea eax, [ebp - 0x628]
push eax
push dword [ebp - 0x624]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
mov ebx, eax
test esi, esi
je 0x100e5cb3
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test ebx, ebx
jne 0x100e5d9c
push 0x208
lea eax, [ebp - 0x20c]
push ebx
push eax
call sub.msvcrt.dll_memset
mov ebx, dword [ebp - 0x628]
add esp, 0xc
mov dword [ebp - 0x620], 0x103
call fcn.10003180
mov esi, dword [eax + 0x154]
test esi, esi
je 0x100e5cf6
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x3d
call fcn.10003680
add esp, 4
push 0
push 0
push 0
push 0
test eax, eax
je 0x100e5d21
lea ecx, [ebp - 0x620]
push ecx
lea ecx, [ebp - 0x20c]
push ecx
push 0
push ebx
call eax
jmp 0x100e5d38
lea eax, [ebp - 0x620]
push eax
lea eax, [ebp - 0x20c]
push eax
push 0
push ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov ebx, eax
test esi, esi
je 0x100e5d45
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push dword [ebp - 0x628]
call fcn.10034ac0
test ebx, ebx
jne 0x100e5d9c
push 0x10202940
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jle 0x100e5d9c
lea edx, [ebp - 0x20c]
lea esi, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x100e5d73
mov ecx, dword [ebp - 0x62c]
lea eax, [ebp - 0x20c]
sub edx, esi
sar edx, 1
push edx
push eax
call fcn.10003740
mov ebx, 1
jmp 0x100e5d9e
xor ebx, ebx
or esi, 0xffffffff
add edi, 0xfffffff0
mov eax, esi
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x100e5db8
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x624]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], esi
dec esi
test esi, esi
jg 0x100e5dd3
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.101f99c6
mov esp, ebp
pop ebp
ret 0xc