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

Disassembly:
push edi
lea edi, [esp + 8]
and esp, 0xfffffff8
push dword [edi - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
lea ebx, [ebp - 0x218]
sub esp, 0x258
mov dword [esp + 4], ebx
mov dword [esp], 0x104
call dword [sym.imp.kernel32.dll_GetTempPathW]
mov edx, ebx
sub esp, 8
cmp word [ebp - 0x218], 0
je 0x403d59
lea esi, [esi]
add edx, 2
cmp word [edx], 0
jne 0x403d50
xor eax, eax
lea esi, [esi]
nop
movzx ecx, word [eax + str.test.url]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x403d60
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], ebx
call dword [sym.imp.kernel32.dll_CreateFileW]
sub esp, 0x1c
mov esi, eax
call fcn.00417b50
mov dword [eax], 0x41c942
mov dword [eax + 4], 0x173
xor eax, eax
cmp esi, 0xffffffff
setne al
mov dword [esp + 4], str.could_not_create_test_file_n
mov dword [esp], eax
call fcn.00403460
cmp esi, 0xffffffff
je 0x40423f
lea eax, [ebp - 0x23c]
mov dword [esp], esi
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x72
mov dword [esp + 4], str._InternetShortcut__nURLhttp:__www.winehq.org__nHotKey0_nIDList_n_000214A0_0000_0000_C000_000000000046__nProp01_2_n
call dword [sym.imp.kernel32.dll_WriteFile]
sub esp, 0x14
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_CloseHandle]
lea eax, [ebp - 0x240]
sub esp, 4
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0x425bfc
mov dword [esp + 8], 0x17
mov dword [esp + 4], 0
mov dword [esp], 0x42246c
call dword [sym.imp.ole32.dll_CoCreateInstance]
sub esp, 0x14
mov esi, eax
call fcn.00417b50
mov dword [eax], 0x41c942
mov dword [eax + 4], 0x17b
xor eax, eax
test esi, esi
sete al
mov dword [esp + 8], esi
mov dword [esp], eax
mov dword [esp + 4], str.Could_not_create_InternetShortcut_instance:__08lx_n
call fcn.00403460
mov eax, dword [ebp - 0x240]
mov edx, dword [eax]
mov dword [esp + 8], 0
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [edx + 0x14]
sub esp, 0xc
mov esi, eax
call fcn.00417b50
mov dword [eax], 0x41c942
mov dword [eax + 4], 0x17e
xor eax, eax
test esi, esi
sete al
mov dword [esp + 8], esi
lea esi, [ebp - 0x230]
mov dword [esp], eax
mov dword [esp + 4], str.Load_failed:__08lx_n
call fcn.00403460
mov eax, dword [ebp - 0x240]
mov edx, dword [eax]
mov dword [esp + 8], esi
mov dword [esp + 4], 0x42245c
mov dword [esp], eax
call dword [edx]
sub esp, 0xc
mov edi, eax
call fcn.00417b50
mov dword [eax], 0x41c942
mov dword [eax + 4], 0x180
xor eax, eax
test edi, edi
sete al
mov dword [esp + 8], edi
lea edi, [ebp - 0x228]
mov dword [esp], eax
mov dword [esp + 4], str.Could_not_get_IUniformResourceLocatorA_iface:__08lx_n
call fcn.00403460
mov eax, dword [ebp - 0x230]
mov edx, dword [eax]
mov dword [esp + 4], edi
mov dword [esp], eax
call dword [edx + 0x10]
sub esp, 8
mov dword [ebp - 0x244], eax
call fcn.00417b50
mov edx, dword [ebp - 0x244]
mov dword [eax], 0x41c942
mov dword [eax + 4], 0x180
xor eax, eax
test edx, edx
sete al
mov dword [esp + 8], edx
mov dword [esp], eax
mov dword [esp + 4], str.GetURL_failed:__08lx_n
call fcn.00403460
call fcn.00417b50
mov dword [eax], 0x41c942
mov dword [eax + 4], 0x180
mov edx, dword [ebp - 0x228]
mov dword [esp + 4], str.http:__www.winehq.org_
mov dword [esp], edx
mov dword [ebp - 0x244], edx
call dword [sym.imp.msvcrt.dll_strcmp]
mov dword [esp + 0xc], str.http:__www.winehq.org_
mov edx, dword [ebp - 0x244]
test eax, eax
mov dword [esp + 4], str.unexpected_URL__got__s__expected__s_n
sete al
mov dword [esp + 8], edx
movzx eax, al
mov dword [esp], eax
call fcn.00403460
mov eax, dword [ebp - 0x228]
mov dword [esp], eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, dword [ebp - 0x230]
sub esp, 4
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 8]
mov eax, dword [ebp - 0x240]
lea ecx, [ebp - 0x238]
sub esp, 4
mov edx, dword [eax]
mov dword [esp + 8], ecx
mov dword [esp + 4], 0x42592c
mov dword [esp], eax
call dword [edx]
sub esp, 0xc
mov dword [ebp - 0x244], eax
call fcn.00417b50
mov edx, dword [ebp - 0x244]
mov dword [eax], 0x41c942
mov dword [eax + 4], 0x183
xor eax, eax
test edx, edx
sete al
mov dword [esp + 8], edx
mov dword [esp], eax
mov dword [esp + 4], str.Unable_to_get_an_IPropertySetStorage__hr0x_lx_n
call fcn.00403460
mov eax, dword [ebp - 0x238]
lea ecx, [ebp - 0x234]
mov edx, dword [eax]
mov dword [esp + 0xc], ecx
mov dword [esp + 8], 0x10
mov dword [esp + 4], 0x42256c
mov dword [esp], eax
call dword [edx + 0x10]
sub esp, 0x10
mov dword [ebp - 0x244], eax
call fcn.00417b50
mov edx, dword [ebp - 0x244]
mov dword [eax], 0x41c942
mov dword [eax + 4], 0x186
xor eax, eax
test edx, edx
sete al
mov dword [esp + 8], edx
mov dword [esp], eax
mov dword [esp + 4], str.Unable_to_get_an_IPropertyStorage_for_reading__hr0x_lx_n
call fcn.00403460
mov eax, 1
mov dword [ebp - 0x230], 1
mov word [ebp - 0x228], ax
mov eax, dword [ebp - 0x234]
mov dword [ebp - 0x22c], 9
mov edx, dword [eax]
mov dword [esp + 8], esi
mov dword [esp + 0xc], edi
mov dword [esp + 4], 1
mov dword [esp], eax
call dword [edx + 0xc]
sub esp, 0x10
mov dword [ebp - 0x244], eax
call fcn.00417b50
mov edx, dword [ebp - 0x244]
mov dword [eax], 0x41c942
mov dword [eax + 4], 0x18c
xor eax, eax
cmp edx, 1
sete al
mov dword [esp + 8], edx
mov dword [esp], eax
mov dword [esp + 4], str.got_0x_08lx_n
call fcn.00403460
call fcn.00417b50
mov dword [eax], 0x41c942
mov dword [eax + 4], 0x18d
movzx edx, word [ebp - 0x228]
mov dword [esp + 4], 0x41cc16
test dx, dx
mov dword [esp + 8], edx
sete al
movzx eax, al
mov dword [esp], eax
call fcn.00403460
mov eax, dword [ebp - 0x234]
xor edx, edx
mov dword [ebp - 0x230], 1
mov dword [ebp - 0x22c], 8
mov word [ebp - 0x228], dx
mov edx, dword [eax]
mov dword [esp + 8], esi
mov dword [esp + 0xc], edi
mov dword [esp + 4], 1
mov dword [esp], eax
call dword [edx + 0xc]
sub esp, 0x10
mov esi, eax
call fcn.00417b50
mov dword [eax], 0x41c942
mov dword [eax + 4], 0x193
xor eax, eax
cmp esi, 1
sete al
mov dword [esp + 8], esi
mov dword [esp], eax
mov dword [esp + 4], str.got_0x_08lx_n
call fcn.00403460
call fcn.00417b50
mov dword [eax], 0x41c942
mov dword [eax + 4], 0x194
movzx edx, word [ebp - 0x228]
mov dword [esp + 4], 0x41cc16
test dx, dx
mov dword [esp + 8], edx
sete al
movzx eax, al
mov dword [esp], eax
call fcn.00403460
mov eax, dword [ebp - 0x234]
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 8]
mov eax, dword [ebp - 0x238]
sub esp, 4
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 8]
mov eax, dword [ebp - 0x240]
sub esp, 4
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 8]
sub esp, 4
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_DeleteFileW]
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
lea esp, [edi - 8]
pop edi
ret