Function at 0x4303d4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff98
mov dword [ebp - 0x24], 0x80000002
mov dword [ebp - 0x20], 0x80000001
cmp byte [0x436922], 0
je 0x4303f8
mov byte [0x436920], 1
xor eax, eax
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0xc]
push eax
push 0x430600
mov eax, dword [ebp - 0x1c]
mov eax, dword [ebp + eax*4 - 0x24]
push eax
call sub.advapi32.dll_RegOpenKeyW
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x4305e5
xor eax, eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x68]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], 0x40
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x10]
push eax
lea eax, [ebp - 0x18]
push eax
push 0
push 0x43064c
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x430486
cmp dword [ebp - 0x18], 4
jne 0x43046d
mov eax, dword [ebp - 0x10]
cmp dword [eax], 0
setne al
mov byte [0x43690a], al
jmp 0x430486
cmp dword [ebp - 0x18], 1
jne 0x430486
mov eax, dword [ebp - 0x10]
push eax
call sub.msvcrt.dll__wtol
pop ecx
dec eax
sete al
mov byte [0x43690a], al
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x10]
push eax
lea eax, [ebp - 0x18]
push eax
push 0
push 0x43066c
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x4304da
cmp dword [ebp - 0x18], 4
jne 0x4304c1
mov eax, dword [ebp - 0x10]
cmp dword [eax], 0
setne al
mov byte [0x436920], al
jmp 0x4304da
cmp dword [ebp - 0x18], 1
jne 0x4304da
mov eax, dword [ebp - 0x10]
push eax
call sub.msvcrt.dll__wtol
pop ecx
dec eax
sete al
mov byte [0x436920], al
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x10]
push eax
lea eax, [ebp - 0x18]
push eax
push 0
push 0x430690
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x43052e
cmp dword [ebp - 0x18], 4
jne 0x430515
mov eax, dword [ebp - 0x10]
cmp dword [eax], 0
setne al
mov byte [0x436921], al
jmp 0x43052e
cmp dword [ebp - 0x18], 1
jne 0x43052e
mov eax, dword [ebp - 0x10]
push eax
call sub.msvcrt.dll__wtol
pop ecx
dec eax
sete al
mov byte [0x436921], al
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x10]
push eax
lea eax, [ebp - 0x18]
push eax
push 0
push 0x4306b4
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x430585
cmp dword [ebp - 0x18], 4
jne 0x430567
mov eax, dword [ebp - 0x10]
mov ax, word [eax]
mov word [0x436928], ax
jmp 0x430585
cmp dword [ebp - 0x18], 1
jne 0x430585
push 0
lea eax, [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.msvcrt.dll_wcstol
add esp, 0xc
mov word [0x436928], ax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x10]
push eax
lea eax, [ebp - 0x18]
push eax
push 0
push 0x4306d0
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x4305dc
cmp dword [ebp - 0x18], 4
jne 0x4305be
mov eax, dword [ebp - 0x10]
mov ax, word [eax]
mov word [0x43692a], ax
jmp 0x4305dc
cmp dword [ebp - 0x18], 1
jne 0x4305dc
push 0
lea eax, [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.msvcrt.dll_wcstol
add esp, 0xc
mov word [0x43692a], ax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
inc dword [ebp - 0x1c]
cmp dword [ebp - 0x1c], 2
jne 0x4303fd
mov byte [ebp - 1], 1
mov al, byte [ebp - 1]
mov esp, ebp
pop ebp
ret