Function at 0x4027f0
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x415632
mov eax, dword fs:[0]
push eax
sub esp, 0x1c4
mov eax, dword [0x41e008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, 0x20019
mov dword [ebp - 0x1a0], 0
push str.kernel32
mov dword [ebp - 0x1b0], ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x402868
push str.IsWow64Process
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x402868
lea eax, [ebp - 0x1a0]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
test eax, eax
je 0x40287d
cmp dword [ebp - 0x1a0], 0
mov eax, 0x20219
cmovne ebx, eax
mov dword [ebp - 0x1b0], ebx
lea eax, [ebp - 0x19c]
mov dword [ebp - 0x19c], 0
push eax
push ebx
push 0
push str.SoftwareCanonIJPLMInstalledDevice
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push dword [ebp - 0x1ac]
mov edx, dword [0x41f950]
mov esi, eax
push ecx
mov ecx, dword [0x41f94c]
call fcn.00404cc0
mov ecx, dword [0x41f94c]
xor edi, edi
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esp, 8
mov dword [0x41f950], ecx
mov dword [ebp - 0x1a0], edi
test esi, esi
jne 0x402e5d
push 0x80
lea eax, [ebp - 0x110]
push 0
push eax
call fcn.00406cf0
add esp, 0xc
lea eax, [ebp - 0x110]
push 0x40
push eax
push edi
push dword [ebp - 0x19c]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
mov dword [ebp - 0x1b8], eax
test eax, eax
jne 0x402e4e
push 0x80
push eax
lea eax, [ebp - 0x90]
push eax
call fcn.00406cf0
push 0x20c
call fcn.0040505f
mov ebx, eax
push 0x80
push 0
push ebx
mov dword [ebp - 0x1a8], ebx
mov dword [ebx + 0x200], 0
mov dword [ebx + 0x204], 0
mov dword [ebx + 0x208], 0
call fcn.00406cf0
push 0x80
lea esi, [ebx + 0x80]
push 0
push esi
call fcn.00406cf0
push 0x80
lea edi, [ebx + 0x100]
push 0
push edi
call fcn.00406cf0
push 0x80
add ebx, 0x180
push 0
push ebx
call fcn.00406cf0
mov eax, dword [ebp - 0x1a8]
add esp, 0x40
push dword [ebp - 0x1ac]
mov edx, dword [eax + 0x204]
push ecx
mov ecx, dword [eax + 0x200]
call fcn.00404cc0
mov edx, dword [ebp - 0x1a8]
add esp, 8
mov eax, dword [edx + 0x200]
lea ecx, [edx + 0x200]
mov dword [ecx + 4], eax
test edx, edx
je 0x402e3c
push 0x40
lea eax, [ebp - 0x110]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
lea eax, [ebp - 0x194]
mov dword [ebp - 0x198], 0x40
push eax
push 0x20019
push 0
lea eax, [ebp - 0x110]
mov dword [ebp - 0x194], 0
push eax
push dword [ebp - 0x19c]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x402a5f
lea eax, [ebp - 0x198]
push eax
lea eax, [ebp - 0x90]
push eax
push 0
push 0
push str.ENQTYPE
push dword [ebp - 0x194]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x194]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
jmp 0x402a65
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x40
lea eax, [ebp - 0x90]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
lea eax, [ebp - 0x194]
mov dword [ebp - 0x198], 0x40
push eax
push 0x20019
push 0
lea eax, [ebp - 0x110]
mov dword [ebp - 0x194], 0
push eax
push dword [ebp - 0x19c]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x402adb
lea eax, [ebp - 0x198]
push eax
lea eax, [ebp - 0x90]
push eax
push 0
push 0
push str.DEVICENAME
push dword [ebp - 0x194]
call edi
push dword [ebp - 0x194]
call esi
push 0x40
lea eax, [ebp - 0x90]
push eax
push dword [ebp - 0x1a8]
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
lea eax, [ebp - 0x194]
mov dword [ebp - 0x198], 0x40
push eax
push 0x20019
push 0
lea eax, [ebp - 0x110]
mov dword [ebp - 0x194], 0
push eax
push dword [ebp - 0x19c]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x402b50
lea eax, [ebp - 0x198]
push eax
lea eax, [ebp - 0x90]
push eax
push 0
push 0
push str.DISP_WARNING
push dword [ebp - 0x194]
call edi
push dword [ebp - 0x194]
call esi
push 0x40
lea eax, [ebp - 0x90]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
push 0x80
lea eax, [ebp - 0x190]
mov dword [ebp - 0x1a4], 0
push 0
push eax
call fcn.00406cf0
add esp, 0xc
lea eax, [ebp - 0x1a4]
push eax
push dword [ebp - 0x1b0]
lea eax, [ebp - 0x110]
push 0
push eax
push dword [ebp - 0x19c]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x402dc3
xor ebx, ebx
nop dword [eax]
push 0x40
lea eax, [ebp - 0x190]
push eax
push ebx
push dword [ebp - 0x1a4]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
mov dword [ebp - 0x1ac], eax
test eax, eax
jne 0x402daa
push 0x104
call fcn.0040505f
push 0x80
mov edi, eax
push 0
push edi
mov dword [ebp - 0x198], edi
call fcn.00406cf0
push 0x80
lea esi, [edi + 0x84]
mov dword [edi + 0x80], 0xffffffff
push 0
push esi
call fcn.00406cf0
add esp, 0x1c
lea eax, [ebp - 0x190]
push 0x40
push eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
push 0x40
lea eax, [ebp - 0x90]
push 0
push eax
call fcn.00406cf0
add esp, 0xc
mov dword [ebp - 0x198], 0x40
lea eax, [ebp - 0x194]
mov dword [ebp - 0x194], 0
push eax
push 0x20019
push 0
lea eax, [ebp - 0x190]
push eax
push dword [ebp - 0x1a4]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x402c9e
lea eax, [ebp - 0x198]
push eax
lea eax, [ebp - 0x90]
push eax
push 0
push 0
push str.DATE
push dword [ebp - 0x194]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x194]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x40
lea eax, [ebp - 0x90]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
lea eax, [ebp - 0x1b4]
mov dword [ebp - 0x194], 0
push eax
push 0x20019
push 0
lea eax, [ebp - 0x190]
push eax
push dword [ebp - 0x1a4]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x402d24
lea eax, [ebp - 0x1cc]
mov dword [ebp - 0x1cc], 4
push eax
lea eax, [ebp - 0x194]
push eax
push 0
push 0
push str.SEND_INFO_AGREE
push dword [ebp - 0x1b4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x1b4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x402d24
mov eax, dword [ebp - 0x194]
jmp 0x402d26
xor eax, eax
push edi
lea ecx, [ebp - 0x1c0]
mov dword [edi + 0x80], eax
mov dword [ebp - 0x1c0], 0
mov dword [ebp - 0x1bc], 0
call fcn.00404b40
mov ecx, dword [ebp - 0x1a8]
lea eax, [ebp - 0x1c0]
push eax
mov dword [ebp - 4], 0
lea ecx, [ecx + 0x200]
call fcn.00404690
mov dword [ebp - 4], 1
mov esi, dword [ebp - 0x1bc]
test esi, esi
je 0x402d9d
or eax, 0xffffffff
lock xadd dword [esi + 4], eax
jne 0x402d9d
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
or eax, 0xffffffff
lock xadd dword [esi + 8], eax
jne 0x402d9d
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x1ac]
inc ebx
test eax, eax
je 0x402bb0
push dword [ebp - 0x1a4]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call ebx
jmp 0x402dc9
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x1a8]
lea ecx, [ebp - 0x1c8]
mov dword [ebp - 0x1c8], 0
mov dword [ebp - 0x1c4], 0
call fcn.00404c00
lea eax, [ebp - 0x1c8]
mov dword [ebp - 4], 2
push eax
call fcn.004044e0
mov dword [ebp - 4], 3
mov esi, dword [ebp - 0x1c4]
test esi, esi
je 0x402e33
or eax, 0xffffffff
lock xadd dword [esi + 4], eax
jne 0x402e33
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
or eax, 0xffffffff
lock xadd dword [esi + 8], eax
jne 0x402e33
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
jmp 0x402e42
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x1b8]
mov edi, dword [ebp - 0x1a0]
inc edi
mov dword [ebp - 0x1a0], edi
test eax, eax
je 0x4028e0
push dword [ebp - 0x19c]
call ebx
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00404e4f
mov esp, ebp
pop ebp
ret