Function at 0x402090
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x2c]
xor ecx, ecx
cmp dword [eax + 0x1c], 0
sete cl
mov dword [ebp - 0x18], ecx
cmp dword [ebp - 0x18], 0
je 0x4020f5
mov dword [ebp - 8], 0xea0001
mov dword [ebp - 4], 0
push 0x405300
mov edx, dword [ebp - 8]
push edx
push 0xea
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [ebp - 0x18]
push eax
push 0x405328
call sub.euLogPct.dll_dbgPut
add esp, 0x18
jmp 0x40232c
xor ecx, ecx
cmp dword [ebp + 0xc], 0
sete cl
mov dword [ebp - 0x1c], ecx
cmp dword [ebp - 0x1c], 0
je 0x402140
mov dword [ebp - 8], 0xeb0001
mov dword [ebp - 4], 0
push 0x405370
mov edx, dword [ebp - 8]
push edx
push 0xeb
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [ebp - 0x1c]
push eax
push 0x405398
call sub.euLogPct.dll_dbgPut
add esp, 0x18
jmp 0x40232c
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ecx + 0x20]
push edx
push 0
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax + 0x1c]
push ecx
call sub.MSVCR90.dll_memset
add esp, 0xc
mov dword [ebp - 0xc], 1
mov edx, dword [ebp - 0x2c]
mov eax, dword [edx + 0x20]
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0x2c]
mov eax, dword [edx + 0x1c]
push eax
lea ecx, [ebp - 0xc]
push ecx
push 0
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0x12
je 0x402199
cmp dword [ebp - 0x14], 2
jne 0x4021b4
mov eax, dword [ebp - 0x14]
cdq
mov cl, 0x20
call fcn.00403f70
or eax, 0xf20021
mov dword [ebp - 8], eax
mov dword [ebp - 4], edx
jmp 0x40232c
cmp dword [ebp - 0x14], 0
je 0x4021d5
mov eax, dword [ebp - 0x14]
cdq
mov cl, 0x20
call fcn.00403f70
or eax, 0xf30021
mov dword [ebp - 8], eax
mov dword [ebp - 4], edx
jmp 0x40232c
mov edx, dword [ebp - 0xc]
mov dword [ebp - 0x30], edx
cmp dword [ebp - 0x30], 7
je 0x4021e6
jmp 0x40227f
push 0x40d8ec
mov eax, dword [ebp - 0x10]
shr eax, 1
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00403c9e
add esp, 8
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x28]
mov dword [eax], ecx
mov edx, dword [ebp + 0xc]
xor eax, eax
cmp dword [edx], 0
sete al
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x402261
mov dword [ebp - 8], 0xf8000a
mov dword [ebp - 4], 0
push 0x4053e0
mov ecx, dword [ebp - 8]
push ecx
push 0xf8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov edx, dword [ebp - 0x20]
push edx
push 0x405408
call sub.euLogPct.dll_dbgPut
add esp, 0x18
jmp 0x402300
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ecx + 0x1c]
push edx
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
push ecx
call sub.MSVCR90.dll_memcpy
add esp, 0xc
jmp 0x402300
mov edx, dword [ebp - 0x2c]
mov eax, dword [edx + 0x1c]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.00401720
add esp, 8
mov edx, dword [ebp + 0xc]
cmp dword [edx], 0
jne 0x4022b9
mov eax, dword [ebp - 0x2c]
cmp dword [eax + 0x1c], 0
je 0x4022b9
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ecx + 0x1c]
movzx eax, byte [edx]
test eax, eax
je 0x4022b9
mov dword [ebp - 0x34], 1
jmp 0x4022c0
mov dword [ebp - 0x34], 0
mov ecx, dword [ebp - 0x34]
mov dword [ebp - 0x24], ecx
cmp dword [ebp - 0x24], 0
je 0x402300
mov dword [ebp - 8], 0xfd000a
mov dword [ebp - 4], 0
push 0x405450
mov edx, dword [ebp - 8]
push edx
push 0xfd
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [ebp - 0x24]
push eax
push 0x405478
call sub.euLogPct.dll_dbgPut
add esp, 0x18
cmp dword [ebp + 0x10], 0
je 0x402310
mov ecx, dword [ebp - 0x10]
shr ecx, 1
mov edx, dword [ebp + 0x10]
mov dword [edx], ecx
cmp dword [ebp - 0xc], 1
jne 0x402324
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
push ecx
call fcn.00401870
add esp, 4
xor edx, edx
jne 0x4020a7
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 0xc