Function at 0x432770
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x579618
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push esi
push edi
mov eax, dword [0x5d7ce0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 4], 1
mov eax, dword [0x5d9fb8]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4327f0
push str.GetNativeSystemInfo
push str.kernel32
call ebx
push eax
call edi
test eax, eax
je 0x4327e9
lea ecx, [ebp - 0x3c]
push ecx
call eax
mov ax, word [ebp - 0x3c]
cmp ax, 9
je 0x4327df
cmp ax, 6
jne 0x4327e9
mov dword [0x5e0c44], 1
xor eax, eax
mov dword [0x5d9fb8], eax
test esi, esi
je 0x43281d
cmp esi, 1
jne 0x432807
cmp dword [0x5e0c44], 0
je 0x43281d
jmp 0x43297b
cmp esi, 2
jne 0x43297b
cmp dword [0x5e0c44], 0
je 0x43297b
mov dword [ebp - 0x10], 0
test eax, eax
je 0x432865
push str.GetNativeSystemInfo
push str.kernel32
call ebx
push eax
call edi
test eax, eax
je 0x43285b
lea edx, [ebp - 0x3c]
push edx
call eax
mov ax, word [ebp - 0x3c]
cmp ax, 9
je 0x432851
cmp ax, 6
jne 0x43285b
mov dword [0x5e0c44], 1
mov dword [0x5d9fb8], 0
cmp dword [0x5e0c44], 0
jne 0x432872
xor eax, eax
jmp 0x432875
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x18]
lea ecx, [ebp - 0x10]
push ecx
or eax, 0x20019
push eax
mov eax, dword [ebp + 8]
push 0
push edx
push eax
mov dword [esi], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
xor ebx, ebx
cmp eax, ebx
jne 0x4328ee
mov eax, dword [ebp + 0x10]
lea ecx, [ebp - 0x14]
push ecx
mov ecx, dword [ebp - 0x10]
push ebx
lea edx, [ebp - 0x18]
push edx
push ebx
push eax
push ecx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, ebx
jne 0x4328db
cmp dword [ebp - 0x14], ebx
jbe 0x4328db
mov edx, dword [ebp - 0x10]
mov eax, 1
push edx
mov dword [esi], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x43297b
mov edx, dword [ebp - 0x10]
xor eax, eax
push edx
mov dword [esi], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x43297b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
lea esi, [ebp - 0x18]
call fcn.0041ae20
mov edx, dword [ebp + 0x1c]
mov byte [ebp - 4], 2
mov ecx, dword [eax]
mov esi, dword [edx]
lea eax, [ecx - 0x10]
sub esi, 0x10
cmp eax, esi
je 0x432958
cmp dword [esi + 0xc], ebx
lea edi, [esi + 0xc]
jl 0x43294c
mov ebx, dword [eax]
cmp ebx, dword [esi]
jne 0x43294c
push eax
call fcn.00407af0
mov ebx, eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x432942
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov ecx, dword [ebp + 0x1c]
add ebx, 0x10
mov dword [ecx], ebx
jmp 0x432958
mov eax, dword [ecx - 0xc]
push eax
push ecx
mov ecx, edx
call fcn.00407870
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x43297b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x43299e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4329c4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret