Function at 0x1003706
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xa8c
mov eax, dword [0x1008f78]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
xor ebx, ebx
push esi
mov edi, 0x104
push 1
mov dword [ebp - 0xa70], ebx
mov dword [ebp - 0xa80], ebx
mov dword [ebp - 0xa7c], edi
mov dword [ebp - 0xa6c], ebx
mov dword [ebp - 0xa78], ebx
call fcn.01002f00
pop ecx
pop ecx
lea eax, [ebp - 0xa70]
push eax
push 0x20019
push ebx
lea eax, [esi + 0x618]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
mov dword [ebp - 0xa74], eax
jne 0x1003958
lea eax, [ebp - 0xa8c]
push eax
push ebx
push ebx
push ebx
lea eax, [ebp - 0xa7c]
push eax
lea eax, [ebp - 0x414]
push eax
push ebx
jmp 0x100393e
lea eax, [ebp - 0xa6c]
push eax
push 0x20019
push ebx
lea eax, [ebp - 0x414]
push eax
push dword [ebp - 0xa70]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
mov dword [ebp - 0xa74], eax
jne 0x1003958
lea eax, [ebp - 0xa78]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0xa84]
push eax
push ebx
push 0x10013d0
push dword [ebp - 0xa6c]
mov dword [ebp - 0xa78], 0x208
mov word [ebp - 0x20c], bx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10038fa
lea eax, [ebp - 0x20c]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, bx
jne 0x1003812
sub eax, edx
sar eax, 1
je 0x10038fa
lea eax, [ebp - 0xa78]
push eax
lea eax, [ebp - 0xa68]
push eax
lea eax, [ebp - 0xa84]
push eax
push ebx
push 0x1001528
push dword [ebp - 0xa6c]
mov dword [ebp - 0xa78], 0x654
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
push 0x103
jne 0x10038ce
lea eax, [ebp - 0xa64]
push eax
lea eax, [esi + 0xa28]
push edi
push eax
call dword [sym.imp.MSVCR80.dll_wcsncpy_s]
push 0x103
lea eax, [ebp - 0x95c]
push eax
lea eax, [esi + 0xe9c]
push edi
push eax
mov word [esi + 0xc2e], bx
call dword [sym.imp.MSVCR80.dll_wcsncpy_s]
push 0x27
lea eax, [ebp - 0x20c]
push eax
lea eax, [esi + 0x10a4]
push 0x28
push eax
mov word [esi + 0x10a2], bx
call dword [sym.imp.MSVCR80.dll_wcsncpy_s]
push esi
push 1
push 0x80000002
mov word [esi + 0x10f2], bx
call fcn.0100535e
add esp, 0x3c
jmp 0x10038fa
lea eax, [ebp - 0x414]
push eax
lea eax, [esi + 0xa28]
push edi
push eax
call dword [sym.imp.MSVCR80.dll_wcsncpy_s]
push esi
push 1
push 0x80000002
mov word [esi + 0xc2e], bx
call fcn.01005229
add esp, 0x1c
cmp dword [ebp - 0xa6c], ebx
je 0x1003914
push dword [ebp - 0xa6c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0xa6c], ebx
inc dword [ebp - 0xa80]
lea eax, [ebp - 0xa8c]
push eax
push ebx
push ebx
push ebx
lea eax, [ebp - 0xa7c]
push eax
lea eax, [ebp - 0x414]
push eax
push dword [ebp - 0xa80]
mov dword [ebp - 0xa7c], edi
push dword [ebp - 0xa70]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x100379b
mov dword [ebp - 0xa74], ebx
cmp dword [ebp - 0xa6c], ebx
je 0x100396c
push dword [ebp - 0xa6c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0xa70], ebx
pop edi
pop esi
pop ebx
je 0x1003983
push dword [ebp - 0xa70]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0xa74]
xor ecx, ebp
call fcn.01005e45
leave
ret