Function at 0x4173db
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xf4
mov eax, dword [0x456070]
xor eax, esp
mov dword [esp + 0xf0], eax
mov eax, dword [ebp + 0x10]
push ebx
push esi
xor ebx, ebx
push edi
test eax, eax
je 0x417414
push str.__stat
push eax
call fcn.0041d210
pop ecx
pop ecx
mov cl, 1
test eax, eax
jne 0x417416
mov cl, bl
call fcn.0040ca87
push 0xf
xor eax, eax
mov dword [esp + 0x9c], 7
pop edi
lea edx, [esp + 0x24]
mov dword [esp + 0x94], ebx
lea ecx, [esp + 0x84]
mov word [esp + 0x84], ax
mov dword [esp + 0x38], edi
mov dword [esp + 0x34], ebx
mov byte [esp + 0x24], bl
call fcn.0040d407
push 8
pop esi
cmp dword [esp + 0x98], esi
lea eax, [esp + 0x84]
cmovae eax, dword [esp + 0x84]
push eax
push str.Downloader_filename:__s_n
push dword [0x4585c4]
call fcn.00408bec
cmp dword [esp + 0x44], 0x10
lea ecx, [esp + 0x30]
mov eax, dword [esp + 0x40]
cmovae ecx, dword [esp + 0x30]
add eax, ecx
cmp dword [esp + 0x44], 0x10
lea ecx, [esp + 0x30]
cmovae ecx, dword [esp + 0x30]
add esp, 8
push eax
push ecx
lea ecx, [esp + 0x48]
call fcn.0041796e
cmp dword [eax + 0x14], esi
jb 0x4174b7
mov eax, dword [eax]
push eax
push str.Downloader_HostUrl:__s_n
push dword [0x4585c4]
call fcn.00408bec
add esp, 0xc
lea ecx, [esp + 0x3c]
push ebx
push 1
call fcn.00401a9a
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea ecx, [esp + 0xb8]
call fcn.00405962
cmp dword [esp + 0xc8], esi
lea eax, [esp + 0xb4]
cmovae eax, dword [esp + 0xb4]
push eax
push str.Command_line:__s_n
push dword [0x4585c4]
call fcn.00408bec
add esp, 0xc
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], ebx
call fcn.004117c8
lea edx, [esp + 0x10]
mov dword [esp + 0x10], eax
lea ecx, [esp + 0xb4]
call fcn.0040bdfd
cmp dword [esp + 0x14], ebx
jne 0x4175e1
lea ecx, [esp + 0x6c]
call fcn.0041727c
cmp dword [esp + 0x80], esi
lea eax, [esp + 0x6c]
cmovae eax, dword [esp + 0x6c]
push eax
push str.Tags_found:__s_n
push dword [0x4585c4]
call fcn.00408bec
add esp, 0xc
lea edx, [esp + 0x6c]
lea ecx, [esp + 0x1c]
call fcn.0040b9d2
push ecx
push ecx
mov ecx, esp
lea eax, [esp + 0x24]
push ecx
push eax
lea esi, [esp + 0x20]
call fcn.004179ab
lea ecx, [esp + 0x44]
call fcn.0040bb24
pop ecx
pop ecx
mov edx, esi
mov ecx, eax
call fcn.0040bdfd
push ebx
push 1
lea ecx, [esp + 0x44]
call fcn.00401a9a
lea ecx, [esp + 0x1c]
call fcn.0040d73b
push ebx
push 1
lea ecx, [esp + 0x74]
call fcn.00401a9a
cmp dword [esp + 0x14], ebx
jne 0x4175e1
push str.Invalid_parameters_n
push dword [0x4585c4]
call fcn.00408bec
pop ecx
pop ecx
push 2
pop ebx
jmp 0x417813
push str.partner
lea ecx, [esp + 0x40]
call fcn.00405962
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x14]
call fcn.0040d92c
push eax
lea ecx, [esp + 0xa0]
call fcn.00402900
push 0
push 1
lea ecx, [esp + 0x44]
call fcn.00401a9a
and dword [esp + 0x64], ebx
lea ecx, [esp + 0x6c]
push str.noaction
mov dword [esp + 0x6c], edi
mov byte [esp + 0x58], bl
call fcn.00405962
mov edi, dword [esp + 0x10]
lea eax, [esp + 0x6c]
push eax
lea ecx, [esp + 0x14]
call fcn.00408bad
mov esi, eax
cmp esi, edi
je 0x41765b
lea eax, [esi + 0x10]
push eax
lea eax, [esp + 0x70]
push eax
call fcn.00408ace
test al, al
je 0x41765d
mov esi, edi
push 0
push 1
lea ecx, [esp + 0x74]
call fcn.00401a9a
cmp esi, edi
je 0x4176c8
cmp dword [esp + 0xac], ebx
je 0x4176c0
mov esi, str.noaction_p
push esi
call fcn.00408dda
pop ecx
push eax
push esi
lea ecx, [esp + 0x5c]
call fcn.0040fe1d
sub esp, 0x18
lea eax, [esp + 0xb4]
mov ecx, esp
push eax
call fcn.00402900
lea ecx, [esp + 0x54]
call fcn.004183d9
add esp, 0x18
lea ecx, [esp + 0x54]
push 0xffffffffffffffff
push 0
push eax
call fcn.0041002f
lea ecx, [esp + 0x3c]
jmp 0x41773a
xor ebx, ebx
inc ebx
jmp 0x4177c4
push str.stat
lea ecx, [esp + 0x40]
call fcn.00405962
mov edi, dword [esp + 0x10]
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x14]
call fcn.00408bad
mov esi, eax
cmp esi, edi
je 0x417700
lea eax, [esi + 0x10]
push eax
lea eax, [esp + 0x40]
push eax
call fcn.00408ace
test al, al
je 0x417702
mov esi, edi
push 0
push 1
lea ecx, [esp + 0x44]
call fcn.00401a9a
lea edx, [esp + 0x10]
cmp esi, edi
je 0x417745
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0xd0]
call fcn.00416f75
pop ecx
push eax
lea ecx, [esp + 0x58]
call fcn.0040dc43
lea ecx, [esp + 0xcc]
push 0
push 1
call fcn.0040fcd5
jmp 0x4177c4
lea ecx, [esp + 0x9c]
call fcn.00408693
test al, al
je 0x417762
lea ecx, [esp + 0x10]
call fcn.0040cd5f
mov ebx, eax
jmp 0x4177c4
cmp dword [esp + 0xac], ebx
je 0x4177c1
mov esi, str.declined_p
push esi
call fcn.00408dda
pop ecx
push eax
push esi
lea ecx, [esp + 0x5c]
call fcn.0040fe1d
sub esp, 0x18
lea eax, [esp + 0xb4]
mov ecx, esp
push eax
call fcn.00402900
lea ecx, [esp + 0xfc]
call fcn.004183d9
add esp, 0x18
lea ecx, [esp + 0x54]
push 0xffffffffffffffff
push 0
push eax
call fcn.0041002f
push 0
push 1
lea ecx, [esp + 0xec]
call fcn.0040fcd5
push 3
pop ebx
cmp dword [esp + 0x64], 0
je 0x4177d6
lea ecx, [esp + 0x54]
call fcn.00417c09
mov ebx, eax
push ebx
push str.stat_res:__d_n
push dword [0x4585c4]
call fcn.00408bec
add esp, 0xc
push dword [0x4585c4]
call fcn.00420b1a
pop ecx
push 0
push 1
lea ecx, [esp + 0x5c]
call fcn.0040fcd5
push 0
push 1
lea ecx, [esp + 0xa4]
call fcn.00401a9a
lea ecx, [esp + 0x10]
call fcn.0040d73b
push 0
push 1
lea ecx, [esp + 0xbc]
call fcn.00401a9a
push 0
push 1
lea ecx, [esp + 0x2c]
call fcn.0040fcd5
push 0
push 1
lea ecx, [esp + 0x8c]
call fcn.00401a9a
mov ecx, dword [esp + 0xfc]
mov eax, ebx
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0041aa0d
mov esp, ebp
pop ebp
ret 0x10