Function at 0x409b25
Capabilities:
Print debug messages

Disassembly:
mov eax, 0x423097
call fcn.00422230
sub esp, 0x30
push ebx
push esi
push edi
push dword [ebp + 8]
mov dword [ebp - 0x18], ecx
lea ecx, [ebp - 0x34]
call fcn.00405488
mov esi, eax
xor edi, edi
push str.CLiveUpdateSettings::ParseCommandLine
lea ecx, [ebp - 0x38]
mov dword [ebp - 4], edi
call fcn.00405488
push esi
push eax
lea eax, [ebp - 0x20]
push eax
mov byte [ebp - 4], 1
call fcn.0040978c
add esp, 0xc
mov ecx, dword [ebp - 0x38]
add ecx, 0xfffffff0
call fcn.004021e8
mov ecx, dword [ebp - 0x34]
add ecx, 0xfffffff0
mov byte [ebp - 4], 3
call fcn.004021e8
mov ebx, dword [ebp - 0x20]
push ebx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push dword [ebp + 8]
lea ecx, [ebp - 0x10]
call fcn.00405488
mov eax, dword [ebp - 0x10]
cmp dword [eax - 0xc], edi
mov byte [ebp - 4], 5
jg 0x409bb1
mov eax, dword [ebp - 0x18]
xor esi, esi
mov dword [eax], edi
inc esi
jmp 0x40a138
push 0x428198
lea ecx, [ebp - 0x14]
mov dword [ebp + 8], edi
call fcn.00405488
lea ecx, [ebp - 0x24]
call fcn.00402f4c
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
mov byte [ebp - 4], 7
call fcn.00409902
mov esi, dword [ebp - 0x24]
add esp, 0x10
cmp dword [esi - 0xc], edi
je 0x40a0c2
mov edi, dword [sym.imp.MSVCR71.dll_wcscmp]
push 0x428190
push esi
call edi
test eax, eax
pop ecx
pop ecx
jne 0x409c13
mov eax, dword [ebp - 0x18]
mov dword [eax], 0xa
jmp 0x40a095
push 0x428188
push esi
call edi
test eax, eax
pop ecx
pop ecx
jne 0x409c2f
mov eax, dword [ebp - 0x18]
mov dword [eax], 0xb
jmp 0x40a095
push 0x428180
push esi
call edi
test eax, eax
pop ecx
pop ecx
jne 0x409c4b
mov eax, dword [ebp - 0x18]
mov dword [eax], 0xc
jmp 0x40a095
push str._self
push esi
call edi
test eax, eax
pop ecx
pop ecx
jne 0x409c67
mov eax, dword [ebp - 0x18]
mov dword [eax], 0xe
jmp 0x40a095
push 0x42816c
push esi
call edi
test eax, eax
pop ecx
pop ecx
je 0x409c05
push str._PackType
push esi
call edi
test eax, eax
pop ecx
pop ecx
jne 0x409d69
lea ecx, [ebp - 0x28]
call fcn.00402f4c
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
mov byte [ebp - 4], 8
call fcn.00409902
add esp, 0x10
lea ecx, [ebp - 0x2c]
mov edi, eax
call fcn.00402f4c
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
mov byte [ebp - 4], 9
call fcn.00409902
mov ebx, dword [ebp - 0x2c]
add esp, 0x10
test edi, edi
mov edi, dword [ebp - 0x28]
je 0x40a0fc
test eax, eax
je 0x40a0fc
cmp dword [edi - 0xc], 0
jl 0x40a192
xor eax, eax
mov ax, word [edi]
push eax
call dword [sym.imp.MSVCR71.dll_iswdigit]
test eax, eax
pop ecx
je 0x40a0fc
cmp dword [ebx - 0xc], 0
jl 0x40a192
xor eax, eax
mov ax, word [ebx]
push eax
call dword [sym.imp.MSVCR71.dll_iswdigit]
test eax, eax
pop ecx
je 0x40a0fc
mov esi, dword [sym.imp.MSVCR71.dll__wtoi]
push edi
call esi
pop ecx
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x3c]
push eax
add ecx, 4
call fcn.004099de
push ebx
mov dword [ebp - 0x3c], eax
call esi
pop ecx
mov ecx, dword [ebp - 0x3c]
mov dword [ecx], eax
lea ecx, [ebx - 0x10]
call fcn.004021e8
lea ecx, [edi - 0x10]
mov byte [ebp - 4], 7
call fcn.004021e8
mov ebx, dword [ebp - 0x20]
jmp 0x40a095
push str._UpdateType
push esi
call edi
test eax, eax
pop ecx
pop ecx
jne 0x409de4
lea ecx, [ebp - 0x30]
call fcn.00402f4c
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
mov byte [ebp - 4], 0xa
call fcn.00409902
mov edi, dword [ebp - 0x30]
add esp, 0x10
test eax, eax
je 0x40a14f
cmp dword [edi - 0xc], 0
jl 0x40a192
xor eax, eax
mov ax, word [edi]
push eax
call dword [sym.imp.MSVCR71.dll_iswdigit]
test eax, eax
pop ecx
je 0x40a14f
push edi
call dword [sym.imp.MSVCR71.dll__wtoi]
pop ecx
mov ecx, dword [ebp - 0x18]
mov dword [ecx + 0x18], eax
lea ecx, [edi - 0x10]
mov byte [ebp - 4], 7
call fcn.004021e8
jmp 0x40a095
push str._showgui
push esi
call edi
test eax, eax
pop ecx
pop ecx
jne 0x409e50
lea ecx, [ebp - 0x34]
call fcn.00402f4c
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
mov byte [ebp - 4], 0xb
call fcn.00409902
mov edi, dword [ebp - 0x34]
add esp, 0x10
test eax, eax
je 0x40a173
cmp dword [edi - 0xc], 0
jl 0x40a192
xor eax, eax
mov ax, word [edi]
push eax
call dword [sym.imp.MSVCR71.dll_iswdigit]
test eax, eax
pop ecx
je 0x40a173
push edi
call dword [sym.imp.MSVCR71.dll__wtoi]
pop ecx
mov ecx, dword [ebp - 0x18]
mov dword [ecx + 0x1c], eax
jmp 0x409dd3
push 0x428120
push esi
call edi
test eax, eax
pop ecx
pop ecx
jne 0x409e9b
mov edi, dword [ebp - 0x18]
add edi, 0x10
push edi
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00409902
add esp, 0x10
test eax, eax
je 0x40a181
mov esi, 0x42811c
push esi
mov ecx, edi
call fcn.004094b8
push esi
mov ecx, edi
call fcn.0040972f
jmp 0x40a095
push str._CPid
push esi
call edi
test eax, eax
pop ecx
pop ecx
jne 0x409f08
lea ecx, [ebp - 0x38]
call fcn.00402f4c
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
mov byte [ebp - 4], 0xc
call fcn.00409902
mov edi, dword [ebp - 0x38]
add esp, 0x10
test eax, eax
je 0x40a19c
cmp dword [edi - 0xc], 0
jl 0x40a192
movzx eax, word [edi]
push eax
call dword [sym.imp.MSVCR71.dll_isdigit]
test eax, eax
pop ecx
je 0x40a19c
push edi
call dword [sym.imp.MSVCR71.dll__wtoi]
pop ecx
mov ecx, dword [ebp - 0x18]
mov dword [ecx + 0x14], eax
jmp 0x409dd3
push str._ProductName
push esi
call edi
test eax, eax
pop ecx
pop ecx
jne 0x409f4a
mov edi, dword [ebp - 0x18]
add edi, 0x20
push edi
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00409902
add esp, 0x10
test eax, eax
jne 0x40a070
push 0x10
push str.Xunlei_LiveUpdate
push str.Invalid__ProductName_command_line_param
jmp 0x40a214
push str._DLP
push esi
call edi
test eax, eax
pop ecx
pop ecx
jne 0x40a001
lea ecx, [ebp - 0x1c]
call fcn.00402f4c
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
mov byte [ebp - 4], 0xd
call fcn.00409902
add esp, 0x10
test eax, eax
je 0x40a1aa
mov ebx, 0x42806c
push ebx
lea ecx, [ebp - 0x1c]
call fcn.004094b8
push ebx
lea ecx, [ebp - 0x1c]
call fcn.0040972f
mov ebx, dword [ebp - 0x1c]
push 0x428064
push ebx
call edi
test eax, eax
pop ecx
pop ecx
jne 0x409fbc
mov eax, dword [ebp - 0x18]
mov dword [eax + 0x28], 1
jmp 0x409ff9
push 0x42805c
push ebx
call edi
test eax, eax
pop ecx
pop ecx
jne 0x409fd6
mov eax, dword [ebp - 0x18]
mov dword [eax + 0x28], 2
jmp 0x409ff9
push 0x428054
push ebx
call edi
test eax, eax
pop ecx
pop ecx
jne 0x40a1c6
mov eax, dword [ebp - 0x18]
or dword [0x430858], 0xffffffff
mov dword [eax + 0x28], 3
lea ecx, [ebx - 0x10]
jmp 0x409d58
push str._news_page
push esi
call edi
test eax, eax
pop ecx
pop ecx
jne 0x40a03f
mov edi, dword [ebp - 0x18]
add edi, 0x30
push edi
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00409902
add esp, 0x10
test eax, eax
jne 0x40a070
push 0x10
push str.Xunlei_LiveUpdate
push str.Invalid__news_page_command_line_param
jmp 0x40a214
push str._name
push esi
call edi
test eax, eax
pop ecx
pop ecx
jne 0x40a07a
mov edi, dword [ebp - 0x18]
add edi, 0x2c
push edi
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00409902
add esp, 0x10
test eax, eax
je 0x40a208
mov esi, 0x42806c
jmp 0x409e86
push str._nopop
push esi
call edi
test eax, eax
pop ecx
pop ecx
jne 0x40a095
push eax
call fcn.00402b32
mov ecx, eax
call fcn.00402102
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00409902
add esp, 0x10
test eax, eax
je 0x40a221
mov esi, dword [ebp - 0x24]
cmp dword [esi - 0xc], 0
jne 0x409bf1
lea ecx, [esi - 0x10]
call fcn.004021e8
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.004021e8
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.004021e8
lea ecx, [ebx - 0x10]
call fcn.004021e8
xor eax, eax
inc eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
push 0x10
push str.Xunlei_LiveUpdate
push str.Invalid__PackType_command_line_param
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
lea ecx, [ebx - 0x10]
call fcn.004021e8
lea ecx, [edi - 0x10]
call fcn.004021e8
lea ecx, [esi - 0x10]
call fcn.004021e8
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.004021e8
mov ebx, dword [ebp - 0x20]
xor esi, esi
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.004021e8
lea ecx, [ebx - 0x10]
call fcn.004021e8
mov eax, esi
jmp 0x40a0eb
push 0x10
push str.Xunlei_LiveUpdate
push str.Invalid__UpdateType_command_line_param
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
lea ecx, [edi - 0x10]
call fcn.004021e8
lea ecx, [esi - 0x10]
jmp 0x40a227
push 0x10
push str.Xunlei_LiveUpdate
push str.Invalid__showgui_command_line_param
jmp 0x40a15b
push 0x10
push str.Xunlei_LiveUpdate
push str.Invalid__CPP_command_line_param
jmp 0x40a214
push 0x80070057
call fcn.00401f5b
push 0x10
push str.Xunlei_LiveUpdate
push str.Invalid__CPid_command_line_param
jmp 0x40a15b
push 0x10
push str.Xunlei_LiveUpdate
push str.Invalid__DLP_command_line_param
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
jmp 0x40a166
push 0x10
push str.Xunlei_LiveUpdate
push str.Unknown_download_platform
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
lea ecx, [ebx - 0x10]
call fcn.004021e8
lea ecx, [esi - 0x10]
call fcn.004021e8
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.004021e8
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.004021e8
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
jmp 0x40a245
push 0x10
push str.Xunlei_LiveUpdate
push str.Invalid__name_command_line_param
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x40a16b
mov ecx, dword [ebp - 0x24]
add ecx, 0xfffffff0
call fcn.004021e8
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.004021e8
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.004021e8
lea ecx, [ebx - 0x10]
call fcn.004021e8
xor eax, eax
jmp 0x40a0eb