Function at 0x1002a4dc
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x98c
mov eax, dword [0x100e5bc8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 0x23
mov ebx, ecx
pop ecx
mov dword [ebp - 0x96c], esi
mov dword [ebp - 0x980], eax
push 0x20
xor eax, eax
mov esi, str.SYSTEMCurrentControlSetControlPrintMonitorsCanon_BJNP_PortPorts
lea edi, [ebp - 0x418]
rep movsd dword es:[edi], dword [esi]
pop ecx
inc eax
push 0x80
mov dword [ebp - 0x968], eax
lea eax, [ebp - 0x960]
push eax
mov esi, str.SYSTEMCurrentControlSetControlPrintMonitorsCanon_BJNP_Port
lea edi, [ebp - 0x30c]
push 0x189
push dword [0x100ea5d8]
rep movsd dword es:[edi], dword [esi]
xor edi, edi
mov dword [ebp - 0x974], edi
call dword [sym.imp.USER32.dll_LoadStringW]
lea eax, [ebp - 0x964]
push eax
push 0x20019
push edi
lea eax, [ebp - 0x418]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1002a605
lea eax, [ebp - 0x98c]
push eax
push edi
push edi
push edi
push edi
push edi
push edi
lea eax, [ebp - 0x974]
push eax
push edi
push edi
push edi
push dword [ebp - 0x964]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
push dword [ebp - 0x964]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
lea eax, [ebp - 0x964]
push eax
push 0x20019
push edi
lea eax, [ebp - 0x30c]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1002a605
lea eax, [ebp - 0x97c]
push eax
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x984]
push eax
push edi
push str.PMVersion
push dword [ebp - 0x964]
mov dword [ebp - 0x97c], 0x40
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x964]
call esi
mov esi, dword [ebp - 0x96c]
lea eax, [ebx + 0x3450]
push eax
push dword [ebp + 0xc]
mov dword [ebp - 0x978], eax
push esi
call fcn.100779ee
add esp, 0xc
lea eax, [ebp - 0x28c]
push 0x104
push eax
push 0x12f
push dword [0x100ea5d8]
call dword [sym.imp.USER32.dll_LoadStringW]
lea eax, [ebp - 0x28c]
push eax
push dword [ebp + 0xc]
push esi
call fcn.100779ee
lea eax, [ebx + 0x3450]
push eax
push dword [ebp + 0xc]
push esi
call fcn.100779ee
add esp, 0x18
lea eax, [ebp - 0x28c]
push 0x104
push eax
push 0x130
push dword [0x100ea5d8]
call dword [sym.imp.USER32.dll_LoadStringW]
lea eax, [ebp - 0x28c]
push eax
push dword [ebp + 0xc]
push esi
call fcn.100779ee
lea eax, [ebx + 0x3450]
push eax
push dword [ebp + 0xc]
push esi
call fcn.100779ee
add esp, 0x18
lea eax, [ebp - 0x28c]
push 0x104
push eax
push 0x12f
push dword [0x100ea5d8]
call dword [sym.imp.USER32.dll_LoadStringW]
lea eax, [ebp - 0x28c]
push eax
push dword [ebp + 0xc]
push esi
call fcn.100779ee
lea eax, [ebx + 0x3450]
push eax
push dword [ebp + 0xc]
push esi
call fcn.100779ee
lea eax, [ebx + 0x2bec]
add esp, 0x18
test eax, eax
je 0x1002a707
push 0x104
push eax
call fcn.100779cf
pop ecx
pop ecx
test eax, eax
je 0x1002a707
lea eax, [ebx + 0x2bec]
jmp 0x1002a730
cmp dword [ebx + 0x28], 2
jne 0x1002a742
push 0x104
lea eax, [ebp - 0x28c]
push eax
push 0x184
push dword [0x100ea5d8]
call dword [sym.imp.USER32.dll_LoadStringW]
lea eax, [ebp - 0x28c]
push edi
push eax
push 0x131
push dword [ebp + 0xc]
mov ecx, ebx
push esi
call fcn.1002bdca
cmp dword [ebp - 0x974], edi
je 0x1002a8f2
cmp dword [ebx + 0x340c], edi
je 0x1002a8bc
cmp dword [ebx + 0x28], 2
jne 0x1002a81d
xor eax, eax
inc eax
mov dword [ebp - 0x968], eax
mov dword [ebp - 0x970], eax
cmp dword [ebx + 0x204c], edi
je 0x1002a7c6
push 0x104
lea eax, [ebp - 0x28c]
push eax
push 0xffffffffffffffff
lea eax, [ebx + 0x20ec]
push eax
push edi
push edi
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea eax, [ebp - 0x970]
push eax
push edi
push 0x186
push 1
push edi
lea eax, [ebp - 0x28c]
push eax
push dword [ebp + 0xc]
mov ecx, ebx
push esi
call fcn.1002c09b
mov eax, dword [ebp - 0x970]
mov dword [ebp - 0x968], eax
cmp dword [ebx + 0x24d4], edi
je 0x1002a8d4
push 0x104
lea eax, [ebp - 0x28c]
push eax
push 0xffffffffffffffff
lea eax, [ebx + 0x2574]
push eax
push edi
push edi
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea eax, [ebp - 0x970]
push eax
push edi
push 0x186
push 1
push 1
lea eax, [ebp - 0x28c]
push eax
push dword [ebp + 0xc]
mov ecx, ebx
push esi
call fcn.1002c09b
mov eax, dword [ebp - 0x970]
jmp 0x1002a8da
push 0x40
lea eax, [ebp - 0x84]
push eax
push dword [ebx + 0x34]
call fcn.1004541e
pop ecx
push eax
call fcn.1004544e
add esp, 0xc
lea eax, [ebp - 0x28c]
push 0x104
push eax
push 0xffffffffffffffff
lea eax, [ebx + 0x2564]
push eax
push edi
push edi
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0x40
lea eax, [ebp - 0x38c]
push eax
lea eax, [ebp - 0x84]
push eax
lea eax, [ebp - 0x28c]
push eax
call fcn.1007835a
neg eax
sbb eax, eax
pop ecx
neg eax
pop ecx
add eax, 0x187
push eax
push dword [0x100ea5d8]
call dword [sym.imp.USER32.dll_LoadStringW]
lea eax, [ebp - 0x38c]
push eax
lea eax, [ebp - 0x84]
push eax
lea eax, [ebx + 0x2bec]
push eax
lea eax, [ebp - 0x860]
push 0x100a6620
push eax
call fcn.1002cfe2
add esp, 0x14
lea eax, [ebp - 0x860]
jmp 0x1002a8c2
lea eax, [ebx + 0x3430]
push edi
push eax
push 0x186
push dword [ebp + 0xc]
mov ecx, ebx
push esi
call fcn.1002bdca
mov eax, dword [ebp - 0x968]
cmp dword [ebx + 0x28], 1
jne 0x1002a8ec
push edi
lea eax, [ebp - 0x44]
push eax
push 0x132
jmp 0x1002a8fd
test eax, eax
jne 0x1002a908
jmp 0x1002a8e0
push edi
push 0x100a66f0
push 0x186
push dword [ebp + 0xc]
mov ecx, ebx
push esi
call fcn.1002bdca
lea eax, [ebx + 0x2ffc]
test eax, eax
je 0x1002a929
push 0x104
push eax
call fcn.100779cf
pop ecx
test eax, eax
pop ecx
lea eax, [ebx + 0x2ffc]
jne 0x1002a92f
lea eax, [ebx + 0x3430]
push edi
push eax
push 0x133
push dword [ebp + 0xc]
mov ecx, ebx
push esi
call fcn.1002bdca
lea eax, [ebx + 0x3204]
test eax, eax
je 0x1002a962
push 0x104
push eax
call fcn.100779cf
pop ecx
test eax, eax
pop ecx
lea eax, [ebx + 0x3204]
jne 0x1002a968
lea eax, [ebx + 0x3430]
push edi
push eax
push 0x134
push dword [ebp + 0xc]
mov ecx, ebx
push esi
call fcn.1002bdca
push str._16_
mov esi, 0x100
lea eax, [ebp - 0x618]
push esi
push eax
call fcn.10077973
lea eax, [ebp - 0x618]
push esi
push eax
call fcn.100779cf
mov esi, eax
lea eax, [ebp - 0x618]
push 0x100
push eax
call fcn.100779cf
add esp, 0x1c
mov ecx, 0x100
sub ecx, esi
lea esi, [ebp - 0x618]
push ecx
lea eax, [esi + eax*2]
mov esi, dword [sym.imp.USER32.dll_LoadStringW]
push eax
push 0x138
push dword [0x100ea5d8]
call esi
push 0x104
lea eax, [ebp - 0x28c]
push eax
push 0x12d
push dword [0x100ea5d8]
call esi
lea eax, [ebp - 0x618]
push 0x100
push eax
call fcn.100779cf
add eax, eax
push eax
lea eax, [ebp - 0x618]
push eax
lea eax, [ebp - 0x28c]
push 0x208
push eax
call fcn.10074484
mov esi, dword [ebp - 0x96c]
lea eax, [ebp - 0x28c]
push eax
push dword [ebp + 0xc]
push esi
call fcn.100779ee
lea eax, [ebx + 0x2df4]
add esp, 0x24
mov dword [ebp - 0x96c], eax
test eax, eax
je 0x1002aa60
push 0x104
push eax
call fcn.100779cf
pop ecx
pop ecx
test eax, eax
je 0x1002aa60
push dword [ebp - 0x96c]
jmp 0x1002aa92
cmp dword [ebx + 0x28], 2
jne 0x1002aa8b
push 0x104
lea eax, [ebp - 0x28c]
push eax
push 0x185
push dword [0x100ea5d8]
call dword [sym.imp.USER32.dll_LoadStringW]
lea eax, [ebp - 0x28c]
jmp 0x1002aa91
lea eax, [ebx + 0x3430]
push eax
push dword [ebp + 0xc]
push esi
call fcn.100779ee
mov ebx, dword [ebp - 0x978]
add esp, 0xc
push ebx
push dword [ebp + 0xc]
push esi
call fcn.100779ee
push ebx
push dword [ebp + 0xc]
push esi
call fcn.100779ee
add esp, 0x18
test esi, esi
je 0x1002aacc
push dword [ebp + 0xc]
push esi
call fcn.100779cf
pop ecx
pop ecx
mov edi, eax
mov ecx, dword [ebp - 0x980]
lea eax, [edi*2 + 2]
mov dword [ecx], eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10075551
leave
ret 0xc