Function at 0x10371e7
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x104077c
call fcn.0103cb58
sub esp, 0x174
mov eax, dword [0x104a0fc]
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x14c], ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x148], eax
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x144], eax
mov dword [ebp - 0x120], 1
or dword [ebp - 0x11c], 0xffffffff
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x124], 0x100
mov dword [ebp - 0x118], ebx
push 0x3f
pop ecx
xor eax, eax
lea edi, [ebp - 0x114]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov dword [ebp - 0x138], ebx
mov dword [ebp - 0x134], ebx
xor edi, edi
mov dword [ebp - 0x13c], edi
cmp edi, dword [ebp + 0x14]
jae 0x1037453
push dword [esi + edi*4]
lea ecx, [ebp - 0x12c]
call fcn.01007b57
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x128]
push eax
mov ecx, dword [ebp - 0x148]
call fcn.010084dd
mov dword [ebp - 0x16c], eax
mov byte [ebp - 4], 2
mov eax, dword [eax]
cmp eax, ebx
je 0x10372ab
mov eax, dword [eax]
jmp 0x10372ad
xor eax, eax
push ebx
push 0x80
push 3
push ebx
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x11c], eax
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x128]
cmp ecx, ebx
je 0x10372e3
call fcn.01008084
mov dword [ebp - 0x128], ebx
mov byte [ebp - 4], bl
mov ecx, dword [ebp - 0x12c]
cmp ecx, ebx
je 0x10372fb
call fcn.01008084
mov dword [ebp - 0x12c], ebx
cmp dword [ebp - 0x11c], ebx
je 0x1037447
cmp dword [ebp - 0x11c], 0xffffffff
je 0x1037447
lea eax, [ebp - 0x158]
push eax
lea eax, [ebp - 0x178]
push eax
lea eax, [ebp - 0x180]
push eax
push dword [ebp - 0x11c]
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
je 0x103742c
mov dword [ebp - 0x124], 0x100
mov dword [ebp - 0x130], ebx
cmp dword [ebp - 0x120], ebx
je 0x10373df
lea eax, [ebp - 0x124]
push eax
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x130]
push eax
push ebx
push dword [esi + edi*4]
mov eax, dword [ebp - 0x14c]
push dword [eax + 0x3e4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10373df
cmp dword [ebp - 0x130], 1
jne 0x103740c
mov eax, dword [ebp - 0x124]
shr eax, 1
mov word [ebp + eax*2 - 0x118], bx
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.msvcrt.dll__wtoi64]
pop ecx
mov dword [ebp - 0x138], eax
mov dword [ebp - 0x134], edx
mov dword [ebp - 0x164], eax
mov dword [ebp - 0x160], edx
lea eax, [ebp - 0x164]
push eax
lea eax, [ebp - 0x158]
push eax
call dword [sym.imp.KERNEL32.dll_CompareFileTime]
test eax, eax
je 0x10373e5
mov dword [ebp - 0x120], ebx
mov eax, dword [ebp - 0x158]
mov dword [ebp - 0x138], eax
mov ecx, dword [ebp - 0x154]
mov dword [ebp - 0x134], ecx
mov edx, dword [ebp - 0x144]
mov dword [edx + edi*8], eax
mov dword [edx + edi*8 + 4], ecx
jmp 0x1037432
push 0xd
pop esi
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [ebp - 0x150], esi
push 0x1042c20
lea eax, [ebp - 0x150]
jmp 0x10374d0
mov dword [ebp - 0x120], ebx
push dword [ebp - 0x11c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [ebp - 0x11c], 0xffffffff
jmp 0x103744d
mov dword [ebp - 0x120], ebx
inc edi
jmp 0x1037263
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x120]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x14]
call fcn.0103c70f
pop edi
pop esi
pop ebx
leave
ret 0x10
push eax
call sub.msvcrt.dll__CxxThrowException
int3