Function at 0x1002b960
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x100a1760
push 0x1009edc0
mov eax, dword fs:[0]
push eax
sub esp, 0x140
mov eax, dword [0x100a60a4]
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 0x1002ba47
lea eax, [ebp - 0x138]
push eax
lea eax, [ebp - 0x130]
push eax
lea eax, [ebp - 0x148]
push eax
push 0
push 0x100055bc
push dword [ebp - 0x12c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 0x12c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call fcn.10019710
test eax, eax
je 0x1002ba5d
cmp dword [ebp - 0x130], 0
jne 0x1002ba5d
xor eax, eax
jmp 0x1002ba62
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 0x10004090
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x1002bad8
lea eax, [ebp - 0x138]
push eax
lea eax, [ebp - 0x130]
push eax
lea eax, [ebp - 0x148]
push eax
push 0
push 0x100055c8
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 0x1002baf5
mov eax, ecx
or eax, 0x10
mov dword [ebx + 0x224], eax
cmp dword [ebp - 0x130], 0
je 0x1002bb07
or ecx, 4
mov dword [ebx + 0x220], ecx
mov edi, dword [ebp - 0x13c]
cmp dword [edi + 0x1c], 0
jne 0x1002bb61
lea eax, [ebx + 0x1d0]
mov dword [ebp - 0x14c], eax
mov dword [ebp - 0x148], 0
call fcn.1001fcd0
mov esi, dword [0x100a75b8]
test esi, esi
je 0x1002bb5a
lea eax, [ebp - 0x14c]
push eax
push 0x10020030
push 0
push 0
mov ecx, esi
call dword [0x100ac510]
call esi
mov ecx, dword [ebp - 0x148]
jmp 0x1002bb5c
xor ecx, ecx
call fcn.10029780
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 [0x100ac510]
call esi
test byte [ebx + 0x220], 4
je 0x1002bbab
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 0x1002bc1b
cmp byte [ebp + edx - 0x12c], 0x2e
jne 0x1002bc1b
mov al, byte [ebp + edx - 0x12b]
cmp al, 0x73
je 0x1002bbf3
cmp al, 0x53
jne 0x1002bc1b
mov al, byte [ebp + edx - 0x12a]
cmp al, 0x63
je 0x1002bc02
cmp al, 0x43
jne 0x1002bc1b
mov al, byte [ebp + edx - 0x129]
cmp al, 0x72
je 0x1002bc11
cmp al, 0x52
jne 0x1002bc1b
or dword [ebx + 0x220], 0x10000000
push ebx
mov ecx, dword [ebx + 0x3c]
call fcn.1002d040
mov esi, eax
mov dword [ebp - 0x12c], esi
test esi, esi
jne 0x1002bea5
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 0x1002bc66
cmp dword [ebx + 0x170], 0
je 0x1002bc66
or esi, 0x10
movzx eax, si
mov edx, 4
test al, 0x10
je 0x1002bc90
test dword [ebx + 0x5c], 0x10000
je 0x1002bc7b
or eax, 0x20
mov edx, 5
test al, 0x10
je 0x1002bc90
cmp dword [ebx + 0xfc], 0
je 0x1002bc90
or eax, 0x40
mov edx, 6
test al, 0x40
je 0x1002bca7
test dword [ebx + 0x5c], 0x10000
je 0x1002bca7
or eax, 0x80
mov edx, 7
mov ecx, dword [ebx + 0x208]
test ecx, ecx
je 0x1002bcb7
cmp dword [ecx + 0x30], 0
jne 0x1002bcca
cmp dword [0x100a75a4], 0
je 0x1002bcca
or eax, 0x400
mov edx, 0xa
test eax, 0x400
je 0x1002bce4
test dword [ebx + 0x5c], 0x10000
je 0x1002bce4
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 0x1002bd74
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.10024090
jmp 0x1002bd76
xor eax, eax
mov dword [ebx + 0x22c], eax
test eax, eax
je 0x1002bec5
push 0
lea ecx, [ebp - 0x12c]
push ecx
push edi
mov ecx, eax
call fcn.10024320
mov esi, dword [ebp - 0x12c]
test esi, esi
js 0x1002bea5
cmp dword [edi + 0x20], 0
je 0x1002bdfd
push dword [edi + 0x24]
push dword [edi + 8]
mov ecx, ebx
call fcn.1002c7e0
mov esi, eax
test esi, esi
js 0x1002bea5
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.10027470
add esp, 0x18
mov esi, eax
test esi, esi
js 0x1002bea5
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.1002b710
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 0x1002bea5
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 0x100055d4
push dword [ebp - 0x144]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1002be99
cmp dword [ebp - 0x140], 4
jne 0x1002be99
cmp dword [ebp - 0x13c], eax
je 0x1002be99
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.1009ebb0
mov esp, ebp
pop ebp
ret 0x20
mov eax, 0x8007000e
jmp 0x1002bea7