Function at 0x41c020
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49f81e
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [0x4c9890]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
lea eax, [edi + 0x47ba]
push eax
mov dword [ebp - 0x21c], eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41c0fa
lea ebx, [edi + 0x3982]
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41c076
sub ecx, edx
sar ecx, 1
je 0x41c0fa
lea eax, [edi + 0x8b0]
mov edi, dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
mov dword [ebp - 0x220], eax
call edi
push ebx
mov esi, eax
call edi
mov cx, word [eax]
cmp cx, word [esi]
jne 0x41c0c7
test cx, cx
je 0x41c0c3
mov cx, word [eax + 2]
cmp cx, word [esi + 2]
jne 0x41c0c7
add eax, 4
add esi, 4
test cx, cx
jne 0x41c0a1
xor eax, eax
jmp 0x41c0cc
sbb eax, eax
or eax, 1
test eax, eax
je 0x41c2bb
push ebx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push dword [ebp - 0x220]
call edi
push eax
push 0x104
push ebx
call fcn.00411ff0
mov eax, dword [ebp - 0x21c]
jmp 0x41c2a6
push 0x104
lea ebx, [edi + 0x3982]
push ebx
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push ebx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push eax
call fcn.004866f0
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.00412920
add esp, 0x14
push 0x103
test eax, eax
js 0x41c157
lea eax, [ebp - 0x218]
push eax
jmp 0x41c158
push ebx
push 0x4cb060
call fcn.00487152
xor eax, eax
add esp, 0xc
mov word [0x4cb266], ax
cmp byte [edi + 0xea0a], al
je 0x41c1fc
push str.Skip_SHBrowse_Dlg_due_to_command_defaultFolder
call fcn.004010d0
add esp, 4
mov ecx, 0x4a1b98
lea eax, [ebp - 0x218]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x41c1b7
test dx, dx
je 0x41c1b3
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x41c1b7
add eax, 4
add ecx, 4
test dx, dx
jne 0x41c191
xor eax, eax
jmp 0x41c1bc
sbb eax, eax
or eax, 1
test eax, eax
je 0x41c1e8
push 0x103
lea eax, [ebp - 0x218]
push eax
push 0x104
push ebx
call fcn.00486548
add esp, 0x10
xor eax, eax
mov word [edi + 0x3b88], ax
jmp 0x41c287
push str._ERROR_PrepareSavingPath____Skip_SHBrowse_Dlg__failed_to_get_CSIDL_PERSONAL_path.
call fcn.004010d0
add esp, 4
xor eax, eax
jmp 0x41c2c0
push 0x30bc
call fcn.004867f5
add esp, 4
mov dword [ebp - 0x21c], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x41c22a
push 0
push dword [edi + 0xc]
mov ecx, eax
call fcn.00405530
mov esi, eax
jmp 0x41c22c
xor esi, esi
push 0x103
push 0x4cb060
push 0x4cae00
mov dword [ebp - 4], 0xffffffff
call fcn.00487152
add esp, 0xc
lea ecx, [esi + 0x1c94]
push 0x4cb060
call fcn.004089a0
push eax
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov ecx, esi
call fcn.00405e30
push 0x103
push 0x4cae00
push ebx
call fcn.00487152
add esp, 0xc
test esi, esi
je 0x41c287
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax]
lea eax, [edi + 0x8b0]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
push 0x104
push ebx
call fcn.00411ff0
lea eax, [edi + 0x47ba]
add esp, 0xc
push eax
push ebx
push str.SavePath
push str.Downloader
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00487c50
mov esp, ebp
pop ebp
ret