Function at 0x42cae6
Capabilities:
Accept command line arguments

Disassembly:
push ebp
lea ebp, [esp - 0x310]
sub esp, 0x4c4
mov eax, dword [0x4d5784]
xor eax, ebp
mov dword [ebp + 0x30c], eax
push ebx
push esi
push edi
xor eax, eax
push 0x206
mov word [ebp + 0x84], ax
xor ebx, ebx
lea eax, [ebp + 0x86]
push ebx
push eax
call fcn.00430560
xor eax, eax
push 0x7e
mov word [ebp + 0x28c], ax
lea eax, [ebp + 0x28e]
push ebx
push eax
call fcn.00430560
add esp, 0x18
lea ecx, [ebp - 0x1b4]
call fcn.0042c908
call dword [sym.imp.KERNEL32.DLL_GetCommandLineW]
mov esi, eax
push 0x4b2368
push esi
call fcn.004289d6
push 0x4b2360
push esi
mov dword [ebp + 0x70], eax
call fcn.004289d6
add esp, 0x10
mov dword [ebp + 0x78], eax
cmp eax, ebx
jne 0x42cb82
push str._channelid
push esi
call fcn.004289d6
pop ecx
pop ecx
mov dword [ebp + 0x78], eax
push str._Update
push esi
call fcn.004289d6
pop ecx
pop ecx
mov esi, eax
cmp dword [ebp + 0x78], ebx
je 0x42cbc5
push dword [ebp + 0x78]
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jle 0x42cbab
xor eax, eax
jmp 0x42cbca
lea edi, [eax + eax]
mov eax, edi
call fcn.004333a0
mov eax, esp
push 3
push edi
push dword [ebp + 0x78]
push eax
call fcn.00428924
jmp 0x42cbca
mov eax, 0x4b2328
push 0x4b2320
add eax, 4
push eax
push str.3CD5E9A1721861AE6688260ED26206C2
lea ecx, [ebp + 0x83]
call fcn.0042393b
push 1
mov edi, 0x4ca5a3
push edi
push str.app_open
call fcn.00423842
push 1
push edi
push str.app_device_info
call fcn.00423842
add esp, 0x18
push 0x4da5ec
lea ecx, [ebp + 0x74]
call fcn.004223ce
lea eax, [ebp + 0x74]
push eax
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcessId]
push eax
call fcn.004287a5
pop ecx
push eax
call fcn.0042885a
mov eax, dword [ebp + 0x74]
pop ecx
pop ecx
cmp dword [eax - 0xc], ebx
je 0x42cc78
push ebx
push 0x4b1834
lea ecx, [ebp + 0x74]
call fcn.004291f8
push ebx
lea ecx, [ebp + 0x74]
test eax, eax
jl 0x42cc5b
call fcn.004228cc
push eax
push str._PS
push str._s__s_
jmp 0x42cc6b
call fcn.004228cc
push eax
push str._PS
push 0x4b22b8
push 0x4da094
call fcn.0042728c
add esp, 0x10
cmp dword [ebp + 0x70], ebx
jne 0x42ce6e
cmp esi, ebx
jne 0x42ce6e
push ebx
call dword [sym.imp.ole32.dll_CoInitialize]
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.USER32.dll_DefWindowProcW]
push 4
call fcn.00428d3d
pop ecx
push ebx
push dword [ebp + 0x318]
mov ecx, 0x4da058
push ebx
call fcn.00428fb4
lea ecx, [ebp - 0x1b4]
call fcn.0042833c
push 0x40
lea eax, [ebp + 0x28c]
push eax
push 0x104
lea eax, [ebp + 0x84]
push eax
lea ecx, [ebp + 0x82]
call fcn.00427b6c
test eax, eax
jne 0x42cd2c
cmp dword [0x4da0cc], 8
mov eax, dword [0x4da0b8]
jae 0x42ccf6
mov eax, 0x4da0b8
push eax
lea eax, [ebp + 0x28c]
push eax
call fcn.00428aee
pop ecx
pop ecx
test eax, eax
jle 0x42cd2c
push 0x40
push 0x4b22b0
push 0x4b2240
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
push 0x3a98
call fcn.004246fa
pop ecx
jmp 0x42d00b
cmp word [ebp + 0x84], bx
mov eax, str.app_update_start
setne byte [ebp + 0x7e]
cmp byte [ebp + 0x7e], bl
jne 0x42cd46
mov eax, str.app_install_start
push 1
push edi
push eax
call fcn.00423842
add esp, 0xc
cmp byte [ebp + 0x7e], bl
je 0x42cd5c
mov dword [ebp + 0x78], ebx
jmp 0x42cd68
cmp dword [ebp + 0x78], ebx
jne 0x42cd68
mov dword [ebp + 0x78], 0x4b21fc
mov esi, dword [sym.imp.USER32.dll_GetActiveWindow]
call esi
push eax
lea ecx, [ebp - 0x1b4]
call fcn.0042bd28
cmp byte [ebp - 0x20], bl
je 0x42ce44
lea ecx, [ebp - 0x14]
call fcn.0042a141
push ebx
push ebx
push 0x104
lea eax, [ebp + 0x84]
push eax
lea ecx, [ebp + 0x82]
call fcn.00427b6c
test eax, eax
jne 0x42cdfb
push ebx
lea ecx, [ebp - 0x74]
call fcn.0042905c
lea eax, [ebp + 0x84]
push eax
call fcn.0042ebbf
pop ecx
lea eax, [ebp + 0x84]
push eax
lea ecx, [ebp - 0x74]
call fcn.0042c97f
cmp byte [ebp + 0x7e], bl
jne 0x42cde0
push ebx
call esi
push eax
lea ecx, [ebp - 0x14]
call fcn.0042bc9a
call fcn.00423e7f
test eax, eax
je 0x42cdee
call fcn.00423ca2
push ebx
push ebx
push ebx
mov ecx, 0x4da428
call fcn.0042748b
call fcn.00423e39
call fcn.00423e6a
call fcn.00424723
push dword [ebp + 0x7e]
lea ecx, [ebp - 0x14]
push 1
push dword [ebp + 0x78]
call fcn.004247d4
call fcn.0042e5e5
mov eax, str.app_update_done
cmp byte [ebp + 0x7e], bl
jne 0x42ce2e
mov eax, str.app_install_done
push 1
push edi
push eax
call fcn.00423842
add esp, 0xc
lea ecx, [ebp - 0x14]
call fcn.0042421f
jmp 0x42ce5f
mov eax, str.app_update_cancel
cmp byte [ebp + 0x7e], bl
jne 0x42ce53
mov eax, str.app_install_cancel
push 1
push edi
push eax
call fcn.00423842
add esp, 0xc
mov ecx, 0x4da058
call fcn.0042bf39
jmp 0x42d00b
lea ecx, [ebp - 0x1b4]
call fcn.0042833c
push 0x40
lea eax, [ebp + 0x28c]
push eax
push 0x104
lea eax, [ebp + 0x84]
push eax
lea ecx, [ebp + 0x82]
call fcn.00427b6c
cmp eax, ebx
jne 0x42cecf
cmp dword [0x4da0cc], 8
mov eax, dword [0x4da0b8]
jae 0x42ceb0
mov eax, 0x4da0b8
push eax
lea eax, [ebp + 0x28c]
push eax
call fcn.00428aee
pop ecx
pop ecx
test eax, eax
jg 0x42d00b
cmp esi, ebx
je 0x42d006
cmp word [ebp + 0x84], bx
mov eax, str.app_update_start
setne byte [ebp + 0x7e]
cmp byte [ebp + 0x7e], bl
jne 0x42cee9
mov eax, str.app_install_start
push 1
push edi
push eax
call fcn.00423842
movzx eax, word [ebp + 0x84]
add esp, 0xc
cmp esi, ebx
setne byte [ebp + 0x6c]
neg eax
sbb eax, eax
lea ecx, [ebp + 0x84]
and eax, ecx
push eax
push dword [ebp + 0x6c]
lea ecx, [ebp - 0xf4]
call fcn.00425766
test eax, eax
jl 0x42d00b
push 0x4da098
lea ecx, [ebp + 0x82]
call fcn.00427cb2
test eax, eax
jl 0x42d00b
neg esi
sbb esi, esi
not esi
and esi, dword [ebp + 0x70]
lea ecx, [ebp - 0x74]
push esi
call fcn.0042905c
push ebx
push ebx
push 0x104
lea eax, [ebp + 0x84]
push eax
lea ecx, [ebp + 0x82]
call fcn.00427b6c
test eax, eax
jne 0x42cf8d
lea eax, [ebp + 0x84]
push eax
call fcn.0042ebbf
pop ecx
cmp byte [ebp + 0x7e], bl
je 0x42cf8d
lea eax, [ebp + 0x84]
push eax
lea ecx, [ebp - 0x74]
call fcn.0042c97f
cmp dword [ebp + 0x70], ebx
push dword [ebp + 0x78]
setne al
push dword [ebp + 0x6c]
movzx eax, al
push eax
mov ecx, 0x4da428
call fcn.0042748b
lea ecx, [ebp - 0x14]
call fcn.0042a141
mov dword [ebp + 0xc], ebx
call fcn.00423e39
call fcn.00423e6a
cmp byte [ebp + 0x7e], bl
je 0x42cfc9
push dword [ebp + 0x7e]
push 1
push ebx
jmp 0x42cfdb
cmp dword [ebp + 0x78], ebx
jne 0x42cfd5
mov dword [ebp + 0x78], 0x4b21fc
push ebx
push 1
push dword [ebp + 0x78]
lea ecx, [ebp - 0x14]
call fcn.004247d4
mov eax, str.app_update_done
cmp byte [ebp + 0x7e], bl
jne 0x42cff2
mov eax, str.app_install_done
push 1
push edi
push eax
call fcn.00423842
add esp, 0xc
lea ecx, [ebp - 0x14]
call fcn.0042421f
call fcn.0042e5e5
mov ecx, dword [ebp + 0x74]
add ecx, 0xfffffff0
call fcn.004222af
lea ecx, [ebp + 0x83]
call fcn.0042377c
lea ecx, [ebp - 0x1b4]
call fcn.0042ba2c
xor eax, eax
lea esp, [ebp - 0x1c0]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x30c]
xor ecx, ebp
call fcn.0043039d
add ebp, 0x310
leave
ret 0x10