Function at 0x10042d88
Capabilities:
Delete registry value
Query or enumerate registry value
Set registry value

Disassembly:
push 0x38
mov eax, 0x10164b7d
call fcn.10163eac
mov edi, edx
mov ebx, ecx
mov dword [ebp - 0x20], ebx
xor eax, eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], eax
lea ecx, [ebp - 0x44]
lea eax, [ebp - 0x18]
push eax
call fcn.1003ef5c
mov esi, dword [ebp - 0x18]
test esi, esi
js 0x10042e3a
cmp dword [ebp - 0x1c], 0
je 0x10042dd5
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
and dword [ebp - 0x1c], 0
push 0
lea eax, [ebp - 0x1c]
mov edx, 0x2001f
push eax
push 0
mov ecx, ebx
call fcn.10113657
mov esi, eax
mov dword [ebp - 0x18], esi
test esi, esi
js 0x10042e3a
push 4
pop ebx
lea eax, [ebp - 0x28]
mov dword [ebp - 0x28], ebx
push eax
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x2c]
push eax
push 0x18
push 0x10018ddc
push 0
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
je 0x10042e2b
jg 0x10042e20
mov esi, eax
jmp 0x10042e35
movzx esi, ax
or esi, 0x80070000
jmp 0x10042e35
cmp dword [ebp - 0x2c], ebx
je 0x10042e4d
mov esi, 0x8000ffff
mov dword [ebp - 0x18], esi
jmp 0x10042e4d
cmp dword [ebp - 0x1c], 0
je 0x10042e4d
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
and dword [ebp - 0x1c], 0
lea ecx, [ebp - 0x44]
call fcn.1003efeb
mov al, byte [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov byte [ebp - 0x11], al
test esi, esi
js 0x10042e9b
test al, al
je 0x10042e68
mov edi, ebx
lea eax, [ebp - 0x28]
push eax
push 4
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x2c]
push eax
push 0x10019094
push edi
call dword [sym.imp.WINSPOOL.DRV_GetPrinterDataW]
test eax, eax
je 0x10042ee5
jg 0x10042e8c
mov esi, eax
jmp 0x10042e95
movzx esi, ax
or esi, 0x80070000
mov dword [ebp - 0x18], esi
mov al, byte [ebp - 0x11]
test al, al
jne 0x10042f6c
test esi, esi
js 0x10042f6c
lea eax, [ebp - 0x28]
mov dword [ebp - 0x28], 4
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x2c]
push eax
push 0x18
push 0x100190bc
push 0
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
cmp eax, 2
je 0x10042f2a
cmp dword [ebp - 0x2c], 4
jne 0x10042f2a
test eax, eax
je 0x10042f25
jg 0x10042f19
mov esi, eax
jmp 0x10042f22
mov eax, dword [ebp - 0x30]
cmp eax, dword [ebp - 0x38]
je 0x10042e98
mov eax, dword [0x101923c0]
cmp eax, 0x101923c0
je 0x10042f12
test byte [eax + 0x44], 4
je 0x10042f12
push dword [eax + 0x3c]
mov edx, 0x1001938c
push dword [eax + 0x38]
push 0x51
pop ecx
call fcn.10040067
mov al, 1
mov byte [ebp - 0x11], al
jmp 0x10042e9b
movzx esi, ax
or esi, 0x80070000
mov dword [ebp - 0x18], esi
mov ecx, dword [ebp - 0x24]
jmp 0x10042f2f
xor ecx, ecx
mov dword [ebp - 0x24], ecx
test esi, esi
js 0x10042f6c
lea eax, [ecx - 1]
cmp eax, 1
ja 0x10042f6c
mov byte [ebp - 0x11], 1
mov edx, dword [0x101923c0]
cmp edx, 0x101923c0
je 0x10042f6c
test byte [edx + 0x44], 4
je 0x10042f6c
push 3
lea eax, [ecx + 1]
push eax
push dword [edx + 0x3c]
push dword [edx + 0x38]
mov edx, 0x1001938c
push 0x52
pop ecx
call fcn.1004026c
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x44]
call fcn.1003ef5c
mov esi, dword [ebp - 0x18]
test esi, esi
js 0x1004303d
push 4
lea eax, [ebp - 0x30]
push eax
push 4
push 0
push 0x10018ddc
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x10042fb1
jg 0x10042fa5
mov esi, eax
jmp 0x10042fae
movzx esi, ax
or esi, 0x80070000
mov dword [ebp - 0x18], esi
test esi, esi
js 0x1004303d
push 0
lea ecx, [ebp - 0x1c]
call fcn.10041064
mov esi, eax
mov dword [ebp - 0x18], esi
test esi, esi
js 0x1004303d
mov eax, dword [ebp - 0x24]
mov edi, dword [ebp - 0x20]
cmp eax, 3
jae 0x10042fdd
inc eax
mov dword [ebp - 0x24], eax
jmp 0x1004300d
mov eax, dword [0x101923c0]
cmp eax, 0x101923c0
je 0x10043005
test byte [eax + 0x44], 4
je 0x10043005
push edi
push 3
push dword [eax + 0x3c]
mov edx, 0x1001938c
push dword [eax + 0x38]
push 0x53
pop ecx
call fcn.10040208
mov esi, 0x80004005
mov dword [ebp - 0x18], esi
push 4
lea eax, [ebp - 0x24]
push eax
push 4
push 0
push 0x100190bc
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x10043040
jg 0x10043032
mov esi, eax
mov dword [ebp - 0x18], esi
jmp 0x10043040
movzx esi, ax
or esi, 0x80070000
jmp 0x1004302d
mov edi, dword [ebp - 0x20]
lea ecx, [ebp - 0x44]
call fcn.1003efeb
mov al, byte [ebp - 0x11]
test al, al
je 0x10043298
test esi, esi
js 0x10043298
mov eax, dword [0x101923c0]
cmp eax, 0x101923c0
je 0x10043081
test byte [eax + 0x44], 4
je 0x10043081
push edi
push dword [eax + 0x3c]
mov edx, 0x1001938c
push dword [eax + 0x38]
push 0x54
pop ecx
call fcn.10040085
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x44]
call fcn.1003ef5c
mov esi, dword [ebp - 0x18]
test esi, esi
js 0x1004309c
mov ecx, dword [ebp - 0x1c]
call fcn.10041652
lea ecx, [ebp - 0x44]
call fcn.1003efeb
test esi, esi
js 0x10043295
mov edx, dword [ebp - 0x1c]
mov ecx, ebx
push 1
push 0
push 0x10018e6c
push 0x1001889c
push 0x10018840
call fcn.1004203b
mov esi, eax
mov dword [ebp - 0x18], esi
test esi, esi
js 0x10043295
mov edx, dword [ebp - 0x1c]
mov ecx, ebx
push 1
push 0
push 0x10018e88
push 0x100188c8
push 0x1001886c
call fcn.1004203b
mov esi, eax
mov dword [ebp - 0x18], esi
test esi, esi
js 0x10043295
mov edx, dword [ebp - 0x1c]
mov ecx, ebx
push 1
push 0
push 0x10018eac
push 0x10018918
push 0x100188f8
call fcn.1004203b
mov esi, eax
mov dword [ebp - 0x18], esi
test esi, esi
js 0x10043295
mov edx, dword [ebp - 0x1c]
mov ecx, ebx
push 0
push 1
push 0
push 0x10018ecc
push 0x100190e4
push 0x10018940
call fcn.10041df2
mov esi, eax
mov dword [ebp - 0x18], esi
test esi, esi
js 0x10043295
mov edx, dword [ebp - 0x1c]
mov ecx, ebx
push 0
push 1
push 0
push 0x10018ef8
push 0x100190f8
push 0x10018968
call fcn.10041df2
mov esi, eax
mov dword [ebp - 0x18], esi
test esi, esi
js 0x10043295
mov edx, dword [ebp - 0x1c]
mov ecx, ebx
push 0
push 1
push 0
push 0x10018f2c
push 0x10019114
push 0x10018998
call fcn.10041df2
mov esi, eax
mov dword [ebp - 0x18], esi
test esi, esi
js 0x10043295
mov edx, dword [ebp - 0x1c]
mov ecx, ebx
push 0
push 1
push 0
push 0x10018f5c
push 0x1001912c
push 0x100189c4
call fcn.10041df2
mov esi, eax
mov dword [ebp - 0x18], esi
test esi, esi
js 0x10043295
mov edx, dword [ebp - 0x1c]
mov eax, 0x10018804
push 0x10018a0c
push 0
push 0
push eax
push 0x10019148
push eax
mov ecx, ebx
call fcn.10041df2
mov esi, eax
mov dword [ebp - 0x18], esi
test esi, esi
js 0x10043295
mov edx, dword [ebp - 0x1c]
xor eax, eax
push eax
push eax
push eax
mov eax, 0x10018828
mov ecx, ebx
push eax
push 0x10019168
push eax
call fcn.10041df2
mov esi, eax
mov dword [ebp - 0x18], esi
test esi, esi
js 0x10043295
mov edx, dword [ebp - 0x1c]
xor eax, eax
push eax
push eax
push eax
mov eax, 0x100189f4
mov ecx, ebx
push eax
push 0x10019184
push eax
call fcn.10041df2
mov esi, eax
mov dword [ebp - 0x18], esi
test esi, esi
js 0x10043295
mov edx, dword [ebp - 0x1c]
xor eax, eax
push eax
push eax
push eax
push 0x10018f90
push 0x100191a4
push 0x10018a6c
mov ecx, ebx
call fcn.10041df2
mov esi, eax
mov dword [ebp - 0x18], esi
test esi, esi
js 0x10043295
mov edx, dword [ebp - 0x1c]
xor eax, eax
push eax
push eax
push eax
mov eax, 0x10018a90
mov ecx, ebx
push eax
push 0x100191d0
push eax
call fcn.10041df2
mov esi, eax
mov dword [ebp - 0x18], esi
mov al, byte [ebp - 0x11]
xor edi, edi
mov dword [ebp - 0x34], edi
mov byte [ebp - 4], 1
test al, al
je 0x100432f2
test esi, esi
js 0x100432f2
mov eax, dword [ebp - 0x20]
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x34]
mov dword [ebp - 0x3c], eax
call fcn.10064ffd
test eax, eax
js 0x100432cf
mov ecx, dword [ebp - 0x34]
call fcn.10063cc0
mov edx, dword [ebp - 0x1c]
mov ecx, ebx
push 0
push 1
push 0x10018e1c
push 0x100187e4
push 0x100187cc
call fcn.1004203b
mov edi, dword [ebp - 0x34]
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 0
test edi, edi
je 0x10043309
mov ecx, edi
call fcn.1003ffe2
push edi
call dword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void__]
pop ecx
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x44]
call fcn.1003ef5c
mov esi, dword [ebp - 0x18]
test esi, esi
js 0x10043336
push 0x100190bc
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push 1
lea ecx, [ebp - 0x1c]
call fcn.10041064
mov esi, eax
lea ecx, [ebp - 0x44]
call fcn.1003efeb
cmp byte [ebp - 0x11], 0
je 0x1004339b
test esi, esi
js 0x10043372
mov eax, dword [0x101923c0]
cmp eax, 0x101923c0
je 0x1004339b
test byte [eax + 0x44], 4
je 0x1004339b
push dword [ebp - 0x20]
mov edx, 0x1001938c
push dword [eax + 0x3c]
push dword [eax + 0x38]
push 0x55
pop ecx
call fcn.10040085
jmp 0x1004339b
mov eax, dword [0x101923c0]
cmp eax, 0x101923c0
je 0x1004339b
test byte [eax + 0x44], 0x80
je 0x1004339b
push esi
push dword [ebp - 0x20]
mov edx, 0x1001938c
push dword [eax + 0x3c]
push dword [eax + 0x38]
push 0x56
pop ecx
call fcn.100400e3
cmp dword [ebp - 0x1c], 0
je 0x100433aa
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
call fcn.10163e7a
ret 0xc