Function at 0x42f290
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
push ebx
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x34], 5
je 0x42f6b6
mov edi, 0xc8
nop word [eax + eax]
mov ecx, esi
call fcn.0042fd50
mov eax, dword [esi + 4]
mov ebx, 0x2bf20
test byte [esi + 0x38], 1
push 0
cmovne ebx, edi
mov edi, dword [eax + 0x418]
call dword [sym.imp.KERNEL32.dll_Sleep]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x42f6c7
lea ebx, [esi + 0x10]
mov dword [ebp - 0x18], 0
lea edx, [ebp - 0x18]
mov dword [ebp - 0x14], 0
mov ecx, ebx
call fcn.00430810
test eax, eax
je 0x42f6c7
mov edx, dword [esi + 0x38]
lea edi, [esi + 0x28]
mov ecx, dword [esi + 0x34]
push edi
push ebx
call fcn.0042f000
mov ecx, dword [edi]
mov dword [esi + 0x34], eax
cmp ecx, dword [ebx]
jne 0x42f32b
mov ecx, dword [edi + 4]
cmp ecx, dword [ebx + 4]
je 0x42f339
mov dword [esi + 0x4c], 0
mov dword [esi + 0x48], 0
test eax, eax
je 0x42f569
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
add eax, 0x9e3b9800
mov edx, eax
mov dword [ebp - 0xc], eax
adc ecx, 0xfffffff7
mov dword [ebp - 0x20], edx
mov eax, ecx
mov dword [ebp - 0x10], ecx
mov ecx, dword [esi + 0x140]
mov dword [ebp - 0x1c], eax
test ecx, ecx
je 0x42f378
mov eax, dword [ecx]
lea edx, [ebp - 0x20]
push edx
call dword [eax + 0x14]
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x20]
cmp dword [esi + 0x44], eax
ja 0x42f6a1
jb 0x42f38c
cmp dword [esi + 0x40], edx
jae 0x42f6a1
cmp dword [esi + 0x34], 1
jne 0x42f4f3
cmp dword [esi + 0x10c], 8
lea edi, [esi + 0xf8]
mov dword [edi + 0x10], 0
jb 0x42f3b0
mov eax, dword [edi]
jmp 0x42f3b2
mov eax, edi
xor ecx, ecx
mov word [eax], cx
lea eax, [esi + 0x110]
cmp dword [eax + 0x14], 8
mov dword [ebp - 8], eax
mov dword [eax + 0x10], ecx
jb 0x42f3cb
mov eax, dword [eax]
xor ecx, ecx
lea ebx, [esi + 0x128]
mov word [eax], cx
cmp dword [ebx + 0x14], 8
mov dword [ebx + 0x10], ecx
jb 0x42f3e3
mov eax, dword [ebx]
jmp 0x42f3e5
mov eax, ebx
xor ecx, ecx
mov word [eax], cx
mov ecx, dword [esi + 0x140]
test ecx, ecx
je 0x42f3f9
mov eax, dword [ecx]
call dword [eax + 0x30]
mov eax, dword [esi + 4]
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x38], eax
mov eax, dword [esi + 8]
push ebx
push dword [ebp - 8]
mov dword [ebp - 0x34], eax
lea eax, [esi + 0x50]
mov dword [ebp - 0x30], eax
mov eax, dword [esi + 0x140]
push edi
mov dword [ebp - 0x2c], eax
call fcn.0041fe70
mov ecx, dword [esi + 0x140]
test ecx, ecx
je 0x42f430
mov eax, dword [ecx]
call dword [eax + 0x18]
mov ecx, dword [esi + 0x140]
test ecx, ecx
je 0x42f45b
mov dword [ebp - 4], 0xffffffff
lea edx, [ebp - 4]
mov eax, dword [ecx]
push edx
push esi
mov eax, dword [eax + 0x1c]
call eax
test al, al
je 0x42f45b
mov eax, dword [ebp - 4]
mov dword [esi + 0x3c], eax
and dword [esi + 0x38], 0xfffffff6
mov eax, dword [esi + 0x3c]
test eax, eax
jne 0x42f4a5
cmp dword [edi + 0x14], 8
mov dword [edi + 0x10], eax
jb 0x42f46d
mov edi, dword [edi]
xor eax, eax
mov word [edi], ax
mov eax, dword [ebp - 8]
cmp dword [eax + 0x14], 8
mov dword [eax + 0x10], 0
jb 0x42f484
mov eax, dword [eax]
xor ecx, ecx
mov word [eax], cx
cmp dword [ebx + 0x14], 8
mov dword [ebx + 0x10], ecx
jb 0x42f494
mov ebx, dword [ebx]
xor eax, eax
mov word [ebx], ax
mov dword [esi + 0x34], 4
jmp 0x42f695
cmp eax, 1
jne 0x42f4f0
mov ecx, dword [esi + 0x140]
test ecx, ecx
je 0x42f4f0
mov eax, dword [ebp - 0xc]
lea edx, [ebp - 8]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x10]
push edx
mov dword [ebp - 0x24], eax
lea edx, [ebp - 0x28]
mov dword [ebp - 8], 0
mov eax, dword [ecx]
push esi
push edx
call dword [eax + 0x20]
cmp dword [ebp - 8], 0
jbe 0x42f4e8
mov dword [esi + 0x34], 1
or dword [esi + 0x38], 0xb
jmp 0x42f4f0
test eax, eax
je 0x42f4f0
or dword [esi + 0x38], 0xd
lea ebx, [esi + 0x10]
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 0x20019
push 0
push str.SoftwareCanonIJPLMInstalledDevice
push 0x80000002
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x42f55c
lea eax, [ebp - 8]
mov dword [ebp - 8], 4
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push 0
push str.NEW_SEND_INFO_AGREE
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
jne 0x42f55c
cmp dword [ebp - 0xc], edi
jne 0x42f569
mov eax, dword [ebx]
mov dword [esi + 0x28], eax
mov eax, dword [ebx + 4]
jmp 0x42f69e
mov eax, dword [esi + 0x34]
cmp eax, 6
ja case.0x42f571.4
jmp dword [eax*4 + 0x42f6d0]
mov dword [esi + 0x34], 1
or dword [esi + 0x38], 0xb
jmp 0x42f695
or dword [esi + 0x38], 2
mov ecx, esi
call fcn.0042f6f0
and dword [esi + 0x38], 0xfffffff4
jmp 0x42f695
inc dword [esi + 0x4c]
mov ecx, esi
call fcn.0042f8b0
jmp 0x42f695
mov ecx, esi
call fcn.0042faa0
and dword [esi + 0x38], 0xfffffff2
jmp 0x42f695
inc dword [esi + 0x48]
mov ecx, esi
call fcn.0042f9d0
jmp 0x42f695
cmp dword [esi + 0x138], 0
je 0x42f5f1
mov eax, dword [ebx]
mov dword [esi + 0x18], eax
mov eax, dword [ebx + 4]
mov dword [esi + 0x34], 6
mov dword [esi + 0x30], 0
mov dword [esi + 0x1c], eax
jmp 0x42f695
lea ecx, [esi + 0x50]
call fcn.00416f30
mov ebx, dword [esi + 0x108]
lea edi, [esi + 0xf8]
test ebx, ebx
jne 0x42f62d
cmp dword [edi + 0x14], ebx
je 0x42f62d
push 1
push ebx
mov ecx, edi
call fcn.0040d8e0
test al, al
je 0x42f62d
cmp dword [edi + 0x14], 8
mov dword [edi + 0x10], ebx
jb 0x42f627
mov edi, dword [edi]
xor eax, eax
mov word [edi + ebx*2], ax
mov ebx, dword [esi + 0x120]
lea edi, [esi + 0x110]
test ebx, ebx
jne 0x42f661
cmp dword [edi + 0x14], ebx
je 0x42f661
push 1
push ebx
mov ecx, edi
call fcn.0040d8e0
test al, al
je 0x42f661
cmp dword [edi + 0x14], 8
mov dword [edi + 0x10], ebx
jb 0x42f65b
mov edi, dword [edi]
xor eax, eax
mov word [edi + ebx*2], ax
mov ebx, dword [esi + 0x138]
lea edi, [esi + 0x128]
test ebx, ebx
jne 0x42f695
cmp dword [edi + 0x14], ebx
je 0x42f695
push 1
push ebx
mov ecx, edi
call fcn.0040d8e0
test al, al
je 0x42f695
cmp dword [edi + 0x14], 8
mov dword [edi + 0x10], ebx
jb 0x42f68f
mov edi, dword [edi]
xor eax, eax
mov word [edi + ebx*2], ax
mov eax, dword [esi + 0x10]
mov dword [esi + 0x28], eax
mov eax, dword [esi + 0x14]
mov dword [esi + 0x2c], eax
cmp dword [esi + 0x34], 5
mov edi, 0xc8
jne 0x42f2b0
cmp dword [esi + 0x34], 5
jne 0x42f6bb
call fcn.0042e9e0
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret