Function at 0x416460
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xf4
mov eax, dword [0x455070]
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 0x416499
push str.__stat
push eax
call fcn.0041c2a0
pop ecx
pop ecx
mov cl, 1
test eax, eax
jne 0x41649b
mov cl, bl
call fcn.0040bc56
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.0040c592
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 [0x4575c4]
call fcn.00408bde
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.004169f3
cmp dword [eax + 0x14], esi
jb 0x41653c
mov eax, dword [eax]
push eax
push str.Downloader_HostUrl:__s_n
push dword [0x4575c4]
call fcn.00408bde
add esp, 0xc
lea ecx, [esp + 0x3c]
push ebx
push 1
call fcn.00401a8a
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea ecx, [esp + 0xb8]
call fcn.00405952
cmp dword [esp + 0xc8], esi
lea eax, [esp + 0xb4]
cmovae eax, dword [esp + 0xb4]
push eax
push str.Command_line:__s_n
push dword [0x4575c4]
call fcn.00408bde
add esp, 0xc
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], ebx
call fcn.0040f521
lea edx, [esp + 0x10]
mov dword [esp + 0x10], eax
lea ecx, [esp + 0xb4]
call fcn.0040afcc
cmp dword [esp + 0x14], ebx
jne 0x416666
lea ecx, [esp + 0x6c]
call fcn.00416301
cmp dword [esp + 0x80], esi
lea eax, [esp + 0x6c]
cmovae eax, dword [esp + 0x6c]
push eax
push str.Tags_found:__s_n
push dword [0x4575c4]
call fcn.00408bde
add esp, 0xc
lea edx, [esp + 0x6c]
lea ecx, [esp + 0x1c]
call fcn.0040aba1
push ecx
push ecx
mov ecx, esp
lea eax, [esp + 0x24]
push ecx
push eax
lea esi, [esp + 0x20]
call fcn.00416a30
lea ecx, [esp + 0x44]
call fcn.0040acf3
pop ecx
pop ecx
mov edx, esi
mov ecx, eax
call fcn.0040afcc
push ebx
push 1
lea ecx, [esp + 0x44]
call fcn.00401a8a
lea ecx, [esp + 0x1c]
call fcn.0040c8c6
push ebx
push 1
lea ecx, [esp + 0x74]
call fcn.00401a8a
cmp dword [esp + 0x14], ebx
jne 0x416666
push str.Invalid_parameters_n
push dword [0x4575c4]
call fcn.00408bde
pop ecx
pop ecx
push 2
pop ebx
jmp 0x416898
push str.partner
lea ecx, [esp + 0x40]
call fcn.00405952
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x14]
call fcn.0040cab7
push eax
lea ecx, [esp + 0xa0]
call fcn.004028f0
push 0
push 1
lea ecx, [esp + 0x44]
call fcn.00401a8a
and dword [esp + 0x64], ebx
lea ecx, [esp + 0x6c]
push str.noaction
mov dword [esp + 0x6c], edi
mov byte [esp + 0x58], bl
call fcn.00405952
mov edi, dword [esp + 0x10]
lea eax, [esp + 0x6c]
push eax
lea ecx, [esp + 0x14]
call fcn.00408b9f
mov esi, eax
cmp esi, edi
je 0x4166e0
lea eax, [esi + 0x10]
push eax
lea eax, [esp + 0x70]
push eax
call fcn.00408ac0
test al, al
je 0x4166e2
mov esi, edi
push 0
push 1
lea ecx, [esp + 0x74]
call fcn.00401a8a
cmp esi, edi
je 0x41674d
cmp dword [esp + 0xac], ebx
je 0x416745
mov esi, str.noaction_p
push esi
call fcn.00408d82
pop ecx
push eax
push esi
lea ecx, [esp + 0x5c]
call fcn.0040e620
sub esp, 0x18
lea eax, [esp + 0xb4]
mov ecx, esp
push eax
call fcn.004028f0
lea ecx, [esp + 0x54]
call fcn.0041745e
add esp, 0x18
lea ecx, [esp + 0x54]
push 0xffffffffffffffff
push 0
push eax
call fcn.0040e832
lea ecx, [esp + 0x3c]
jmp 0x4167bf
xor ebx, ebx
inc ebx
jmp 0x416849
push str.stat
lea ecx, [esp + 0x40]
call fcn.00405952
mov edi, dword [esp + 0x10]
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x14]
call fcn.00408b9f
mov esi, eax
cmp esi, edi
je 0x416785
lea eax, [esi + 0x10]
push eax
lea eax, [esp + 0x40]
push eax
call fcn.00408ac0
test al, al
je 0x416787
mov esi, edi
push 0
push 1
lea ecx, [esp + 0x44]
call fcn.00401a8a
lea edx, [esp + 0x10]
cmp esi, edi
je 0x4167ca
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0xd0]
call fcn.00415ffa
pop ecx
push eax
lea ecx, [esp + 0x58]
call fcn.0040cdce
lea ecx, [esp + 0xcc]
push 0
push 1
call fcn.0040e4d8
jmp 0x416849
lea ecx, [esp + 0x9c]
call fcn.00408685
test al, al
je 0x4167e7
lea ecx, [esp + 0x10]
call fcn.0040bf29
mov ebx, eax
jmp 0x416849
cmp dword [esp + 0xac], ebx
je 0x416846
mov esi, str.declined_p
push esi
call fcn.00408d82
pop ecx
push eax
push esi
lea ecx, [esp + 0x5c]
call fcn.0040e620
sub esp, 0x18
lea eax, [esp + 0xb4]
mov ecx, esp
push eax
call fcn.004028f0
lea ecx, [esp + 0xfc]
call fcn.0041745e
add esp, 0x18
lea ecx, [esp + 0x54]
push 0xffffffffffffffff
push 0
push eax
call fcn.0040e832
push 0
push 1
lea ecx, [esp + 0xec]
call fcn.0040e4d8
push 3
pop ebx
cmp dword [esp + 0x64], 0
je 0x41685b
lea ecx, [esp + 0x54]
call fcn.00416c8e
mov ebx, eax
push ebx
push str.stat_res:__d_n
push dword [0x4575c4]
call fcn.00408bde
add esp, 0xc
push dword [0x4575c4]
call fcn.0041fb9f
pop ecx
push 0
push 1
lea ecx, [esp + 0x5c]
call fcn.0040e4d8
push 0
push 1
lea ecx, [esp + 0xa4]
call fcn.00401a8a
lea ecx, [esp + 0x10]
call fcn.0040c8c6
push 0
push 1
lea ecx, [esp + 0xbc]
call fcn.00401a8a
push 0
push 1
lea ecx, [esp + 0x2c]
call fcn.0040e4d8
push 0
push 1
lea ecx, [esp + 0x8c]
call fcn.00401a8a
mov ecx, dword [esp + 0xfc]
mov eax, ebx
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00419a78
mov esp, ebp
pop ebp
ret 0x10