Function at 0x10043030
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x258
mov eax, dword [0x1011b040]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x228], 0
mov dword [ebp - 0x234], 0
call sym.COMMON.dll_public:_static_bool___cdecl_CSystemInfo::is64_void_
movzx eax, al
test eax, eax
je 0x10043093
call sym.COMMON.dll_public:_static_bool___cdecl_CSystemInfo::IsVista_void_
movzx ecx, al
test ecx, ecx
jne 0x10043093
lea edx, [ebp - 0x23c]
push edx
push 0x101
push 0
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x234], eax
jmp 0x100430b2
lea edx, [ebp - 0x23c]
push edx
push 1
push 0
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x234], eax
cmp dword [ebp - 0x234], 0
je 0x100430df
push 0x100f99f0
mov ecx, dword [ebp + 8]
call fcn.10014010
mov edx, dword [ebp - 0x228]
or edx, 1
mov dword [ebp - 0x228], edx
mov eax, dword [ebp + 8]
jmp 0x100432eb
xor eax, eax
mov word [ebp - 0x20c], ax
push 0x206
push 0
lea ecx, [ebp - 0x20a]
push ecx
call sub.MSVCR120.dll_memset
add esp, 0xc
mov dword [ebp - 0x244], 0x104
mov dword [ebp - 0x250], 1
lea edx, [ebp - 0x244]
push edx
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x250]
push ecx
push 0
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp - 0x23c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x234], eax
cmp dword [ebp - 0x234], 0
je 0x1004316d
push 0x100f99f4
mov ecx, dword [ebp + 8]
call fcn.10014010
mov ecx, dword [ebp - 0x228]
or ecx, 1
mov dword [ebp - 0x228], ecx
mov eax, dword [ebp + 8]
jmp 0x100432eb
lea edx, [ebp - 0x20c]
mov dword [ebp - 0x230], edx
mov eax, dword [ebp - 0x230]
add eax, 2
mov dword [ebp - 0x258], eax
mov ecx, dword [ebp - 0x230]
mov dx, word [ecx]
mov word [ebp - 0x23e], dx
add dword [ebp - 0x230], 2
cmp word [ebp - 0x23e], 0
jne 0x10043188
mov eax, dword [ebp - 0x230]
sub eax, dword [ebp - 0x258]
sar eax, 1
mov dword [ebp - 0x24c], eax
mov ecx, dword [ebp - 0x24c]
mov dword [ebp - 0x238], ecx
cmp dword [ebp - 0x238], 0
jg 0x100431f6
push 0x100f99f8
mov ecx, dword [ebp + 8]
call fcn.10014010
mov edx, dword [ebp - 0x228]
or edx, 1
mov dword [ebp - 0x228], edx
mov eax, dword [ebp + 8]
jmp 0x100432eb
mov dword [ebp - 0x22c], 0
mov eax, dword [ebp - 0x238]
add eax, 1
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.100ec2f9
add esp, 4
mov dword [ebp - 0x254], eax
mov eax, dword [ebp - 0x254]
mov dword [ebp - 0x22c], eax
mov ecx, dword [ebp - 0x238]
lea edx, [ecx + ecx + 2]
push edx
push 0
mov eax, dword [ebp - 0x22c]
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x20c]
push ecx
mov edx, dword [ebp - 0x238]
add edx, 1
push edx
mov eax, dword [ebp - 0x22c]
push eax
call dword [sym.imp.MSVCR120.dll_wcscpy_s]
add esp, 0xc
mov ecx, dword [ebp - 0x23c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0x22c]
push edx
lea ecx, [ebp - 0x224]
call fcn.10014010
cmp dword [ebp - 0x22c], 0
je 0x100432bf
mov eax, dword [ebp - 0x22c]
mov dword [ebp - 0x248], eax
mov ecx, dword [ebp - 0x248]
push ecx
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete___void__]
add esp, 4
mov dword [ebp - 0x22c], 0
lea edx, [ebp - 0x224]
push edx
mov ecx, dword [ebp + 8]
call fcn.10014050
mov eax, dword [ebp - 0x228]
or eax, 1
mov dword [ebp - 0x228], eax
lea ecx, [ebp - 0x224]
call fcn.1000a1c0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100ec36e
mov esp, ebp
pop ebp
ret