Function at 0x417b40
Capabilities:
Delete file
Get common file path
Write file on windows

Disassembly:
push ebp
mov eax, 0x129c
mov ebp, esp
push edi
push esi
push ebx
call fcn.0045b7f0
sub esp, eax
mov dword [esp + 4], 0xc08
mov dword [esp], str..._wine_dlls_urlmon_tests_protocol.c
call fcn.0045a5b0
mov dword [esp], str.Testing_file_protocol..._n
call fcn.0045a850
xor edx, edx
xor eax, eax
call fcn.00411010
mov eax, dword fs:[0x18]
mov dword [eax + 0x34], 0xdeadbeef
mov eax, dword [sym.imp.kernel32.dll_CreateFileW]
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], pe_nt_image_headers32
mov dword [esp + 0x10], 2
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x40000000
mov dword [esp], 0x464f40
mov dword [ebp - 0x127c], eax
call eax
sub esp, 0x1c
mov ebx, eax
mov dword [esp + 4], 0xc0e
mov dword [esp], str..._wine_dlls_urlmon_tests_protocol.c
call fcn.0045a5b0
xor eax, eax
cmp ebx, 0xffffffff
mov dword [esp + 4], 0x461dca
setne al
mov dword [esp], eax
call fcn.0045a820
cmp ebx, 0xffffffff
je 0x4181b8
lea eax, [ebp - 0x126c]
mov dword [esp], ebx
lea edi, [ebp - 0x1056]
mov dword [esp + 0xc], eax
mov eax, dword [sym.imp.kernel32.dll_WriteFile]
mov dword [esp + 0x10], 0
mov dword [esp + 8], 0xd
mov dword [esp + 4], 0x46409c
mov dword [ebp - 0x1284], eax
call eax
mov eax, dword [sym.imp.kernel32.dll_CloseHandle]
sub esp, 0x14
mov dword [esp], ebx
mov ebx, 0x5c
mov dword [ebp - 0x1280], eax
call eax
mov eax, 0x464f20
mov dword [0x49ca68], 0x464f40
mov dword [0x49ca3c], 0
sub esp, 4
call fcn.00416500
mov eax, 0x464f20
mov dword [0x49ca3c], 0x100000
call fcn.00416500
mov eax, 0x464f20
mov dword [0x49ca3c], 0x100040
call fcn.00416500
mov eax, dword [0x464090]
mov dword [esp + 4], edi
mov esi, dword [sym.imp.kernel32.dll_GetCurrentDirectoryW]
mov dword [esp], 0x81f
mov dword [ebp - 0x1060], eax
mov eax, dword [0x464094]
mov dword [ebp - 0x105c], eax
mov eax, dword [0x464098]
mov dword [ebp - 0x1058], eax
call esi
mov edx, dword [0x464f44]
mov dword [0x49ca68], edi
lea edi, [ebp - 0x1268]
mov word [ebp + eax*2 - 0x1056], bx
add eax, 6
mov ebx, dword [0x464f40]
sub esp, 8
mov dword [ebp + eax*2 - 0x105c], edx
mov edx, dword [0x464f48]
mov dword [ebp + eax*2 - 0x1060], ebx
mov dword [ebp + eax*2 - 0x1058], edx
mov edx, dword [0x464f4c]
mov dword [0x49ca3c], 0
mov dword [ebp + eax*2 - 0x1054], edx
mov edx, dword [0x464f50]
mov dword [ebp + eax*2 - 0x1050], edx
movzx edx, word [0x464f54]
mov word [ebp + eax*2 - 0x104c], dx
lea eax, [ebp - 0x1060]
call fcn.00416500
lea eax, [ebp - 0x1060]
mov dword [0x49ca3c], 0x100000
call fcn.00416500
mov eax, dword [str.file:__]
mov dword [esp + 4], edi
mov dword [esp], 0x104
mov dword [ebp - 0x1060], eax
mov eax, dword [0x464084]
mov dword [ebp - 0x105c], eax
mov eax, dword [0x464088]
mov dword [ebp - 0x1058], eax
mov eax, dword [0x46408c]
mov dword [ebp - 0x1054], eax
call esi
mov edx, 0x5c
mov ecx, dword [0x464f4c]
mov word [ebp + eax*2 - 0x1268], dx
add eax, 1
sub esp, 8
mov edx, dword [0x464f44]
mov dword [ebp + eax*2 - 0x125c], ecx
movzx ecx, word [0x464f54]
mov dword [ebp + eax*2 - 0x1264], edx
mov edx, dword [0x464f48]
mov dword [ebp + eax*2 - 0x1268], ebx
mov dword [ebp + eax*2 - 0x1260], edx
mov edx, dword [0x464f50]
mov word [ebp + eax*2 - 0x1254], cx
mov dword [ebp + eax*2 - 0x1258], edx
xor eax, eax
nop
movzx edx, word [edi + eax]
mov word [ebp + eax - 0x1052], dx
add eax, 2
test dx, dx
jne 0x417e00
lea eax, [ebp - 0x1060]
mov dword [0x49ca68], edi
mov dword [0x49ca3c], 0
call fcn.00416500
lea eax, [ebp - 0x1060]
mov dword [0x49ca3c], 0x100000
call fcn.00416500
mov ecx, 0x7c
lea eax, [ebp - 0x1060]
mov word [ebp - 0x1050], cx
call fcn.00416500
mov eax, dword [str.file:___]
lea ecx, [ebp - 0x1050]
mov dword [esp], 0x81c
mov dword [esp + 4], ecx
mov dword [ebp - 0x1060], eax
mov eax, dword [0x464070]
mov dword [ebp - 0x105c], eax
mov eax, dword [0x464074]
mov dword [ebp - 0x1058], eax
mov eax, dword [0x464078]
mov dword [ebp - 0x1054], eax
movzx eax, word [0x46407c]
mov word [ebp - 0x1050], ax
call esi
mov edx, 0x5c
mov ecx, dword [0x464f48]
mov dword [0x49ca3c], 0
mov word [ebp + eax*2 - 0x1050], dx
add eax, 9
sub esp, 8
mov edx, dword [0x464f44]
mov dword [ebp + eax*2 - 0x1058], ecx
mov ecx, dword [0x464f50]
mov dword [ebp + eax*2 - 0x105c], edx
mov edx, dword [0x464f4c]
mov dword [ebp + eax*2 - 0x1050], ecx
lea ecx, [ebp - 0x1050]
mov dword [ebp + eax*2 - 0x1054], edx
movzx edx, word [0x464f54]
mov dword [ebp + eax*2 - 0x1060], ebx
mov word [ebp + eax*2 - 0x104c], dx
lea eax, [ebp - 0x1060]
mov dword [0x49ca68], ecx
call fcn.00416500
lea eax, [ebp - 0x1060]
mov dword [0x49ca3c], 0x100000
call fcn.00416500
mov eax, dword [str.file:_]
mov dword [esp + 4], edi
mov dword [esp], 0x104
mov dword [ebp - 0x1060], eax
mov eax, dword [0x464060]
mov dword [ebp - 0x105c], eax
mov eax, dword [0x464064]
mov dword [ebp - 0x1058], eax
mov eax, dword [0x464068]
mov dword [ebp - 0x1054], eax
call esi
mov esi, dword [0x464f44]
mov ecx, 0x5c
mov word [ebp + eax*2 - 0x1268], cx
add eax, 1
sub esp, 8
mov dword [ebp + eax*2 - 0x1264], esi
mov esi, dword [0x464f48]
mov dword [ebp + eax*2 - 0x1268], ebx
mov dword [ebp + eax*2 - 0x1260], esi
mov esi, dword [0x464f4c]
mov dword [ebp + eax*2 - 0x125c], esi
mov esi, dword [0x464f50]
mov dword [ebp + eax*2 - 0x1258], esi
movzx esi, word [0x464f54]
mov word [ebp + eax*2 - 0x1254], si
xor eax, eax
movzx edx, word [edi + eax]
mov word [ebp + eax - 0x1052], dx
add eax, 2
test dx, dx
jne 0x417fd3
lea eax, [ebp - 0x1060]
mov dword [0x49ca68], edi
mov dword [0x49ca3c], 0
call fcn.00416500
lea eax, [ebp - 0x1060]
mov dword [0x49ca3c], 0x100000
call fcn.00416500
mov edx, 0x7c
lea eax, [ebp - 0x1060]
mov word [ebp - 0x1050], dx
call fcn.00416500
cmp word [ebp - 0x1060], 0
lea ecx, [ebp - 0x1060]
je 0x418049
nop
add ecx, 2
cmp word [ecx], 0
jne 0x418040
xor eax, eax
mov ebx, 0x23
jmp 0x418059
movzx ebx, word [eax + 0x464050]
mov word [ecx + eax], bx
add eax, 2
test bx, bx
jne 0x418052
lea eax, [ebp - 0x1060]
call fcn.00416500
cmp word [ebp - 0x1268], 0
je 0x4181c0
mov ecx, edi
add ecx, 2
cmp word [ecx], 0
jne 0x418080
mov ebx, ecx
sub ebx, edi
sar ebx, 1
xor eax, eax
mov esi, 0x23
jmp 0x4180a7
movzx esi, word [eax + 0x464050]
mov word [ecx + eax], si
add eax, 2
test si, si
jne 0x4180a0
mov dword [esp + 0x18], 0
mov eax, dword [ebp - 0x127c]
mov dword [esp + 0x14], pe_nt_image_headers32
mov dword [esp + 0x10], 2
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x40000000
mov dword [esp], 0x464f40
call eax
sub esp, 0x1c
mov esi, eax
mov dword [esp + 4], 0xc59
mov dword [esp], str..._wine_dlls_urlmon_tests_protocol.c
call fcn.0045a5b0
xor eax, eax
cmp esi, 0xffffffff
mov dword [esp + 4], 0x461dca
setne al
mov dword [esp], eax
call fcn.0045a820
lea eax, [ebp - 0x126c]
mov dword [esp], esi
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x1284]
mov dword [esp + 0x10], 0
mov dword [esp + 8], 3
mov dword [esp + 4], 0x461ddd
call eax
mov eax, dword [ebp - 0x1280]
sub esp, 0x14
mov dword [esp], esi
call eax
xor eax, eax
mov dword [0x49c998], 1
sub esp, 4
mov word [ebp + ebx*2 - 0x1268], ax
lea eax, [ebp - 0x1060]
call fcn.00416500
mov ebx, dword [sym.imp.kernel32.dll_DeleteFileW]
mov dword [esp], 0x464f40
call ebx
sub esp, 4
mov dword [esp], edi
call ebx
mov dword [0x49ca3c], 0
sub esp, 4
call fcn.00417540
mov dword [0x49ca3c], 0x100000
call fcn.00417540
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
xor ebx, ebx
mov ecx, edi
jmp 0x41808f