Function at 0x1002c300
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x100a4090
push 0x100a1720
mov eax, dword fs:[0]
push eax
sub esp, 0x140
mov eax, dword [0x100a80a4]
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 0x10004068
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x1002c3e7
lea eax, [ebp - 0x138]
push eax
lea eax, [ebp - 0x130]
push eax
lea eax, [ebp - 0x148]
push eax
push 0
push 0x10005574
push dword [ebp - 0x12c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 0x12c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call fcn.10019a70
test eax, eax
je 0x1002c3fd
cmp dword [ebp - 0x130], 0
jne 0x1002c3fd
xor eax, eax
jmp 0x1002c402
mov eax, pe_nt_image_headers32
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 0x10004068
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x1002c478
lea eax, [ebp - 0x138]
push eax
lea eax, [ebp - 0x130]
push eax
lea eax, [ebp - 0x148]
push eax
push 0
push 0x10005580
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 0x1002c495
mov eax, ecx
or eax, 0x10
mov dword [ebx + 0x224], eax
cmp dword [ebp - 0x130], 0
je 0x1002c4a7
or ecx, 4
mov dword [ebx + 0x220], ecx
mov edi, dword [ebp - 0x13c]
cmp dword [edi + 0x1c], 0
jne 0x1002c501
lea eax, [ebx + 0x1d0]
mov dword [ebp - 0x14c], eax
mov dword [ebp - 0x148], 0
call fcn.10020170
mov esi, dword [0x100a95b0]
test esi, esi
je 0x1002c4fa
lea eax, [ebp - 0x14c]
push eax
push 0x10020510
push 0
push 0
mov ecx, esi
call dword [0x100ae518]
call esi
mov ecx, dword [ebp - 0x148]
jmp 0x1002c4fc
xor ecx, ecx
call fcn.1002a000
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 [0x100ae518]
call esi
test byte [ebx + 0x220], 4
je 0x1002c54b
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 0x1002c5bb
cmp byte [ebp + edx - 0x12c], 0x2e
jne 0x1002c5bb
mov al, byte [ebp + edx - 0x12b]
cmp al, 0x73
je 0x1002c593
cmp al, 0x53
jne 0x1002c5bb
mov al, byte [ebp + edx - 0x12a]
cmp al, 0x63
je 0x1002c5a2
cmp al, 0x43
jne 0x1002c5bb
mov al, byte [ebp + edx - 0x129]
cmp al, 0x72
je 0x1002c5b1
cmp al, 0x52
jne 0x1002c5bb
or dword [ebx + 0x220], 0x10000000
push ebx
mov ecx, dword [ebx + 0x3c]
call fcn.1002d9e0
mov esi, eax
mov dword [ebp - 0x12c], esi
test esi, esi
jne 0x1002c845
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 0x1002c606
cmp dword [ebx + 0x170], 0
je 0x1002c606
or esi, 0x10
movzx eax, si
mov edx, 4
test al, 0x10
je 0x1002c630
test dword [ebx + 0x5c], 0x10000
je 0x1002c61b
or eax, 0x20
mov edx, 5
test al, 0x10
je 0x1002c630
cmp dword [ebx + 0xfc], 0
je 0x1002c630
or eax, 0x40
mov edx, 6
test al, 0x40
je 0x1002c647
test dword [ebx + 0x5c], 0x10000
je 0x1002c647
or eax, 0x80
mov edx, 7
mov ecx, dword [ebx + 0x208]
test ecx, ecx
je 0x1002c657
cmp dword [ecx + 0x30], 0
jne 0x1002c66a
cmp dword [0x100a959c], 0
je 0x1002c66a
or eax, 0x400
mov edx, 0xa
test eax, 0x400
je 0x1002c684
test dword [ebx + 0x5c], 0x10000
je 0x1002c684
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
call fcn.1000efa0
add esp, 4
test eax, eax
je 0x1002c714
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.100246a0
jmp 0x1002c716
xor eax, eax
mov dword [ebx + 0x22c], eax
test eax, eax
je 0x1002c865
push 0
lea ecx, [ebp - 0x12c]
push ecx
push edi
mov ecx, eax
call fcn.10024950
mov esi, dword [ebp - 0x12c]
test esi, esi
js 0x1002c845
cmp dword [edi + 0x20], 0
je 0x1002c79d
push dword [edi + 0x24]
push dword [edi + 8]
mov ecx, ebx
call fcn.1002d160
mov esi, eax
test esi, esi
js 0x1002c845
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.10027b70
add esp, 0x18
mov esi, eax
test esi, esi
js 0x1002c845
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.1002c050
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 0x10004068
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x1002c845
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 0x1000558c
push dword [ebp - 0x144]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1002c839
cmp dword [ebp - 0x140], 4
jne 0x1002c839
cmp dword [ebp - 0x13c], eax
je 0x1002c839
mov dword [ebx + 0x34], 1
push dword [ebp - 0x144]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
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.100a1500
mov esp, ebp
pop ebp
ret 0x20
mov eax, 0x8007000e
jmp 0x1002c847