Function at 0x437740
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x489731
mov eax, dword fs:[0]
push eax
mov eax, 0x1054
call fcn.00459bd0
mov eax, dword [0x4ab4ec]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
movzx eax, byte [esi + 0x51]
neg eax
sbb eax, eax
and eax, 0x100
xor ebx, ebx
or eax, 0x20019
mov byte [ebp - 0x1049], 0
cmp dword [esi + 0x34], ebx
jne 0x4377d2
cmp dword [esi + 0x1c], 8
mov dword [ebp - 0x1050], ebx
jb 0x4377a5
mov ecx, dword [esi + 8]
jmp 0x4377a8
lea ecx, [esi + 8]
lea edx, [ebp - 0x1050]
push edx
push eax
mov eax, dword [esi]
push ebx
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4377c6
mov byte [ebp - 0x1049], 1
mov ecx, dword [ebp - 0x1050]
push ecx
jmp 0x4379ce
mov edi, 8
mov dword [ebp - 0x1054], ebx
cmp dword [esi + 0x1c], edi
jb 0x4377e7
mov ecx, dword [esi + 8]
jmp 0x4377ea
lea ecx, [esi + 8]
lea edx, [ebp - 0x1054]
push edx
push eax
mov eax, dword [esi]
push ebx
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4379c7
mov dword [ebp - 0x1050], ebx
mov dword [ebp - 0x1058], ebx
cmp dword [esi + 0x38], edi
jb 0x43781b
mov eax, dword [esi + 0x24]
jmp 0x43781e
lea eax, [esi + 0x24]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea ecx, [ebp - 0x1058]
push ecx
push ebx
lea edx, [ebp - 0x1050]
push edx
push ebx
push eax
mov eax, dword [ebp - 0x1054]
push eax
call edi
cmp eax, ebx
je 0x43784d
cmp eax, 0xea
jne 0x4379c7
cmp dword [ebp - 0x1058], 0x1000
jae 0x4379c7
mov ecx, dword [esi + 0x4c]
cmp ecx, dword [ebp - 0x1050]
jne 0x4379c7
push 0xfff
lea edx, [ebp - 0x100f]
push ebx
push edx
mov byte [ebp - 0x1010], bl
call fcn.004578d0
add esp, 0xc
cmp dword [esi + 0x38], 8
jb 0x437892
mov eax, dword [esi + 0x24]
jmp 0x437895
lea eax, [esi + 0x24]
lea ecx, [ebp - 0x1058]
push ecx
lea edx, [ebp - 0x1010]
push edx
mov edx, dword [ebp - 0x1054]
lea ecx, [ebp - 0x1050]
push ecx
push ebx
push eax
push edx
call edi
mov eax, dword [esi + 0x4c]
mov ebx, 1
sub eax, ebx
je 0x4378ef
sub eax, 3
jne 0x4379c7
mov esi, dword [esi + 0x44]
cmp esi, dword [ebp - 0x1010]
je 0x4378e4
test esi, esi
je 0x4378e4
mov byte [ebp - 0x1049], al
jmp 0x4379c7
mov byte [ebp - 0x1049], bl
jmp 0x4379c7
lea eax, [esi + 0x3c]
push eax
lea ecx, [ebp - 0x102c]
push ecx
call fcn.00437340
mov dword [ebp - 4], 0
lea edx, [ebp - 0x1010]
push 0x1000
push edx
call fcn.0045a925
add esp, 0x10
lea eax, [ebp + eax*2 - 0x1010]
push eax
lea ecx, [ebp - 0x1010]
push ecx
lea ecx, [ebp - 0x1048]
call fcn.00437670
mov byte [ebp - 4], bl
cmp byte [esi + 0x52], 0
lea edx, [ebp - 0x102c]
je 0x43797d
push 0
push edx
lea ecx, [ebp - 0x1060]
call fcn.0042a4a0
mov byte [ebp - 4], 2
push 0
push eax
lea eax, [ebp - 0x1048]
push eax
call fcn.00432e60
add esp, 0xc
mov byte [ebp - 0x1049], al
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x1060]
call fcn.0040fcd0
jmp 0x4379a6
lea ecx, [ebp - 0x1048]
push ecx
push edx
call fcn.00433630
add esp, 8
test al, al
jne 0x4379a0
cmp dword [ebp - 0x1018], 0
mov byte [ebp - 0x1049], al
jne 0x4379a6
mov byte [ebp - 0x1049], bl
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1048]
call fcn.00403ac0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x102c]
call fcn.00403ac0
mov eax, dword [ebp - 0x1054]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, byte [ebp - 0x1049]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0045718a
mov esp, ebp
pop ebp
ret