Function at 0x443540
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4df350
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
push ebx
push edi
mov eax, dword [0x513330]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
cmp byte [esi + 0x2c8], 0
lea ecx, [esi + 0x2bc]
push 1
lea eax, [esi + 0x20]
je 0x443586
push 0x454
jmp 0x44358b
push 0x3ef
call fcn.004324e0
mov eax, dword [0x51856c]
mov edx, dword [eax + 0xc]
mov ecx, 0x51856c
call edx
add eax, 0x10
mov dword [esp + 0x10], eax
xor edi, edi
mov dword [esp + 0x50], edi
mov ecx, dword [esi + 0x2c4]
mov eax, dword [ecx]
mov edx, dword [eax + 8]
call edx
mov ebx, eax
mov eax, dword [esi + 0x2bc]
mov dword [esp + 0x24], ebx
cmp dword [eax - 0xc], edi
jne 0x4436df
lea ecx, [esp + 0x14]
push ecx
mov ecx, str.Enter_video_URL_
call fcn.00405a00
lea edx, [esp + 0x18]
push edx
mov ecx, str.msg.err.enter.url
mov byte [esp + 0x54], 1
call fcn.00405a00
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x28]
push edx
mov ecx, ebx
mov byte [esp + 0x5c], 2
call fcn.0046f110
lea edi, [esp + 0x10]
mov byte [esp + 0x50], 3
call fcn.004082a0
mov byte [esp + 0x50], 2
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x44363f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x50], 1
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x443664
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x50], 0
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x443689
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esi + 0x2c4]
mov edx, dword [ecx]
mov edx, dword [edx + 0x14]
lea eax, [esp + 0x20]
push eax
call edx
mov eax, dword [eax]
mov edi, dword [esp + 0x10]
push 0x30
push eax
mov eax, dword [esi + 4]
push edi
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4436cf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x50], 0xffffffff
lea eax, [edi - 0x10]
jmp 0x443e21
lea ecx, [esp + 0x20]
push ecx
mov ecx, esi
call fcn.004448c0
mov byte [esp + 0x50], 4
mov eax, dword [eax]
lea edx, [esp + 0xc]
push edx
mov ecx, eax
call fcn.00405a00
mov byte [esp + 0x50], 6
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x443723
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4438a5
lea edx, [esp + 0xc]
push edx
call fcn.0046d0c0
add esp, 4
test al, al
je 0x44375c
lea eax, [esp + 0xc]
push eax
call fcn.0046b750
add esp, 4
cmp eax, edi
je 0x4438a5
mov edx, dword [0x51856c]
mov eax, dword [edx + 0xc]
mov ecx, 0x51856c
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
lea ecx, [esp + 0x1c]
push ecx
mov ecx, str.The_destination_folder_you_selected___1___does_not_exist._nPlease_select_below_a_new_location_to_save_your_file.
mov byte [esp + 0x54], 7
call fcn.00405a00
lea edx, [esp + 0x18]
push edx
mov ecx, str.msg.notexist.download.dir
mov byte [esp + 0x54], 8
call fcn.00405a00
lea eax, [esp + 0x1c]
push eax
mov bl, 9
mov byte [esp + 0x54], bl
mov ecx, dword [esi + 0x2c4]
lea edx, [esp + 0x1c]
push edx
mov edx, dword [ecx]
lea eax, [esp + 0x28]
push eax
mov eax, dword [edx + 8]
call eax
mov ecx, eax
call fcn.0046f110
mov byte [esp + 0x50], 0xa
mov ecx, dword [esp + 0xc]
mov eax, dword [eax]
push ecx
push eax
lea edx, [esp + 0x1c]
push edx
call fcn.00407a10
mov byte [esp + 0x5c], bl
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
add esp, 0xc
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x443802
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x50], 8
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x443827
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x50], 7
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x44384c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x14]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x2c], esp
mov edi, esp
call fcn.00408230
add eax, 0x10
mov dword [edi], eax
mov edi, esi
call fcn.00444390
cmp al, 1
jne 0x443a4d
lea ecx, [esp + 0x20]
push ecx
mov ecx, esi
call fcn.004448c0
lea edi, [esp + 0xc]
mov byte [esp + 0x50], 0xb
call fcn.004082a0
lea ecx, [esp + 0x20]
call fcn.00405f50
lea ecx, [esp + 0x14]
call fcn.00405f50
mov ebx, dword [esp + 0x24]
xor edi, edi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], edi
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], edi
mov dword [esp + 0x40], 0xa
lea edx, [esp + 0x1c]
push edx
mov ecx, 0x4ea7ac
mov byte [esp + 0x54], 0xc
call fcn.00405a00
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x20]
push ecx
lea eax, [esi + 0x2bc]
push eax
mov byte [esp + 0x5c], 0xd
call fcn.00478ce0
mov byte [esp + 0x5c], 0xc
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
add esp, 0xc
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x443918
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esi + 0x2c4]
push ecx
lea ecx, [esp + 0x30]
call fcn.00486ee0
test al, al
je 0x443a2a
lea edx, [esp + 0x18]
push edx
mov ecx, str.It_appears_youre_trying_to_download_videos_from_a_site_we_do_not_support._nThese_videos_have_not_been_moved_to_your_activity_tab._nPlease_see_http:__www.youtubedownloadersite.com_supported_sites.html_for_a_list_of_supported_sites.
call fcn.00405a00
lea eax, [esp + 0x1c]
push eax
mov ecx, str.msg.err.unsuport.site
mov byte [esp + 0x54], 0xe
call fcn.00405a00
mov byte [esp + 0x50], 0xf
mov ecx, dword [esi + 0x2c4]
mov edx, dword [ecx]
mov edx, dword [edx + 0x14]
lea eax, [esp + 0x20]
push eax
call edx
mov edi, eax
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x2c]
push edx
mov ecx, ebx
mov byte [esp + 0x5c], 0x10
call fcn.0046f110
mov edi, dword [edi]
mov eax, dword [eax]
push 0x30
push edi
push eax
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4439b9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x50], 0xf
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4439de
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x50], 0xe
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x443a03
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x50], 0xc
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x443a28
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor edi, edi
cmp dword [esp + 0x34], edi
jne 0x443a6d
mov edx, 0x4e7868
lea edi, [esi + 0x2bc]
call fcn.00405c20
push 0
push esi
call fcn.004416c0
jmp 0x443de4
lea ecx, [esp + 0x14]
call fcn.00405f50
lea eax, [esp + 0xc]
call fcn.00452320
lea ecx, [esp + 0x10]
call fcn.00405f50
jmp 0x443e3a
lea eax, [esp + 0x2c]
mov byte [esp + 0x18], 1
mov byte [esp + 0x14], 1
call fcn.00462f10
test al, al
je 0x443bac
lea ecx, [esp + 0x20]
push ecx
mov ecx, str.One_or_more_ULRs_are_playlists._The_videos_in_this_playlist_will_be_downloaded_one_at_a_time._Depending_on_the_size_of_the_videos__this_could_take_a_long_time._nClick__Yes__to_download_the_whole_playlist__n_No__to_download_the_single_video_you_were_watching_or__n_Cancel__to_cancel_the_playlist_download.
call fcn.00405a00
lea edx, [esp + 0x1c]
push edx
mov ecx, str.msg.download.playlist
mov byte [esp + 0x54], 0x11
call fcn.00405a00
mov byte [esp + 0x50], 0x12
mov ecx, dword [esi + 0x2c4]
lea eax, [esp + 0x20]
push eax
lea edx, [esp + 0x20]
push edx
mov edx, dword [ecx]
lea eax, [esp + 0x2c]
push eax
mov eax, dword [edx + 8]
call eax
mov ecx, eax
call fcn.0046f110
mov byte [esp + 0x50], 0x14
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x443af8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x50], 0x15
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x443b1d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esi + 0x2c4]
mov edx, dword [ecx]
mov edx, dword [edx + 0x14]
lea eax, [esp + 0x28]
push eax
call edx
mov eax, dword [eax]
mov ebx, dword [esp + 0x24]
push 0x23
push eax
mov eax, dword [esi + 4]
push ebx
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
mov edi, eax
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x443b65
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
sub edi, 2
je 0x443b82
sub edi, 4
je 0x443b7b
sub edi, 1
jne 0x443b8b
mov byte [esp + 0x18], 0
jmp 0x443b8b
mov byte [esp + 0x18], 1
jmp 0x443b8b
lea eax, [esp + 0x2c]
call fcn.00462fb0
lea eax, [ebx - 0x10]
mov byte [esp + 0x50], 0xc
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x443bac
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [esp + 0x2c]
test edi, edi
je 0x443d0a
xor eax, eax
test edi, edi
setne al
test eax, eax
je 0x443bdc
mov eax, edi
mov edi, dword [edi]
add eax, 8
call fcn.00462df0
test al, al
jne 0x443be6
test edi, edi
jne 0x443bb8
jmp 0x443d0a
push 0x80004005
call fcn.00405ef0
lea ecx, [esp + 0x1c]
push ecx
mov ecx, str.One_or_more_URLs_are_full_channels._The_videos_in_the_channel_will_be_downloaded_one_at_a_time._Depending_on_the_size_of_the_videos__this_could_take_a_long_time._nClick__Yes__to_download_all_videos_in_the_channel__n_No__to_download_the_single_video_you_are_watching_or__n_Cancel__to_cancel_the_channel_download.
call fcn.00405a00
lea edx, [esp + 0x20]
push edx
mov ecx, str.msg.download.channel
mov byte [esp + 0x54], 0x16
call fcn.00405a00
mov byte [esp + 0x50], 0x17
mov ecx, dword [esi + 0x2c4]
lea eax, [esp + 0x1c]
push eax
lea edx, [esp + 0x24]
push edx
mov edx, dword [ecx]
lea eax, [esp + 0x30]
push eax
mov eax, dword [edx + 8]
call eax
mov ecx, eax
call fcn.0046f110
mov byte [esp + 0x50], 0x19
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x443c56
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x50], 0x1a
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x443c7b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esi + 0x2c4]
mov edx, dword [ecx]
mov edx, dword [edx + 0x14]
lea eax, [esp + 0x24]
push eax
call edx
mov eax, dword [eax]
mov ebx, dword [esp + 0x28]
push 0x23
push eax
mov eax, dword [esi + 4]
push ebx
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
mov edi, eax
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x443cc3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
sub edi, 2
je 0x443ce0
sub edi, 4
je 0x443cd9
sub edi, 1
jne 0x443ce9
mov byte [esp + 0x14], 0
jmp 0x443ce9
mov byte [esp + 0x14], 1
jmp 0x443ce9
lea eax, [esp + 0x2c]
call fcn.00463030
lea eax, [ebx - 0x10]
mov byte [esp + 0x50], 0xc
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x443d0a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, 0x4e7868
lea edi, [esi + 0x2bc]
call fcn.00405c20
push 0
push esi
call fcn.004416c0
mov ecx, dword [esi + 0x2c4]
mov eax, dword [ecx + 0x29c]
mov edx, dword [esi + 0x2cc]
push 0
push eax
push 0x402
push edx
call dword [sym.imp.USER32.dll_PostMessageW]
mov eax, dword [esi + 0x268]
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0
push pe_nt_image_headers32
push eax
call edi
test eax, eax
je 0x443d6d
cmp byte [esi + 0x2c8], 0
mov byte [esp + 0x20], 1
jne 0x443d72
mov byte [esp + 0x20], 0
mov ecx, dword [esi + 0x260]
push 0
push 0
push 0x147
push ecx
call edi
mov edx, dword [esi + 0x264]
push 0
push 0
push 0x147
push edx
mov ebx, eax
call edi
push 0
push 0
mov dword [esp + 0x30], eax
mov eax, dword [esi + 0x26c]
push pe_nt_image_headers32
push eax
call edi
mov ecx, dword [esp + 0x28]
test eax, eax
push ebx
push ecx
mov ecx, dword [esp + 0x28]
setne dl
movzx eax, dl
mov edx, dword [esp + 0x1c]
push eax
mov eax, dword [esp + 0x24]
push ecx
push edx
push eax
push esi
call fcn.00444230
mov edx, dword [esi + 0x2c4]
push eax
lea ecx, [esp + 0x48]
push ecx
push edx
call fcn.00486940
lea ecx, [esp + 0x2c]
call fcn.0043a610
mov byte [esp + 0x50], 0
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x443e12
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x50], 0xffffffff
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x443e3a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov esp, ebp
pop ebp
ret