Function at 0x10022f72
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x80
mov eax, 0x1002de65
call fcn.1002b109
mov ecx, dword [ebp + 8]
xor bl, bl
and dword [ebp - 0x70], 0
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
mov edx, dword [ebp + 0x14]
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x84], esi
mov byte [ebp - 0x5d], bl
test ecx, ecx
je 0x10022fa6
and dword [ecx], 0
test eax, eax
je 0x10022fad
and dword [eax], 0
test esi, esi
je 0x10022fb4
and dword [esi], 0
test edx, edx
je 0x10022fbb
and dword [edx], 0
lea eax, [ebp - 0x70]
push eax
push 0x20019
push 0
push str.SoftwareAdobeAcrobatExe
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1002331c
xor ecx, ecx
lea eax, [ebp - 0x64]
push eax
push ecx
lea eax, [ebp - 0x78]
mov dword [ebp - 0x64], ecx
push eax
push ecx
push ecx
push dword [ebp - 0x70]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10023313
cmp dword [ebp - 0x78], 1
jne 0x10023313
mov eax, dword [ebp - 0x64]
xor ecx, ecx
and dword [ebp - 4], 0
shr eax, 1
inc eax
push 2
pop edx
mov dword [ebp - 0x64], eax
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.10019520
mov esi, eax
mov dword [ebp - 0x88], esi
pop ecx
test esi, esi
je 0x10023313
push dword [ebp - 0x64]
push 0
push esi
call fcn.10019520
mov eax, dword [ebp - 0x64]
add esp, 0xc
lea eax, [eax*2 - 2]
mov dword [ebp - 0x64], eax
lea eax, [ebp - 0x64]
push eax
push esi
lea eax, [ebp - 0x78]
push eax
push 0
push 0
push dword [ebp - 0x70]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10023301
cmp dword [ebp - 0x78], 1
jne 0x10023301
mov eax, dword [ebp - 0x64]
shr eax, 1
mov dword [ebp - 0x64], eax
cmp eax, 0x11
jb 0x10023301
push esi
lea ecx, [ebp - 0x44]
call fcn.10019520
cmp dword [ebp - 0x30], 8
lea eax, [ebp - 0x44]
mov byte [ebp - 4], 1
cmovae eax, dword [ebp - 0x44]
push eax
call fcn.10019520
cmp dword [ebp - 0x30], 8
lea ecx, [ebp - 0x44]
mov edi, eax
cmovae ecx, dword [ebp - 0x44]
push ecx
call fcn.10019520
pop ecx
pop ecx
mov esi, eax
lea ecx, [ebp - 0x44]
lea eax, [ebp - 0x7c]
push eax
call fcn.10019520
push dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_towlower]
push edi
push dword [eax]
lea eax, [ebp - 0x74]
push esi
push eax
call fcn.10019520
and dword [ebp - 0x68], 0
lea eax, [ebp - 0x6c]
and dword [ebp - 0x6c], 0
add esp, 0x14
push eax
lea eax, [ebp - 0x68]
push eax
call fcn.100223c5
or eax, 0xffffffff
or esi, 0xffffffff
cmp dword [ebp - 0x68], 0
pop ecx
pop ecx
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x7c], esi
je 0x1002318b
push dword [ebp - 0x68]
lea ecx, [ebp - 0x2c]
call fcn.10019520
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 2
cmovae eax, dword [ebp - 0x2c]
push eax
call fcn.10019520
cmp dword [ebp - 0x18], 8
lea ecx, [ebp - 0x2c]
mov edi, eax
cmovae ecx, dword [ebp - 0x2c]
push ecx
call fcn.10019520
pop ecx
pop ecx
mov esi, eax
lea ecx, [ebp - 0x2c]
lea eax, [ebp - 0x74]
push eax
call fcn.10019520
push dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_towlower]
push edi
push dword [eax]
lea eax, [ebp - 0x8c]
push esi
push eax
call fcn.10019520
add esp, 0x14
lea eax, [ebp - 0x2c]
lea ecx, [ebp - 0x44]
push 0xffffffffffffffff
push eax
call fcn.10019520
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x74], eax
mov byte [ebp - 4], 1
call fcn.100031e4
mov esi, dword [ebp - 0x7c]
cmp dword [ebp - 0x6c], 0
je 0x10023209
push dword [ebp - 0x6c]
lea ecx, [ebp - 0x2c]
call fcn.10019520
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 3
cmovae eax, dword [ebp - 0x2c]
push eax
call fcn.10019520
cmp dword [ebp - 0x18], 8
lea ecx, [ebp - 0x2c]
mov edi, eax
cmovae ecx, dword [ebp - 0x2c]
push ecx
call fcn.10019520
pop ecx
pop ecx
mov esi, eax
lea ecx, [ebp - 0x2c]
lea eax, [ebp - 0x8c]
push eax
call fcn.10019520
push dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_towlower]
push edi
push dword [eax]
lea eax, [ebp - 0x7c]
push esi
push eax
call fcn.10019520
add esp, 0x14
lea eax, [ebp - 0x2c]
lea ecx, [ebp - 0x44]
push 0xffffffffffffffff
push eax
call fcn.10019520
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 1
mov esi, eax
call fcn.100031e4
cmp dword [ebp - 0x68], 0
je 0x10023218
push dword [ebp - 0x68]
call fcn.1002b601
pop ecx
cmp dword [ebp - 0x6c], 0
je 0x10023227
push dword [ebp - 0x6c]
call fcn.1002b601
pop ecx
mov eax, dword [ebp - 0x74]
cmp eax, 0xffffffff
jne 0x10023239
cmp esi, eax
je 0x100232f3
cmp eax, eax
push str.adobe_reader
lea ecx, [ebp - 0x5c]
cmovne esi, eax
call fcn.10019520
push esi
lea eax, [ebp - 0x5c]
mov byte [ebp - 4], 4
push eax
lea ecx, [ebp - 0x44]
call fcn.10019520
cmp eax, 0xffffffff
je 0x100232eb
mov ecx, dword [ebp - 0x80]
test ecx, ecx
je 0x10023270
mov dword [ecx], 1
mov esi, dword [ebp - 0x84]
mov bl, 1
mov byte [ebp - 0x5d], bl
test esi, esi
je 0x100232eb
push eax
push 0x10030fe0
lea ecx, [ebp - 0x44]
call fcn.10019520
cmp eax, 0xffffffff
jne 0x10023296
xor bl, bl
jmp 0x100232eb
and dword [ebp - 0x1c], 0
add eax, 0xfffffffe
push 2
xor ecx, ecx
mov dword [ebp - 0x18], 7
push eax
lea eax, [ebp - 0x44]
mov word [ebp - 0x2c], cx
push eax
lea ecx, [ebp - 0x2c]
call fcn.10019520
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__wtol]
shl eax, 0x10
mov dword [esi], eax
mov eax, dword [ebp - 0x18]
pop ecx
cmp eax, 8
jb 0x100232eb
lea eax, [eax*2 + 2]
push eax
push dword [ebp - 0x2c]
call fcn.10019520
pop ecx
pop ecx
lea ecx, [ebp - 0x5c]
call fcn.100031e4
lea ecx, [ebp - 0x44]
call fcn.100031e4
mov esi, dword [ebp - 0x88]
push esi
call fcn.1002b601
pop ecx
jmp 0x10023313
push dword [ebp - 0x70]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
movzx eax, bl
call fcn.1002b056
ret