Function at 0x406600
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x34
mov eax, dword [0x629214]
xor eax, esp
mov dword [esp + 0x30], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push eax
call fcn.0043857c
add esp, 4
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
test eax, eax
js 0x406a79
lea esi, [esp + 0x1f]
call fcn.00406420
mov dword [esp + 0x14], 0
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea ecx, [esp + 0x14]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov edi, 1
mov dword [esp + 0x18], eax
cmp dword [esp + 0x14], edi
jle 0x406920
mov dword [esp + 0x10], 2
mov edx, dword [esp + 0x18]
mov esi, dword [edx + edi*4]
mov ecx, str._background
mov eax, esi
nop
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4066a6
test dx, dx
je 0x4066a2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4066a6
add eax, 4
add ecx, 4
test dx, dx
jne 0x406680
xor eax, eax
jmp 0x4066ab
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4066c4
mov eax, 1
add edi, eax
add dword [esp + 0x10], eax
mov dword [0x62fbdc], eax
jmp 0x406916
mov ecx, str._updateEvent
mov eax, esi
jmp 0x4066d0
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4066f6
test dx, dx
je 0x4066f2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4066f6
add eax, 4
add ecx, 4
test dx, dx
jne 0x4066d0
xor eax, eax
jmp 0x4066fb
sbb eax, eax
sbb eax, 0xffffffff
mov ebx, dword [esp + 0x14]
test eax, eax
jne 0x406786
cmp dword [esp + 0x10], ebx
jge 0x406786
mov eax, dword [esp + 0x18]
mov eax, dword [eax + edi*4 + 4]
xor ecx, ecx
mov word [esp + 0x20], cx
mov ecx, eax
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], 0
lea esi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x406731
sub ecx, esi
sar ecx, 1
push ecx
lea esi, [esp + 0x24]
call fcn.00406130
cmp dword [esp + 0x34], 8
mov ebx, dword [esp + 0x20]
jae 0x406757
mov ebx, esi
mov esi, 0x62bb9c
call fcn.00408fd0
add dword [esp + 0x10], 2
add edi, 2
cmp dword [esp + 0x34], 8
jb 0x406916
mov edx, dword [esp + 0x20]
push edx
call fcn.00478c1a
add esp, 4
jmp 0x406916
mov ecx, str._replace
mov eax, esi
lea ecx, [ecx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4067b6
test dx, dx
je 0x4067b2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4067b6
add eax, 4
add ecx, 4
test dx, dx
jne 0x406790
xor eax, eax
jmp 0x4067bb
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x406805
cmp dword [esp + 0x10], ebx
jge 0x406805
mov eax, dword [esp + 0x18]
mov eax, dword [eax + edi*4 + 4]
mov ebx, 1
mov ecx, eax
mov dword [0x62fbe0], ebx
lea esi, [ecx + 2]
lea ecx, [ecx]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x4067e0
sub ecx, esi
sar ecx, 1
push ecx
mov esi, 0x62bbd4
call fcn.00406130
add edi, ebx
add dword [esp + 0x10], ebx
jmp 0x406916
mov ecx, str._dontLaunch
mov eax, esi
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x406836
test dx, dx
je 0x406832
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x406836
add eax, 4
add ecx, 4
test dx, dx
jne 0x406810
xor eax, eax
jmp 0x40683b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x406854
mov eax, 1
add edi, eax
add dword [esp + 0x10], eax
mov dword [0x62fbe4], eax
jmp 0x406916
mov ecx, str._version
mov eax, esi
jmp 0x406860
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x406886
test dx, dx
je 0x406882
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x406886
add eax, 4
add ecx, 4
test dx, dx
jne 0x406860
xor eax, eax
jmp 0x40688b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4068c6
cmp dword [esp + 0x10], ebx
jge 0x4068c6
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx + edi*4 + 4]
mov ecx, eax
lea esi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x4068a2
sub ecx, esi
sar ecx, 1
push ecx
mov esi, 0x62bbb8
call fcn.00406130
add edi, 2
add dword [esp + 0x10], 2
jmp 0x406916
mov ecx, str._team
mov eax, esi
lea ecx, [ecx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4068f6
test dx, dx
je 0x4068f2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4068f6
add eax, 4
add ecx, 4
test dx, dx
jne 0x4068d0
xor eax, eax
jmp 0x4068fb
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x406911
mov eax, 1
add edi, eax
add dword [esp + 0x10], eax
mov dword [0x62fbe8], eax
jmp 0x406916
inc edi
inc dword [esp + 0x10]
cmp edi, dword [esp + 0x14]
jl 0x406671
xor ebx, ebx
cmp dword [esp + 0x14], ebx
jle 0x406976
jmp 0x406930
test byte [0x63047c], 1
jne 0x406952
or dword [0x63047c], 1
call fcn.00403470
push 0x5b0650
call fcn.0047990f
add esp, 4
mov edx, dword [esp + 0x18]
mov eax, dword [edx + ebx*4]
push eax
push ebx
push str.arg_d:__S.
push 0
mov esi, 0x630460
call fcn.00403590
inc ebx
add esp, 0x10
cmp ebx, dword [esp + 0x14]
jl 0x406930
push str.Updater_for_3uTools
push 0x618cec
call dword [sym.imp.USER32.dll_FindWindowW]
test eax, eax
je 0x4069a6
push 0
push 0
push 0x12
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
test eax, eax
je 0x4069a6
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x3d0
call fcn.00479274
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x406a74
mov ecx, ebx
call fcn.0043ec9f
xor eax, eax
lea esi, [esp + 0x20]
mov dword [ebx], vtable.CWnd_Main.0
mov dword [ebx + 0x10], vtable.CWnd_Main.1.0
mov dword [ebx + 0x20], vtable.CWnd_Main.2.0
mov dword [ebx + 0x24], vtable.CWnd_Main.3.0
mov dword [ebx + 0x28], vtable.CWnd_Main.4.0
mov dword [0x62fbd8], ebx
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
call fcn.00409bb0
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
push 0
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x3c]
push 0x60000
push 0x10cf0000
mov dword [eax + 4], edx
mov edx, dword [esp + 0x48]
mov dword [eax + 8], ecx
push str.Updater_for_3uTools
push 0
mov ecx, ebx
mov dword [eax + 0xc], edx
call fcn.00438304
mov ecx, ebx
call fcn.00437cd0
cmp dword [0x62fbdc], 0
mov ecx, ebx
je 0x406a5b
push 0
jmp 0x406a5d
push 5
call fcn.00477e44
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
call fcn.0043d03e
call dword [sym.imp.ole32.dll_CoUninitialize]
call fcn.00406520
mov ecx, dword [esp + 0x3c]
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.00478c25
mov esp, ebp
pop ebp
ret 0x10