Function at 0x4056e0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x20c
mov eax, dword [0x467340]
xor eax, esp
mov dword [esp + 0x208], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
lea ebx, [esp + 0x18]
mov dword [esp + 0x10], eax
mov dword [esp + 0x24], ecx
call fcn.004046f0
mov esi, dword [esp + 0x18]
xor ebx, ebx
cmp esi, ebx
je 0x405723
cmp esi, 0xffffffff
jne 0x40573b
push ebx
push 0x45bc4c
push 0x45bc60
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
push esi
jmp 0x405fc1
call fcn.00419090
mov byte [esp + 0x14], al
lea eax, [esp + 0x124]
xor edx, edx
mov edi, 7
push eax
mov dword [esp + 0x140], edi
mov dword [esp + 0x13c], ebx
mov word [esp + 0x12c], dx
call fcn.00404760
add esp, 4
push 9
push 0x45bc7c
lea eax, [esp + 0x12c]
call fcn.00406ee0
cmp dword [esp + 0x13c], 8
mov eax, dword [esp + 0x128]
jae 0x40579c
lea eax, [esp + 0x128]
mov ecx, dword [esp + 0x14]
push ecx
sub esp, 0x1c
mov esi, esp
mov dword [esi + 0x18], edi
xor edx, edx
mov ecx, eax
mov dword [esi + 0x14], ebx
mov dword [esp + 0x34], esp
mov word [esi + 4], dx
lea edi, [ecx + 2]
jmp 0x4057c0
mov dx, word [ecx]
add ecx, 2
cmp dx, bx
jne 0x4057c0
sub ecx, edi
sar ecx, 1
push ecx
call fcn.004070b0
call fcn.0041f480
add esp, 0x20
push 0xf
push str..Bootsetup.cpp
lea ecx, [esp + 0xd8]
mov dword [esp + 0xf0], 0xf
mov dword [esp + 0xec], ebx
mov byte [esp + 0xdc], bl
call fcn.00406050
push ebx
lea eax, [esp + 0x2c]
push eax
mov ecx, 0x1b3
lea edx, [esp + 0xd8]
call fcn.0041f600
push str.__Enter
push ecx
add eax, 0x28
push str.wWinMain
push eax
call fcn.00407a60
add esp, 0xc
push eax
call fcn.00407a60
add esp, 8
lea ecx, [esp + 0x28]
call fcn.0041f890
cmp dword [esp + 0xe8], 0x10
jb 0x405863
mov ecx, dword [esp + 0xd4]
push ecx
call fcn.004308f5
add esp, 4
mov edx, dword [esp + 0x10]
push edx
lea eax, [esp + 0x17c]
push eax
call fcn.00404ba0
lea ecx, [esp + 0x178]
push 0xf
mov dword [0x46a814], ecx
push str..Bootsetup.cpp
lea ecx, [esp + 0xd8]
mov dword [esp + 0xf0], 0xf
mov dword [esp + 0xec], ebx
mov byte [esp + 0xdc], bl
call fcn.00406050
push ebx
lea edx, [esp + 0x2c]
push edx
mov ecx, 0x1b8
lea edx, [esp + 0xd8]
call fcn.0041f600
mov esi, eax
lea eax, [esp + 0xec]
call fcn.00405280
push str.Channel_key_is:
add esi, 0x28
push esi
mov edi, eax
call fcn.00407a60
push eax
call fcn.0041feb0
add esp, 0xc
lea ecx, [esp + 0x28]
call fcn.0041f890
cmp dword [esp + 0x104], 8
jb 0x40590f
mov eax, dword [esp + 0xf0]
push eax
call fcn.004308f5
add esp, 4
xor ecx, ecx
cmp dword [esp + 0xe8], 0x10
mov esi, 7
mov dword [esp + 0x104], esi
mov dword [esp + 0x100], ebx
mov word [esp + 0xf0], cx
jb 0x405946
mov edx, dword [esp + 0xd4]
push edx
call fcn.004308f5
add esp, 4
xor eax, eax
mov word [esp + 0x10c], ax
mov eax, dword [esp + 0x24]
mov ecx, eax
mov dword [esp + 0x120], esi
mov dword [esp + 0x11c], ebx
lea esi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
cmp dx, bx
jne 0x405967
sub ecx, esi
sar ecx, 1
push ecx
lea esi, [esp + 0x10c]
call fcn.004070b0
lea ecx, [esp + 0x14]
push ecx
mov dword [esp + 0x18], ebx
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
cmp eax, ebx
je 0x4059a4
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [esp + 0x14], 1
jne 0x405a85
mov eax, dword [esp + 0x10]
lea edx, [esp + 0xec]
push edx
mov dword [esp + 0x108], 0xf
mov dword [esp + 0x104], ebx
mov byte [esp + 0xf4], bl
call fcn.004054b0
mov eax, dword [esp + 0xf4]
add esp, 4
cmp dword [esp + 0x104], 0x10
jae 0x4059f4
lea eax, [esp + 0xf0]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4059f7
mov ecx, dword [esp + 0x100]
sub eax, edx
cmp eax, ecx
ja 0x405a1c
push 0xffffffffffffffff
push eax
lea ecx, [esp + 0xf4]
call fcn.00406be0
jmp 0x405a2b
push ebx
sub eax, ecx
lea edi, [esp + 0xf0]
call fcn.00406b40
lea eax, [esp + 0xec]
push eax
lea ecx, [esp + 0x144]
call fcn.00405550
add esp, 4
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0x110]
call fcn.00406820
cmp dword [esp + 0x158], 8
jb 0x405a6b
mov ecx, dword [esp + 0x144]
push ecx
call fcn.004308f5
add esp, 4
cmp dword [esp + 0x104], 0x10
jb 0x405a85
mov edx, dword [esp + 0xf0]
push edx
call fcn.004308f5
add esp, 4
cmp dword [esp + 0x120], 8
jb 0x405af9
mov eax, dword [esp + 0x10c]
cmp eax, ebx
je 0x405aad
cmp word [eax], bx
je 0x405aad
push eax
lea eax, [esp + 0x1c8]
push eax
call fcn.00422b40
mov ecx, dword [esp + 0x10]
push ecx
lea ebx, [esp + 0x20]
call fcn.00404540
mov eax, dword [esp + 0x17c]
mov ecx, dword [esp + 0x20]
mov edx, ebx
mov dword [0x46a818], edx
push str.silent_install
lea edx, [esp + 0x17c]
push edx
lea edi, [esp + 0x148]
mov dword [eax + 0xc], ecx
call fcn.00404e50
mov edi, 8
cmp dword [eax + 0x18], edi
jb 0x405b02
mov eax, dword [eax + 4]
jmp 0x405b05
lea eax, [esp + 0x10c]
jmp 0x405a9a
add eax, 4
push eax
call fcn.00430d91
add esp, 4
mov esi, eax
mov dword [esp + 0x14], esi
cmp dword [esp + 0x158], edi
jb 0x405b2d
mov eax, dword [esp + 0x144]
push eax
call fcn.004308f5
add esp, 4
xor ebx, ebx
cmp esi, ebx
jne 0x405ca0
lea edi, [esp + 0x178]
call fcn.00405000
test al, al
je 0x405ccc
lea esi, [esp + 0xec]
mov dword [esp + 0x104], 0xf
mov dword [esp + 0x100], ebx
mov byte [esp + 0xf0], bl
call fcn.00405660
cmp dword [esp + 0x100], ebx
jbe 0x405c86
push 1
lea ecx, [esp + 0x10]
push ecx
mov edi, esi
mov byte [esp + 0x14], 0x5c
call fcn.00406590
cmp eax, 0xffffffff
je 0x405c86
push 0xffffffffffffffff
lea ecx, [eax + 1]
lea esi, [esp + 0x144]
mov edx, edi
call fcn.00406190
cmp dword [esp + 0x154], ebx
jbe 0x405c7a
push 1
lea edx, [esp + 0x10]
push edx
mov edi, esi
mov dword [esp + 0xf0], 0xf
mov dword [esp + 0xec], ebx
mov byte [esp + 0xdc], bl
mov byte [esp + 0x14], 0x2e
call fcn.00406590
cmp eax, 0xffffffff
je 0x405c14
push eax
xor ecx, ecx
lea esi, [esp + 0x160]
mov edx, edi
call fcn.00406190
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0xdc]
call fcn.00406480
mov ecx, esi
call fcn.00406020
jmp 0x405c2b
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x148]
push eax
lea ecx, [esp + 0xdc]
call fcn.00406480
mov eax, dword [esp + 0xe4]
cmp eax, 2
jb 0x405c6e
push 0xffffffffffffffff
lea ecx, [eax - 2]
lea esi, [esp + 0x160]
lea edx, [esp + 0xd4]
call fcn.00406190
mov edx, esi
call fcn.004061c0
test eax, eax
jne 0x405c62
mov dword [esp + 0x14], 1
lea ecx, [esp + 0x15c]
call fcn.00406020
lea ecx, [esp + 0xd0]
call fcn.00406020
lea ecx, [esp + 0x140]
call fcn.00406020
cmp dword [esp + 0x104], 0x10
jb 0x405ca0
mov ecx, dword [esp + 0xf0]
push ecx
call fcn.004308f5
add esp, 4
mov esi, dword [esp + 0x14]
cmp esi, 1
jne 0x405ccc
push 0x70
call fcn.004309b0
add esp, 4
cmp eax, ebx
je 0x405cc4
mov esi, eax
call fcn.0040f3a0
mov dword [esp + 0x10], eax
jmp 0x405cfe
xor eax, eax
mov dword [esp + 0x10], eax
jmp 0x405cfe
push 0x84
call fcn.004309b0
add esp, 4
cmp eax, ebx
je 0x405cfa
cmp esi, 2
sete dl
movzx ecx, dl
push ecx
push eax
call fcn.004103e0
cmp eax, ebx
je 0x405cfa
add eax, 4
mov dword [esp + 0x10], eax
jmp 0x405cfe
mov dword [esp + 0x10], ebx
test byte [0x46b044], 1
jne 0x405d31
or dword [0x46b044], 1
push 0x454260
mov dword [0x46abe8], 0x45d2f0
mov dword [0x46afa4], ebx
mov dword [0x46afa8], ebx
call fcn.0043146c
add esp, 4
test byte [0x46b044], 1
mov edx, dword [esp + 0x10]
mov esi, dword [esp + 0x20]
mov dword [0x46afa8], edx
jne 0x405d72
or dword [0x46b044], 1
push 0x454260
mov dword [0x46abe8], 0x45d2f0
mov dword [0x46afa4], ebx
mov dword [0x46afa8], ebx
call fcn.0043146c
add esp, 4
mov ebx, esi
mov esi, 0x46abe8
call fcn.0041bd90
xor ebx, ebx
test byte [0x46b048], 1
mov esi, 1
jne 0x405da7
or dword [0x46b048], esi
push 0x454240
mov dword [0x46afac], ebx
call fcn.0043146c
add esp, 4
mov edi, 0x46afac
call fcn.00407ed0
test byte [0x46b048], 1
jne 0x405dd3
or dword [0x46b048], esi
push 0x454240
mov dword [0x46afac], ebx
call fcn.0043146c
add esp, 4
push 0x10
call fcn.004309b0
add esp, 4
cmp eax, ebx
je 0x405df6
mov dword [eax], vtable.CallBack_1_void__class_ReportWrapper__enum_ReportWrapper::ReportType_.0
mov dword [eax + 4], edi
mov dword [eax + 8], ebx
mov dword [eax + 0xc], 0x407fb0
jmp 0x405df8
xor eax, eax
mov ecx, dword [0x46afac]
mov ecx, dword [ecx + 0xc]
mov edx, dword [ecx]
push ebx
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [esp + 0x10]
mov edx, dword [edi]
mov eax, dword [edx + 0xc]
mov ecx, edi
mov dword [0x46a81c], edi
call eax
mov ecx, dword [0x46a814]
mov ecx, dword [ecx + 4]
cmp ecx, ebx
je 0x405e31
mov edx, dword [ecx]
mov eax, dword [edx + 0xc]
call eax
test byte [0x46b048], 1
jne 0x405e53
or dword [0x46b048], esi
push 0x454240
mov dword [0x46afac], ebx
call fcn.0043146c
add esp, 4
mov esi, dword [0x46afac]
cmp esi, ebx
je 0x405e62
call fcn.00422780
mov edx, dword [edi]
mov eax, dword [edx + 0x10]
mov ecx, edi
call eax
test byte [0x46b044], 1
jne 0x405e9e
or dword [0x46b044], 1
push 0x454260
mov dword [0x46abe8], 0x45d2f0
mov dword [0x46afa4], ebx
mov dword [0x46afa8], ebx
call fcn.0043146c
add esp, 4
push 0x46abec
push 2
call dword [sym.imp.SHELL32.dll_Shell_NotifyIconW]
mov edx, dword [edi]
mov eax, dword [edx + 8]
push 1
mov ecx, edi
call eax
push 0xf
push str..Bootsetup.cpp
lea ecx, [esp + 0xd8]
mov dword [esp + 0xf0], 0xf
mov dword [esp + 0xec], ebx
mov byte [esp + 0xdc], bl
call fcn.00406050
push ebx
lea ecx, [esp + 0x2c]
push ecx
mov ecx, 0x226
lea edx, [esp + 0xd8]
call fcn.0041f600
push str.__Exit
push ecx
add eax, 0x28
push str.wWinMain
push eax
call fcn.00407a60
add esp, 0xc
push eax
call fcn.00407a60
add esp, 8
lea ecx, [esp + 0x28]
call fcn.0041f890
cmp dword [esp + 0xe8], 0x10
jb 0x405f3c
mov edx, dword [esp + 0xd4]
push edx
call fcn.004308f5
add esp, 4
mov edi, 8
mov dword [esp + 0x1c], vtable.ApplicationWndWrapper.0
cmp dword [esp + 0x120], edi
jb 0x405f62
mov eax, dword [esp + 0x10c]
push eax
call fcn.004308f5
add esp, 4
xor ecx, ecx
mov word [esp + 0x10c], cx
mov esi, 7
lea ecx, [esp + 0x178]
mov dword [esp + 0x120], esi
mov dword [esp + 0x11c], ebx
call fcn.00404d70
cmp dword [esp + 0x13c], edi
jb 0x405fa4
mov edx, dword [esp + 0x128]
push edx
call fcn.004308f5
add esp, 4
mov ecx, dword [esp + 0x18]
xor eax, eax
mov dword [esp + 0x13c], esi
mov dword [esp + 0x138], ebx
mov word [esp + 0x128], ax
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x214]
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.00430900
mov esp, ebp
pop ebp
ret 0x10