Function at 0x402a50
Capabilities:
Accept command line arguments
Check internet connectivity via wininet
Check mutex on windows
Check os version
Delete file
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0xd48]
sub esp, 0xd48
push 0xffffffffffffffff
push 0x411b80
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x41605c]
xor eax, ebp
mov dword [ebp + 0xd44], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
push 1
lea eax, [ebp - 0x48]
xor ebx, ebx
push eax
mov dword [ebp - 4], ebx
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
push ebx
push ebx
push 1
lea ecx, [ebp - 0x48]
push ecx
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
push str.GlobalEasy_WebPrint_EX_Downloader
push ebx
lea eax, [ebp - 0x34]
lea edx, [ebp - 0x48]
push eax
mov dword [ebp - 0x34], 0xc
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x2c], 1
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov esi, eax
cmp esi, ebx
mov dword [ebp - 0x14], esi
je 0x403170
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x403162
push ebx
call dword [sym.imp.ole32.dll_CoInitialize]
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea ecx, [ebp - 0x24]
push ecx
push eax
mov dword [ebp - 0x18], eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov edi, eax
cmp ebx, dword [ebp - 0x24]
jge 0x402c65
mov edx, dword [edi + ebx*4]
push edx
push str._toolhint
call fcn.0040444a
add esp, 8
test eax, eax
jne 0x402b3a
mov byte [0x41851f], 1
add ebx, 1
jmp 0x402b10
mov eax, dword [edi + ebx*4]
push eax
push str._setup
call fcn.0040444a
add esp, 8
test eax, eax
jne 0x402c41
mov byte [0x41851e], 1
mov esi, 0x104
mov edx, 0x413d50
mov eax, 0x418310
lea esp, [esp]
test esi, esi
je 0x402b8a
movzx ecx, word [edx]
test cx, cx
je 0x402b8d
mov word [eax], cx
add eax, 2
add edx, 2
sub esi, 1
jmp 0x402b70
sub eax, 2
mov word [eax], 0
mov esi, 0x104
mov ecx, 0x413d50
mov eax, 0x418108
test esi, esi
je 0x402bbb
movzx edx, word [ecx]
test dx, dx
je 0x402bbe
mov word [eax], dx
add eax, 2
add ecx, 2
sub esi, 1
jmp 0x402ba1
sub eax, 2
lea ecx, [ebx + 1]
cmp ecx, dword [ebp - 0x24]
mov word [eax], 0
jge 0x402c36
mov edx, dword [edi + ebx*4 + 4]
mov eax, dword [ebp - 0x18]
push edx
push eax
mov esi, 0x104
call dword [sym.imp.SHLWAPI.dll_StrStrW]
mov ecx, 0x418310
test esi, esi
je 0x402bfe
movzx edx, word [eax]
test dx, dx
je 0x402c01
mov word [ecx], dx
add ecx, 2
add eax, 2
sub esi, 1
jmp 0x402be4
sub ecx, 2
mov word [ecx], 0
mov ecx, dword [edi + ebx*4 + 4]
mov esi, 0x104
mov eax, 0x418108
test esi, esi
je 0x402c2e
movzx edx, word [ecx]
test dx, dx
je 0x402c31
mov word [eax], dx
add eax, 2
add ecx, 2
sub esi, 1
jmp 0x402c14
sub eax, 2
mov word [eax], 0
mov esi, dword [ebp - 0x14]
add ebx, 1
jmp 0x402b10
mov ecx, dword [edi + ebx*4]
push ecx
push str._SILENT_C
call fcn.0040444a
add esp, 8
test eax, eax
jne 0x402c39
mov byte [0x418524], 1
add ebx, 1
jmp 0x402b10
push 0x413d50
lea edx, [ebp + 0x524]
push 0x104
push edx
mov dword [ebp - 0x20], 0x104
call fcn.00404156
add esp, 0xc
cmp byte [0x41851e], 0
je 0x402cf6
lea eax, [ebp - 0x1c]
push eax
push 1
push 0
push 0x418108
push SysReAllocStringLen
mov dword [ebp - 0x1c], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x402cf6
lea ecx, [ebp - 0x20]
push ecx
mov ecx, dword [ebp - 0x1c]
lea edx, [ebp + 0x524]
push edx
lea eax, [ebp - 0x18]
push eax
push 0
push str.DEVICEID
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
push SysReAllocStringLen
je 0x402ce2
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x402cf6
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea esi, [ebp + 0x524]
call fcn.00403820
mov esi, dword [ebp - 0x14]
lea edx, [ebp - 0x18]
xor edi, edi
push edx
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], edi
call fcn.00403460
add esp, 4
cmp eax, 1
jne 0x402d1f
cmp dword [ebp - 0x1c], 7
jae 0x402d1f
cmp esi, edi
jmp 0x403160
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x1c]
call fcn.004035e0
add esp, 4
cmp eax, 1
je 0x402d18
mov ebx, dword [sym.imp.WININET.dll_InternetGetConnectedState]
push edi
lea ecx, [ebp - 0x28]
push ecx
call ebx
test eax, eax
jne 0x402d87
cmp byte [0x41851e], al
jne 0x402d18
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
xor esi, esi
cmp esi, 5
jge 0x402d72
push 0x3e8
call edi
push 0
lea edx, [ebp - 0x28]
push edx
call ebx
cmp eax, 1
je 0x402d72
add esi, 1
jmp 0x402d54
test eax, eax
jne 0x402d87
cmp dword [ebp - 0x14], eax
je 0x403170
mov esi, dword [ebp - 0x14]
jmp 0x403162
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp + 0x934]
push ecx
mov dword [ebp - 0x20], 0x104
call fcn.004033f0
add esp, 8
test eax, eax
je 0x40315b
mov edx, dword [ebp - 0x1c]
push edx
mov ebx, 0x104
push str.CHA_d
mov eax, ebx
lea edi, [ebp + 0x72c]
call fcn.00403d00
mov eax, edi
push eax
lea ecx, [ebp + 0x934]
push ebx
push ecx
call fcn.004044db
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
add esp, 0x14
lea edx, [ebp - 0x18]
push edx
push 1
push 0
push str.SoftwareCanonEasy_WebPrint_EXdownload
push SysReAllocStringLen
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x18], 0
call esi
test eax, eax
jne 0x402e84
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x18]
lea ecx, [ebp + 0x524]
push ecx
lea edx, [ebp - 0x1c]
push edx
push 0
push str.DEVICEID
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
push SysReAllocStringLen
je 0x402e34
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x402e84
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x20]
push ecx
lea edx, [ebp + 0x72c]
push edx
lea ecx, [ebp + 0x524]
mov dword [ebp - 0x20], ebx
call fcn.00403900
add esp, 8
cmp eax, 1
jne 0x402e84
push str.DEV
lea eax, [ebp + 0x934]
push ebx
push eax
call fcn.004044db
lea ecx, [ebp + 0x72c]
push ecx
lea edx, [ebp + 0x934]
push ebx
push edx
call fcn.004044db
add esp, 0x18
push 0x114
lea eax, [ebp]
push 0
push eax
call fcn.00406900
add esp, 0xc
lea ecx, [ebp]
push ecx
mov dword [ebp], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x402edf
cmp dword [ebp + 0x10], 2
jne 0x402edf
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 4]
push edx
push eax
push str.OSVW_d._d
mov eax, ebx
lea edi, [ebp + 0x72c]
call fcn.00403d00
mov ecx, edi
push ecx
lea edx, [ebp + 0x934]
push ebx
push edx
call fcn.004044db
add esp, 0x18
push ebx
lea eax, [ebp + 0x31c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x40315b
lea ecx, [ebp + 0x31c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
test eax, eax
je 0x40315b
lea edx, [ebp + 0x31c]
push edx
lea eax, [ebp + 0x114]
push ebx
push eax
call fcn.00404156
push str.ewpdllng.dll
lea ecx, [ebp + 0x114]
push ebx
push ecx
call fcn.004044db
add esp, 0x18
lea edx, [ebp + 0x114]
push edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp byte [0x41851e], 0
mov dword [0x418520], eax
je 0x402fc5
lea eax, [ebp + 0x934]
push eax
push 0x402730
call dword [sym.imp.USER32.dll_GetDesktopWindow]
mov ecx, dword [0x418520]
push eax
push 0x6c
push ecx
call dword [sym.imp.USER32.dll_DialogBoxParamW]
cmp eax, 2
je 0x402f9e
lea eax, [ebp + 0xb3c]
call fcn.004018c0
test eax, eax
je 0x402f9e
lea ebx, [ebp + 0xb3c]
call fcn.00401910
test eax, eax
jne 0x402fab
mov edx, ebx
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, dword [ebp - 0x14]
call fcn.00403b70
jmp 0x403170
lea eax, [ebp + 0xb3c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, dword [ebp - 0x14]
call fcn.00403b70
jmp 0x403170
cmp byte [0x41851f], 1
jne 0x403170
lea ecx, [ebp - 0x18]
push ecx
mov edi, 1
push edi
push 0
push str.SoftwareCanonEasy_WebPrint_EXdownload
push SysReAllocStringLen
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], 0
call esi
test eax, eax
jne 0x40300c
lea esi, [ebp - 0x18]
lea ecx, [ebp - 0x1c]
call fcn.00403760
cmp eax, edi
jne 0x40300c
cmp dword [ebp - 0x1c], edi
je 0x402f9e
call fcn.00403300
test eax, eax
je 0x402f9e
mov edi, dword [sym.imp.USER32.dll_DialogBoxParamW]
jmp 0x403020
mov eax, 1
test eax, eax
je 0x40315b
mov esi, dword [sym.imp.USER32.dll_GetDesktopWindow]
push 0
push 0x4031b0
call esi
mov edx, dword [0x418520]
push eax
push 0x6a
push edx
call edi
cmp eax, 1
jne 0x40315b
lea eax, [ebp + 0x934]
push eax
push 0x402730
call esi
mov ecx, dword [0x418520]
push eax
push 0x6c
push ecx
call edi
cmp eax, 2
je 0x403020
mov esi, 0x104
mov edx, 0x417ef0
lea eax, [ebp + 0xb3c]
test esi, esi
je 0x40309a
movzx ecx, word [edx]
test cx, cx
je 0x40309d
mov word [eax], cx
add eax, 2
add edx, 2
sub esi, 1
jmp 0x403080
sub eax, 2
lea ebx, [ebp + 0xb3c]
mov word [eax], 0
call fcn.00401910
test eax, eax
jne 0x40314e
mov edx, ebx
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0xe
call fcn.00403d30
add esp, 4
mov ecx, 0x413fd8
lea ecx, [ecx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4030f6
test dx, dx
je 0x4030f2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4030f6
add eax, 4
add ecx, 4
test dx, dx
jne 0x4030d0
xor eax, eax
jmp 0x4030fb
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
push 1
jne 0x403129
call fcn.00403d30
add esp, 4
push 0xb
mov esi, eax
call fcn.00403d30
add esp, 4
push 0x100010
push esi
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x403020
call fcn.00403d30
add esp, 4
push 0xb
mov esi, eax
call fcn.00403d30
add esp, 4
push 0x10
push esi
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x403020
lea eax, [ebp + 0xb3c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, dword [ebp - 0x14]
test esi, esi
je 0x403170
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
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 + 0xd44]
xor ecx, ebp
call fcn.00403dac
add ebp, 0xd48
mov esp, ebp
pop ebp
ret 0x10