Function at 0x42f280
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 0x42f6a6
mov edi, 0xc8
nop word [eax + eax]
mov ecx, esi
call fcn.0042fd40
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 0x42f6b7
lea ebx, [esi + 0x10]
mov dword [ebp - 0x18], 0
lea edx, [ebp - 0x18]
mov dword [ebp - 0x14], 0
mov ecx, ebx
call fcn.00430800
test eax, eax
je 0x42f6b7
mov edx, dword [esi + 0x38]
lea edi, [esi + 0x28]
mov ecx, dword [esi + 0x34]
push edi
push ebx
call fcn.0042eff0
mov ecx, dword [edi]
mov dword [esi + 0x34], eax
cmp ecx, dword [ebx]
jne 0x42f31b
mov ecx, dword [edi + 4]
cmp ecx, dword [ebx + 4]
je 0x42f329
mov dword [esi + 0x4c], 0
mov dword [esi + 0x48], 0
test eax, eax
je 0x42f559
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 0x42f368
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 0x42f691
jb 0x42f37c
cmp dword [esi + 0x40], edx
jae 0x42f691
cmp dword [esi + 0x34], 1
jne 0x42f4e3
cmp dword [esi + 0x10c], 8
lea edi, [esi + 0xf8]
mov dword [edi + 0x10], 0
jb 0x42f3a0
mov eax, dword [edi]
jmp 0x42f3a2
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 0x42f3bb
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 0x42f3d3
mov eax, dword [ebx]
jmp 0x42f3d5
mov eax, ebx
xor ecx, ecx
mov word [eax], cx
mov ecx, dword [esi + 0x140]
test ecx, ecx
je 0x42f3e9
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.0041fe50
mov ecx, dword [esi + 0x140]
test ecx, ecx
je 0x42f420
mov eax, dword [ecx]
call dword [eax + 0x18]
mov ecx, dword [esi + 0x140]
test ecx, ecx
je 0x42f44b
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 0x42f44b
mov eax, dword [ebp - 4]
mov dword [esi + 0x3c], eax
and dword [esi + 0x38], 0xfffffff6
mov eax, dword [esi + 0x3c]
test eax, eax
jne 0x42f495
cmp dword [edi + 0x14], 8
mov dword [edi + 0x10], eax
jb 0x42f45d
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 0x42f474
mov eax, dword [eax]
xor ecx, ecx
mov word [eax], cx
cmp dword [ebx + 0x14], 8
mov dword [ebx + 0x10], ecx
jb 0x42f484
mov ebx, dword [ebx]
xor eax, eax
mov word [ebx], ax
mov dword [esi + 0x34], 4
jmp 0x42f685
cmp eax, 1
jne 0x42f4e0
mov ecx, dword [esi + 0x140]
test ecx, ecx
je 0x42f4e0
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 0x42f4d8
mov dword [esi + 0x34], 1
or dword [esi + 0x38], 0xb
jmp 0x42f4e0
test eax, eax
je 0x42f4e0
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 0x42f54c
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 0x42f54c
cmp dword [ebp - 0xc], edi
jne 0x42f559
mov eax, dword [ebx]
mov dword [esi + 0x28], eax
mov eax, dword [ebx + 4]
jmp 0x42f68e
mov eax, dword [esi + 0x34]
cmp eax, 6
ja case.0x42f561.4
jmp dword [eax*4 + 0x42f6c0]
mov dword [esi + 0x34], 1
or dword [esi + 0x38], 0xb
jmp 0x42f685
or dword [esi + 0x38], 2
mov ecx, esi
call fcn.0042f6e0
and dword [esi + 0x38], 0xfffffff4
jmp 0x42f685
inc dword [esi + 0x4c]
mov ecx, esi
call fcn.0042f8a0
jmp 0x42f685
mov ecx, esi
call fcn.0042fa90
and dword [esi + 0x38], 0xfffffff2
jmp 0x42f685
inc dword [esi + 0x48]
mov ecx, esi
call fcn.0042f9c0
jmp 0x42f685
cmp dword [esi + 0x138], 0
je 0x42f5e1
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 0x42f685
lea ecx, [esi + 0x50]
call fcn.00416f30
mov ebx, dword [esi + 0x108]
lea edi, [esi + 0xf8]
test ebx, ebx
jne 0x42f61d
cmp dword [edi + 0x14], ebx
je 0x42f61d
push 1
push ebx
mov ecx, edi
call fcn.0040d8e0
test al, al
je 0x42f61d
cmp dword [edi + 0x14], 8
mov dword [edi + 0x10], ebx
jb 0x42f617
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 0x42f651
cmp dword [edi + 0x14], ebx
je 0x42f651
push 1
push ebx
mov ecx, edi
call fcn.0040d8e0
test al, al
je 0x42f651
cmp dword [edi + 0x14], 8
mov dword [edi + 0x10], ebx
jb 0x42f64b
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 0x42f685
cmp dword [edi + 0x14], ebx
je 0x42f685
push 1
push ebx
mov ecx, edi
call fcn.0040d8e0
test al, al
je 0x42f685
cmp dword [edi + 0x14], 8
mov dword [edi + 0x10], ebx
jb 0x42f67f
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 0x42f2a0
cmp dword [esi + 0x34], 5
jne 0x42f6ab
call fcn.0042e9d0
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