Function at 0x437f30
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov ecx, 7
push 0
push 0
dec ecx
jne 0x437f38
push ebx
push esi
xor eax, eax
push ebp
push 0x43817b
push dword fs:[eax]
mov dword fs:[eax], esp
xor esi, esi
call fcn.00437ba4
test al, al
je 0x438143
push 0xf003f
push 0
push 0
call dword [0x45691c]
mov ebx, eax
test ebx, ebx
je 0x438143
push 0x1ff
mov eax, dword [ebp + 8]
push eax
push ebx
call dword [0x456920]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x437fb0
push 0
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
call fcn.00437d80
neg al
sbb esi, esi
mov eax, dword [ebp - 4]
push eax
call dword [0x45690c]
jmp 0x437fee
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp + 0xc]
push eax
push 1
push 1
push 1
push 0x1f01ff
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp + 8]
push eax
push ebx
call dword [0x456928]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x437fee
or esi, 0xffffffff
mov eax, dword [ebp - 4]
push eax
call dword [0x45690c]
push ebx
call dword [0x45690c]
test esi, esi
je 0x438143
lea eax, [ebp - 0xc]
push eax
push 0xf003f
push 0
lea edx, [ebp - 0x24]
mov eax, dword [0x454dd8]
call fcn.00427e90
mov edx, dword [ebp - 0x24]
lea eax, [ebp - 0x20]
call fcn.00425c80
push dword [ebp - 0x20]
push 0x438190
lea eax, [ebp - 0x28]
mov edx, dword [ebp + 8]
call fcn.00425c2c
push dword [ebp - 0x28]
lea eax, [ebp - 0x1c]
mov edx, 3
call fcn.00425cac
mov eax, dword [ebp - 0x1c]
call fcn.00425c90
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call sub.ADVAPI32.dll_RegOpenKeyExW
test eax, eax
jne 0x438143
mov dword [ebp - 8], 4
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push 0
push 0
lea edx, [ebp - 0x2c]
mov eax, dword [0x454dc0]
call fcn.00427e90
mov eax, dword [ebp - 0x2c]
call fcn.00425998
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.ADVAPI32.dll_RegQueryValueExA
test eax, eax
jne 0x43809a
cmp dword [ebp - 8], 4
je 0x43810e
mov dword [ebp - 0x18], 0x10000
mov dword [ebp - 0x14], 0x10000
mov eax, dword [ebp + 0xc]
call fcn.00437680
mov dword [ebp - 4], eax
push 8
lea eax, [ebp - 0x18]
push eax
push 3
push 0
lea edx, [ebp - 0x30]
mov eax, dword [0x454db8]
call fcn.00427e90
mov eax, dword [ebp - 0x30]
call fcn.00425998
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.ADVAPI32.dll_RegSetValueExA
push 4
lea eax, [ebp - 4]
push eax
push 3
push 0
lea edx, [ebp - 0x34]
mov eax, dword [0x454dbc]
call fcn.00427e90
mov eax, dword [ebp - 0x34]
call fcn.00425998
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.ADVAPI32.dll_RegSetValueExA
mov dword [ebp - 4], 1
jmp 0x438111
inc dword [ebp - 4]
push 4
lea eax, [ebp - 4]
push eax
push 4
push 0
lea edx, [ebp - 0x38]
mov eax, dword [0x454dc0]
call fcn.00427e90
mov eax, dword [ebp - 0x38]
call fcn.00425998
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.ADVAPI32.dll_RegSetValueExA
mov eax, dword [ebp - 0xc]
push eax
call sub.ADVAPI32.dll_RegCloseKey
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x438182
lea eax, [ebp - 0x38]
mov edx, 4
call fcn.0042552c
lea eax, [ebp - 0x28]
call fcn.00425b14
lea eax, [ebp - 0x24]
call fcn.00425508
lea eax, [ebp - 0x20]
mov edx, 2
call fcn.00425b2c
ret