Function at 0x37f7f86d
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x138
mov eax, dword [0x37f7d24c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
xor ebx, ebx
push edi
mov dword [ebp - 0x120], eax
mov dword [ebp - 0x11c], ebx
cmp esi, ebx
je 0x37f7fbd3
push 0x37f7d1ac
push eax
call fcn.37f7e094
test eax, eax
jne 0x37f7fbd3
lea eax, [ebp - 0x11c]
push eax
push 0x37f617c0
push 1
push ebx
push 0x37f7d1cc
call fcn.37fad13a
test eax, eax
jl 0x37f7fbc3
mov eax, esi
mov dword [ebp - 0x118], eax
cmp dword [esi], ebx
jne 0x37f7f966
cmp dword [ebp + 0x10], ebx
jne 0x37f7fbc3
push 0x40
lea eax, [ebp - 0x104]
push eax
push dword [ebp - 0x120]
call dword [sym.imp.ole32.dll_StringFromGUID2]
lea eax, [ebp - 0x104]
push eax
mov dword [ebp - 0x12c], ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
push 2
push eax
mov dword [ebp - 0x118], eax
lea eax, [ebp - 0x118]
push eax
call fcn.37f7e0c6
test eax, eax
jl 0x37f7fbb8
mov esi, dword [ebp - 0x118]
cmp esi, 0x400
jg 0x37f7f9ea
push esi
call fcn.37f7ec8c
test al, al
je 0x37f7f9ea
mov eax, esi
call fcn.37fad7a0
mov eax, esp
jmp 0x37f7f9f6
mov eax, dword [ebp - 0x118]
mov esi, dword [eax + 4]
lea edi, [ebp - 0x114]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea edx, [ebp - 0x114]
movsd dword es:[edi], dword [esi]
push edx
push 1
push dword [ebp - 0x120]
movsd dword es:[edi], dword [esi]
cmp dword [ebp + 0x10], ebx
je 0x37f7f9ba
cmp dword [eax], 1
mov eax, dword [ebp - 0x11c]
mov ecx, dword [eax]
push eax
jne 0x37f7f99a
call dword [ecx + 0x14]
jmp 0x37f7f99d
call dword [ecx + 0x1c]
mov esi, eax
cmp esi, ebx
jge 0x37f7f9d0
mov eax, dword [ebp - 0x11c]
cmp eax, ebx
je 0x37f7f9b3
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, esi
jmp 0x37f7fbd5
cmp dword [eax], 1
mov eax, dword [ebp - 0x11c]
mov ecx, dword [eax]
push eax
jne 0x37f7f9cd
call dword [ecx + 0x18]
jmp 0x37f7f9d0
call dword [ecx + 0x20]
add dword [ebp - 0x118], 8
mov eax, dword [ebp - 0x118]
cmp dword [eax], ebx
jne 0x37f7f960
jmp 0x37f7f8e3
push esi
lea ecx, [ebp - 0x12c]
call fcn.37f7f062
push 3
push esi
lea ecx, [ebp - 0x104]
push ecx
push eax
call fcn.37f7e1ae
mov dword [ebp - 0x120], eax
cmp eax, ebx
je 0x37f7fbb8
push 0x37f617b8
mov esi, 0x80
lea eax, [ebp - 0x84]
push esi
push eax
call dword [sym.imp.MSVCR90.dll_strcpy_s]
add esp, 0xc
push eax
call fcn.37f7e23b
push dword [ebp - 0x120]
lea eax, [ebp - 0x84]
push esi
push eax
call fcn.37f7e2f2
push 0x37f617a0
lea eax, [ebp - 0x84]
push esi
push eax
call dword [sym.imp.MSVCR90.dll_strcat_s]
add esp, 0x18
push eax
call fcn.37f7e23b
push 0x20019
lea eax, [ebp - 0x84]
mov edi, SysReAllocString
push eax
push edi
lea ecx, [ebp - 0x128]
mov dword [ebp - 0x134], edi
mov dword [ebp - 0x130], ebx
mov dword [ebp - 0x128], ebx
mov dword [ebp - 0x124], ebx
mov dword [ebp - 0x118], ebx
call fcn.37f7e50d
test eax, eax
jne 0x37f7faf3
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x118]
push eax
push ebx
push ebx
push ebx
push dword [ebp - 0x128]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
lea ecx, [ebp - 0x128]
mov dword [ebp - 0x138], eax
call fcn.37f7e498
cmp dword [ebp - 0x138], ebx
jne 0x37f7faf3
cmp dword [ebp - 0x118], ebx
jne 0x37f7faf3
lea eax, [ebp - 0x84]
push eax
lea ecx, [ebp - 0x134]
call fcn.37f7e43b
push 0x37f617b8
lea eax, [ebp - 0x84]
push esi
push eax
call dword [sym.imp.MSVCR90.dll_strcpy_s]
add esp, 0xc
push eax
call fcn.37f7e23b
push dword [ebp - 0x120]
lea eax, [ebp - 0x84]
push esi
push eax
call fcn.37f7e2f2
push 0x37f61788
lea eax, [ebp - 0x84]
push esi
push eax
call dword [sym.imp.MSVCR90.dll_strcat_s]
add esp, 0x18
push eax
call fcn.37f7e23b
push 0x20019
lea eax, [ebp - 0x84]
push eax
push edi
lea ecx, [ebp - 0x128]
call fcn.37f7e50d
test eax, eax
jne 0x37f7fba2
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x118]
push eax
push ebx
push ebx
push ebx
push dword [ebp - 0x128]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
lea ecx, [ebp - 0x128]
mov esi, eax
call fcn.37f7e498
cmp esi, ebx
jne 0x37f7fba2
cmp dword [ebp - 0x118], ebx
jne 0x37f7fba2
lea eax, [ebp - 0x84]
push eax
lea ecx, [ebp - 0x134]
call fcn.37f7e43b
lea ecx, [ebp - 0x128]
call fcn.37f7e498
lea ecx, [ebp - 0x134]
call fcn.37f7e498
lea ecx, [ebp - 0x12c]
call fcn.37f7eae3
mov eax, dword [ebp - 0x11c]
cmp eax, ebx
je 0x37f7fbd3
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor eax, eax
lea esp, [ebp - 0x144]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.37facac9
leave
ret 0xc