Function at 0x100363a0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1004f758
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x10067068]
xor eax, esp
mov dword [esp + 0x68], eax
push ebx
push esi
push edi
mov eax, dword [0x10067068]
xor eax, esp
push eax
lea eax, [esp + 0x80]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor ebx, ebx
push ebx
push ebx
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x20]
push edx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
mov dword [esp + 0x48], eax
mov eax, dword [ebp + 0xc]
push ebx
push eax
mov dword [esp + 0x4c], eax
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
cmp eax, ebx
jne 0x10036626
xor eax, eax
mov dword [esp + 0x54], 7
mov dword [esp + 0x50], ebx
mov word [esp + 0x40], ax
mov dword [esp + 0x88], ebx
mov ecx, dword [esp + 0x14]
inc ecx
cmp ecx, ebx
ja 0x1003643d
or eax, 0xffffffff
lea esi, [esp + 0x40]
call fcn.1000d050
jmp 0x10036449
push ebx
mov eax, ecx
lea edi, [esp + 0x44]
call fcn.10016e20
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov byte [esp + 0x88], 1
mov eax, dword [esp + 0x18]
lea esi, [esp + 0x30]
call fcn.10028df0
mov edi, dword [esp + 0x30]
mov dword [esp + 0x10], ebx
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x40]
inc ecx
cmp dword [esp + 0x54], 8
mov dword [esp + 0x24], ecx
mov dword [esp + 0x2c], edx
jae 0x10036492
lea eax, [esp + 0x40]
lea ecx, [esp + 0x2c]
push ecx
push edi
lea edx, [esp + 0x30]
push edx
mov edx, dword [esp + 0x1c]
push ebx
lea ecx, [esp + 0x34]
push ecx
push eax
mov eax, dword [esp + 0x34]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov esi, eax
cmp esi, ebx
jne 0x100365b5
cmp dword [esp + 0x28], 1
jne 0x100365ac
mov esi, dword [esp + 0x54]
mov eax, dword [esp + 0x40]
cmp esi, 8
jae 0x100364da
lea eax, [esp + 0x40]
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x100364e0
sub eax, edx
sar eax, 1
cmp eax, 4
jb 0x100365ac
mov eax, dword [esp + 0x40]
cmp esi, 8
jae 0x10036505
lea eax, [esp + 0x40]
xor ecx, ecx
mov word [eax + 8], cx
cmp dword [esp + 0x54], 8
mov eax, dword [esp + 0x40]
jae 0x1003651a
lea eax, [esp + 0x40]
push str.item
push eax
call dword [sym.imp.MSVCR100.dll__wcsicmp]
add esp, 8
test eax, eax
jne 0x100365ac
xor edx, edx
mov eax, edi
mov word [esp + 0x5c], dx
mov dword [esp + 0x70], 7
mov dword [esp + 0x6c], ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x10036545
sub eax, edx
sar eax, 1
push eax
mov eax, edi
lea esi, [esp + 0x60]
call fcn.1000cf60
mov ebx, dword [esp + 0x20]
add ebx, 0x44
mov ecx, esi
mov byte [esp + 0x88], 2
call fcn.10028aa0
mov byte [esp + 0x88], 1
cmp dword [esp + 0x70], 8
jb 0x10036593
mov eax, dword [esp + 0x5c]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor ecx, ecx
mov dword [esp + 0x70], 7
mov dword [esp + 0x6c], 0
mov word [esp + 0x5c], cx
xor ebx, ebx
inc dword [esp + 0x10]
jmp 0x10036472
mov byte [esp + 0x88], bl
cmp esi, 0x103
jne 0x100365f6
cmp edi, ebx
je 0x100365d2
push edi
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov dword [esp + 0x88], 0xffffffff
cmp dword [esp + 0x54], 8
jb 0x100365f2
mov edx, dword [esp + 0x40]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor eax, eax
jmp 0x10036626
cmp edi, ebx
je 0x10036604
push edi
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov dword [esp + 0x88], 0xffffffff
cmp dword [esp + 0x54], 8
jb 0x10036624
mov eax, dword [esp + 0x40]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x80]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x68]
xor ecx, esp
call fcn.10048188
mov esp, ebp
pop ebp
ret 8