Function at 0x1002b350
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x1009e150
push 0x1009b820
mov eax, dword fs:[0]
push eax
sub esp, 0x140
mov eax, dword [0x100a20a4]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov ebx, ecx
mov esi, dword [ebp + 8]
mov dword [ebp - 0x140], esi
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x13c], eax
mov edx, dword [ebp + 0x20]
mov dword [ebp - 0x134], edx
mov dword [ebp - 0x130], 0
lea edi, [ebx + 0x40]
mov ecx, 0x77
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp + 0x10]
mov dword [ebx + 0x21c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebx + 0x238], eax
mov dword [ebx + 0x23c], edx
mov dword [ebp - 0x138], 4
mov dword [ebp - 0x12c], 0
lea eax, [ebp - 0x12c]
push eax
push 0x10004090
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x1002b437
lea eax, [ebp - 0x138]
push eax
lea eax, [ebp - 0x130]
push eax
lea eax, [ebp - 0x148]
push eax
push 0
push 0x1000558c
push dword [ebp - 0x12c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 0x12c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call fcn.10019260
test eax, eax
je 0x1002b44d
cmp dword [ebp - 0x130], 0
jne 0x1002b44d
xor eax, eax
jmp 0x1002b452
mov eax, 0x100
or eax, dword [ebp + 0x14]
mov dword [ebx + 0x220], eax
mov dword [ebp - 0x130], 0
mov dword [ebp - 0x138], 4
mov dword [ebp - 0x12c], 0
lea eax, [ebp - 0x12c]
push eax
push 0x10004090
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x1002b4c8
lea eax, [ebp - 0x138]
push eax
lea eax, [ebp - 0x130]
push eax
lea eax, [ebp - 0x148]
push eax
push 0
push 0x10005598
push dword [ebp - 0x12c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 0x12c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebx + 0x220]
mov dword [ebx + 0x224], ecx
cmp dword [ebp + 0x24], 0
je 0x1002b4e5
mov eax, ecx
or eax, 0x10
mov dword [ebx + 0x224], eax
cmp dword [ebp - 0x130], 0
je 0x1002b4f7
or ecx, 4
mov dword [ebx + 0x220], ecx
mov edi, dword [ebp - 0x13c]
cmp dword [edi + 0x1c], 0
jne 0x1002b551
lea eax, [ebx + 0x1d0]
mov dword [ebp - 0x14c], eax
mov dword [ebp - 0x148], 0
call fcn.1001f670
mov esi, dword [0x100a3590]
test esi, esi
je 0x1002b54a
lea eax, [ebp - 0x14c]
push eax
push 0x1001f9d0
push 0
push 0
mov ecx, esi
call dword [0x100a8504]
call esi
mov ecx, dword [ebp - 0x148]
jmp 0x1002b54c
xor ecx, ecx
call fcn.10029180
push dword [ebp - 0x140]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [ebp - 0x134]
mov eax, dword [ecx]
push ecx
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x100a8504]
call esi
test byte [ebx + 0x220], 4
je 0x1002b59b
mov dword [ebp - 4], 0
lea eax, [ebx + 4]
mov dword [eax + 0x18], 1
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [ebp - 4], 0xfffffffe
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov byte [ebp - 0x128], 0
push 0x103
lea ecx, [ebp - 0x128]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov edx, eax
lea ecx, [edx - 5]
cmp ecx, 0xff
ja 0x1002b60b
cmp byte [ebp + edx - 0x12c], 0x2e
jne 0x1002b60b
mov al, byte [ebp + edx - 0x12b]
cmp al, 0x73
je 0x1002b5e3
cmp al, 0x53
jne 0x1002b60b
mov al, byte [ebp + edx - 0x12a]
cmp al, 0x63
je 0x1002b5f2
cmp al, 0x43
jne 0x1002b60b
mov al, byte [ebp + edx - 0x129]
cmp al, 0x72
je 0x1002b601
cmp al, 0x52
jne 0x1002b60b
or dword [ebx + 0x220], 0x10000000
push ebx
mov ecx, dword [ebx + 0x3c]
call fcn.1002ca30
mov dword [ebp - 0x12c], eax
test eax, eax
jne 0x1002b89a
mov ecx, dword [ebx + 0x16c]
mov edx, ecx
neg edx
sbb edx, edx
and edx, 3
mov eax, ecx
neg eax
sbb eax, eax
and eax, 8
mov esi, eax
test ecx, ecx
je 0x1002b654
cmp dword [ebx + 0x170], 0
je 0x1002b654
or esi, 0x10
movzx eax, si
mov edx, 4
test al, 0x10
je 0x1002b67e
test dword [ebx + 0x5c], 0x10000
je 0x1002b669
or eax, 0x20
mov edx, 5
test al, 0x10
je 0x1002b67e
cmp dword [ebx + 0xfc], 0
je 0x1002b67e
or eax, 0x40
mov edx, 6
test al, 0x40
je 0x1002b695
test dword [ebx + 0x5c], 0x10000
je 0x1002b695
or eax, 0x80
mov edx, 7
mov ecx, dword [ebx + 0x208]
test ecx, ecx
je 0x1002b6a5
cmp dword [ecx + 0x30], 0
jne 0x1002b6b8
cmp dword [0x100a357c], 0
je 0x1002b6b8
or eax, 0x400
mov edx, 0xa
test eax, 0x400
je 0x1002b6d2
test dword [ebx + 0x5c], 0x10000
je 0x1002b6d2
or eax, 0x800
mov edx, 0xb
movzx eax, ax
neg eax
sbb eax, eax
and eax, edx
mov dword [ebx + 0x28], eax
mov eax, dword [ebx + 0x118]
mov dword [ebx + 0x244], eax
mov eax, dword [ebx + 0x114]
mov dword [ebx + 0x240], eax
mov eax, dword [ebx + 0x11c]
mov dword [ebx + 0x24c], eax
mov eax, dword [ebx + 0x124]
mov dword [ebx + 0x248], eax
push 0x7e0
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
test eax, eax
je 0x1002b762
mov ecx, eax
and ecx, 0x1f
mov edx, 0x20
sub edx, ecx
lea ecx, [eax + edx]
mov dword [ecx - 4], edx
push 1
push ebx
call fcn.10023a40
jmp 0x1002b764
xor eax, eax
mov dword [ebx + 0x22c], eax
test eax, eax
je 0x1002b895
push 0
lea ecx, [ebp - 0x12c]
push ecx
push edi
mov ecx, eax
call fcn.10023cd0
mov esi, dword [ebp - 0x12c]
test esi, esi
js 0x1002b891
cmp dword [edi + 0x20], 0
je 0x1002b7e9
push dword [edi + 0x24]
push dword [edi + 8]
mov ecx, ebx
call fcn.1002c1d0
test eax, eax
js 0x1002b89a
mov eax, dword [ebx + 0x22c]
lea ecx, [ebp - 0x134]
push ecx
push 1
push dword [edi + 0x10]
push dword [edi + 0x24]
push 2
push dword [eax + 0x38]
mov edx, dword [eax + 0x34]
mov ecx, ebx
call fcn.10026e20
add esp, 0x18
mov esi, eax
test esi, esi
js 0x1002b891
mov eax, dword [ebp - 0x134]
mov dword [ebx + 0x234], eax
mov eax, dword [ebx + 0x22c]
mov eax, dword [eax + 0x2c]
mov ecx, dword [eax]
push dword [ebx + 0x234]
lea eax, [ecx + 0x1c]
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
mov ecx, ebx
call fcn.1002b100
mov eax, dword [ebx + 0x22c]
xor ecx, ecx
cmp dword [eax + 0x50], ecx
sete cl
mov dword [ebx + 0x30], ecx
lea eax, [ebp - 0x144]
push eax
push 0x10004090
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x1002b891
mov dword [ebp - 0x134], 4
lea eax, [ebp - 0x134]
push eax
lea eax, [ebp - 0x13c]
push eax
lea eax, [ebp - 0x140]
push eax
push 0
push 0x100055a4
push dword [ebp - 0x144]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1002b885
cmp dword [ebp - 0x140], 4
jne 0x1002b885
cmp dword [ebp - 0x13c], eax
je 0x1002b885
mov dword [ebx + 0x34], 1
push dword [ebp - 0x144]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x1002b89a
mov eax, 0x8007000e
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.1009b610
mov esp, ebp
pop ebp
ret 0x20