Function at 0x405e20
Capabilities:
Delete file
Get common file path

Disassembly:
push edi
lea edi, [esp + 8]
and esp, 0xfffffff8
push dword [edi - 4]
push ebp
mov ebp, esp
push edi
push esi
mov esi, eax
push ebx
sub esp, 0x464
mov eax, dword [edi]
mov dword [ebp - 0x444], edx
mov dword [ebp - 0x438], ecx
mov dword [ebp - 0x434], eax
mov dword [ebp - 0x42c], 0
mov dword [ebp - 0x428], 0
test byte [0x40d000], 8
jne 0x4062a0
lea ebx, [ebp - 0x420]
mov dword [esp + 0xc], 0
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x104
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_GetFullPathNameW]
sub eax, 1
sub esp, 0x10
cmp eax, 0x103
ja 0x406390
lea eax, [ebp - 0x424]
mov ecx, dword [ebp - 0x434]
mov edx, dword [ebp - 0x444]
mov dword [esp + 8], eax
lea eax, [ebp - 0x428]
mov dword [esp + 4], eax
lea eax, [ebp - 0x42c]
mov dword [esp], eax
mov eax, ebx
call dbg.open_icon
mov esi, eax
test eax, eax
js 0x406060
mov eax, dword [ebp - 0x424]
mov ecx, dword [ebp - 0x438]
mov dword [ebp - 0x430], eax
mov eax, dword [ebp - 0x428]
mov dword [ebp - 0x434], eax
mov eax, dword [ebp - 0x42c]
mov dword [ebp - 0x43c], eax
test ecx, ecx
jne 0x406860
mov eax, dword [ebp - 0x444]
mov edx, ebx
call sym._compute_native_identifier.part.10
mov dword [ebp - 0x438], eax
mov eax, dword [0x41b208]
mov dword [esp], str._siconshicolor
mov dword [esp + 4], eax
call dbg.heap_wprintf
mov edx, dword [ebp - 0x430]
mov dword [ebp - 0x44c], eax
test edx, edx
jle 0x4069e3
lea eax, [ebp - 0x218]
mov edi, dword [ebp - 0x434]
xor ebx, ebx
mov dword [ebp - 0x448], 0
mov dword [ebp - 0x450], eax
mov eax, dword [sym.imp.ucrtbase.dll_free]
mov dword [ebp - 0x440], eax
mov dword [ebp - 0x218], ebx
test byte [0x40d000], 8
jne 0x406220
test ebx, ebx
je 0x4060c0
movzx ecx, byte [edi]
mov eax, dword [ebp - 0x434]
xor edx, edx
mov esi, ecx
jmp 0x405fae
add edx, 1
add eax, 0x10
cmp edx, ebx
je 0x4060c0
mov ecx, esi
cmp byte [eax], cl
jne 0x405fa0
movzx ecx, byte [edi + 1]
cmp byte [eax + 1], cl
jne 0x405fa0
lea esi, [ebx + 1]
mov ebx, esi
add edi, 0x10
cmp dword [ebp - 0x430], esi
jg 0x405f73
mov esi, dword [ebp - 0x450]
mov edi, dword [ebp - 0x44c]
mov dword [esp + 8], 0
mov dword [esp + 4], 0x40feaa
mov dword [esp + 0xc], esi
mov dword [esp], edi
call dword [sym.imp.kernel32.dll_GetTempFileNameW]
sub esp, 0x10
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_DeleteFileW]
mov eax, dword [ebp - 0x440]
sub esp, 4
mov dword [esp], edi
call eax
mov eax, dword [ebp - 0x448]
test eax, eax
js 0x4063d0
mov eax, dword [ebp - 0x42c]
test eax, eax
je 0x406033
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 8]
sub esp, 4
mov eax, dword [ebp - 0x428]
mov dword [esp], eax
mov eax, dword [ebp - 0x440]
call eax
mov eax, dword [ebp - 0x438]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
lea esp, [edi - 8]
pop edi
ret
mov dword [ebp - 0x438], 0
mov eax, dword [sym.imp.ucrtbase.dll_free]
mov dword [ebp - 0x440], eax
test byte [0x40d000], 4
jne 0x406410
mov eax, dword [ebp - 0x42c]
test eax, eax
jne 0x406a30
mov eax, dword [ebp - 0x428]
mov dword [esp], eax
mov eax, dword [ebp - 0x440]
call eax
mov eax, dword [ebp - 0x438]
mov dword [esp], eax
mov eax, dword [ebp - 0x440]
call eax
mov dword [ebp - 0x438], 0
jmp 0x406044
lea esi, [ebx + 1]
mov eax, dword [ebp - 0x218]
mov edx, edi
mov ecx, esi
cmp dword [ebp - 0x430], esi
jle 0x406136
mov dword [ebp - 0x444], esi
jmp 0x4060ee
add ecx, 1
add edx, 0x10
cmp dword [ebp - 0x430], ecx
je 0x406130
movzx ebx, byte [edi]
cmp byte [edx + 0x10], bl
jne 0x4060e0
movzx ebx, byte [edi + 1]
cmp byte [edx + 0x11], bl
jne 0x4060e0
mov ebx, eax
mov esi, dword [ebp - 0x434]
shl ebx, 4
movzx esi, word [esi + ebx + 6]
cmp word [edx + 0x16], si
jb 0x4060e0
mov dword [ebp - 0x218], ecx
mov eax, ecx
add edx, 0x10
add ecx, 1
cmp dword [ebp - 0x430], ecx
jne 0x4060ee
lea esi, [esi]
nop
mov esi, dword [ebp - 0x444]
test byte [0x40d000], 8
jne 0x406264
shl eax, 4
add eax, dword [ebp - 0x434]
mov ebx, 0x100
movzx edx, byte [eax]
movzx eax, byte [eax + 1]
mov dword [esp], str._s_dx_d_apps
test dl, dl
cmove edx, ebx
test al, al
cmove eax, ebx
mov dword [esp + 8], edx
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x44c]
mov dword [esp + 4], eax
call dbg.heap_wprintf
mov ebx, eax
call sym._create_directories
mov eax, dword [ebp - 0x438]
mov dword [esp + 4], ebx
mov dword [esp], str._s_s.png
mov dword [esp + 8], eax
call dbg.heap_wprintf
mov edx, dword [ebp - 0x43c]
mov dword [ebp - 0x444], eax
mov eax, dword [edx]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 4], 0
mov dword [esp + 8], 0
mov dword [esp], edx
call dword [eax + 0x14]
sub esp, 0x14
mov dword [ebp - 0x448], eax
test eax, eax
js 0x4061ff
mov ecx, dword [ebp - 0x444]
mov edx, dword [ebp - 0x450]
mov eax, dword [ebp - 0x43c]
call sym._convert_to_native_icon.constprop.13
mov dword [ebp - 0x448], eax
mov dword [esp], ebx
mov ebx, dword [ebp - 0x440]
call ebx
mov eax, dword [ebp - 0x444]
mov dword [esp], eax
call ebx
jmp 0x405fc0
movzx eax, word [edi + 6]
mov dword [esp + 0x1c], eax
movzx eax, byte [edi + 1]
mov dword [esp + 0x18], eax
movzx eax, byte [edi]
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], eax
mov dword [esp + 0xc], str.__d_:__d_x__d____d_n
mov dword [esp + 8], str.platform_write_icon
mov dword [esp + 4], global___dbch
mov dword [esp], 3
call sym._wine_dbg_log.constprop.18
jmp 0x405f86
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.Selected:__d_n
mov dword [esp + 8], str.platform_write_icon
mov dword [esp + 4], global___dbch
mov dword [esp], 3
call sym._wine_dbg_log.constprop.18
mov eax, dword [ebp - 0x218]
jmp 0x406143
mov eax, ecx
test ecx, ecx
je 0x406900
shr eax, 0x10
je 0x4064d0
mov edi, dword [ebp - 0x438]
mov dword [esp + 4], 0xffffffff
mov dword [esp], edi
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov dword [ebp - 0x43c], str._invalid_
sub esp, 8
test eax, eax
jne 0x4064ed
cmp word [edi], 0
mov edx, edi
je 0x4062fa
lea esi, [esi]
nop
add eax, 1
cmp word [edx + eax*2], 0
jne 0x4062f0
mov ecx, dword [ebp - 0x438]
mov edx, 0x224c
lea edi, [ebp - 0xf6]
mov dword [ebp - 0x43c], esi
mov word [ebp - 0x218], dx
mov esi, edi
lea edx, [ebp - 0x216]
mov dword [ebp - 0x430], ecx
lea esi, [esi]
lea esi, [esi]
lea ebx, [eax - 1]
cmp edx, esi
ja 0x406880
test eax, eax
jle 0x406880
add dword [ebp - 0x430], 2
mov eax, dword [ebp - 0x430]
movzx eax, word [eax - 2]
cmp ax, 0xd
je 0x4067d0
ja 0x406670
cmp ax, 9
je 0x4067b3
cmp ax, 0xa
jne 0x4067e3
mov eax, 0x6e5c
add edx, 2
mov word [edx - 2], ax
mov eax, ebx
jmp 0x406330
mov dword [ebp - 0x438], 0
test byte [0x40d000], 4
je 0x406044
mov dword [esp + 0xc], str.GetFullPathName_failed_n
mov dword [esp + 8], global___func__.10
mov dword [esp + 4], global___dbch
mov dword [esp], 2
call sym._wine_dbg_log.constprop.18
jmp 0x406044
test byte [0x40d000], 4
je 0x406082
mov eax, dword [ebp - 0x448]
mov dword [esp + 0xc], str.writing_icon_failed__error_0x_08lX_n
mov dword [esp + 8], global___func__.10
mov dword [esp + 0x10], eax
mov dword [esp + 4], global___dbch
mov dword [esp], 2
call sym._wine_dbg_log.constprop.18
jmp 0x406082
mov eax, ebx
shr eax, 0x10
je 0x406a40
mov dword [esp + 4], 0xffffffff
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov edx, eax
sub esp, 8
mov eax, str._invalid_
test edx, edx
jne 0x4065f1
cmp word [ebp - 0x420], 0
je 0x40645a
lea esi, [esi]
nop
add edx, 1
cmp word [ebx + edx*2], 0
jne 0x406450
mov eax, 0x224c
mov dword [ebp - 0x430], esi
lea ecx, [ebp - 0x216]
mov word [ebp - 0x218], ax
lea eax, [ebp - 0xf6]
mov esi, eax
lea esi, [esi]
lea edi, [edx - 1]
cmp ecx, esi
ja 0x4065c0
test edx, edx
jle 0x4065c0
add ebx, 2
movzx eax, word [ebx - 2]
cmp ax, 0xd
je 0x406940
ja 0x406920
cmp ax, 9
je 0x4069d0
cmp ax, 0xa
jne 0x406970
mov eax, 0x6e5c
add ecx, 2
mov edx, edi
mov word [ecx - 2], ax
jmp 0x406480
movzx eax, word [ebp - 0x438]
mov dword [esp], str._04x
mov dword [esp + 4], eax
call sym._wine_dbg_sprintf.constprop.16
mov dword [ebp - 0x43c], eax
test esi, esi
je 0x406910
mov eax, esi
shr eax, 0x10
je 0x4068c0
mov dword [esp + 4], 0xffffffff
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov edi, eax
sub esp, 8
mov eax, str._invalid_
test edi, edi
jne 0x4066d1
cmp word [esi], 0
je 0x40653a
lea esi, [esi]
add edi, 1
cmp word [esi + edi*2], 0
jne 0x406530
mov eax, 0x224c
mov dword [ebp - 0x430], esi
lea edx, [ebp - 0x216]
mov word [ebp - 0x218], ax
lea eax, [ebp - 0xf6]
mov dword [ebp - 0x440], esi
mov esi, eax
lea ebx, [edi - 1]
cmp edx, esi
ja 0x4066a0
test edi, edi
jle 0x4066a0
add dword [ebp - 0x430], 2
mov eax, dword [ebp - 0x430]
movzx eax, word [eax - 2]
cmp ax, 0xd
je 0x4067a0
ja 0x406641
cmp ax, 9
je 0x406772
cmp ax, 0xa
jne 0x406712
mov eax, 0x6e5c
add edx, 2
mov edi, ebx
mov word [edx - 2], ax
jmp 0x406560
mov esi, dword [ebp - 0x430]
mov byte [ecx], 0x22
lea eax, [ecx + 1]
test edi, edi
jle 0x4065e0
mov ebx, 0x2e2e
mov byte [ecx + 3], 0x2e
lea eax, [ecx + 4]
mov word [ecx + 1], bx
mov byte [eax], 0
lea eax, [ebp - 0x218]
mov dword [esp], eax
call dbg.__wine_dbg_strdup
mov dword [esp + 0x18], esi
mov esi, dword [ebp - 0x444]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], esi
mov dword [esp + 0xc], str.opening_icon__s_index__d_failed__hr0x_08lX_n
mov dword [esp + 8], global___func__.10
mov dword [esp + 4], global___dbch
mov dword [esp], 2
call sym._wine_dbg_log.constprop.18
mov eax, dword [sym.imp.ucrtbase.dll_free]
mov dword [ebp - 0x438], 0
mov dword [ebp - 0x440], eax
jmp 0x406082
cmp ax, 0x22
je 0x406785
cmp ax, 0x5c
jne 0x406712
mov edi, 0x5c5c
add edx, 2
mov word [edx - 2], di
mov edi, ebx
jmp 0x406560
cmp ax, 0x22
je 0x406843
cmp ax, 0x5c
jne 0x4067e3
mov edi, 0x5c5c
add edx, 2
mov eax, ebx
mov word [edx - 2], di
jmp 0x406330
mov esi, dword [ebp - 0x440]
mov byte [edx], 0x22
lea eax, [edx + 1]
test ebx, ebx
jle 0x4066c0
mov ecx, 0x2e2e
mov byte [edx + 3], 0x2e
lea eax, [edx + 4]
mov word [edx + 1], cx
mov byte [eax], 0
lea eax, [ebp - 0x218]
mov dword [esp], eax
call dbg.__wine_dbg_strdup
mov ecx, dword [ebp - 0x43c]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.path__s__index_d_destFilename__s__n
mov dword [esp + 0x18], ecx
mov ecx, dword [ebp - 0x444]
mov dword [esp + 8], global___func__.10
mov dword [esp + 0x14], ecx
mov dword [esp + 4], global___dbch
mov dword [esp], 3
call sym._wine_dbg_log.constprop.18
jmp 0x405e6e
lea edi, [eax - 0x20]
cmp di, 0x5e
jbe 0x4068e0
mov edi, eax
mov byte [edx], 0x5c
add edx, 5
shr di, 0xc
movzx edi, di
movzx ecx, byte [edi + str.0123456789abcdef]
mov edi, eax
shr di, 8
and edi, 0xf
mov byte [edx - 4], cl
movzx ecx, byte [edi + str.0123456789abcdef]
mov edi, eax
and eax, 0xf
shr di, 4
movzx eax, byte [eax + str.0123456789abcdef]
and edi, 0xf
mov byte [edx - 3], cl
movzx ecx, byte [edi + str.0123456789abcdef]
mov byte [edx - 1], al
mov edi, ebx
mov byte [edx - 2], cl
jmp 0x406560
mov eax, 0x745c
add edx, 2
mov edi, ebx
mov word [edx - 2], ax
jmp 0x406560
mov eax, 0x225c
add edx, 2
mov edi, ebx
mov word [edx - 2], ax
jmp 0x406560
mov eax, 0x725c
add edx, 2
mov edi, ebx
mov word [edx - 2], ax
jmp 0x406560
mov eax, 0x745c
add edx, 2
mov word [edx - 2], ax
mov eax, ebx
jmp 0x406330
mov eax, 0x725c
add edx, 2
mov word [edx - 2], ax
mov eax, ebx
jmp 0x406330
lea edi, [eax - 0x20]
cmp di, 0x5e
jbe 0x4068f0
mov edi, eax
mov byte [edx], 0x5c
add edx, 5
shr di, 0xc
movzx edi, di
movzx ecx, byte [edi + str.0123456789abcdef]
mov edi, eax
shr di, 8
and edi, 0xf
mov byte [edx - 4], cl
movzx ecx, byte [edi + str.0123456789abcdef]
mov edi, eax
and eax, 0xf
shr di, 4
movzx eax, byte [eax + str.0123456789abcdef]
and edi, 0xf
mov byte [edx - 3], cl
movzx ecx, byte [edi + str.0123456789abcdef]
mov byte [edx - 1], al
mov eax, ebx
mov byte [edx - 2], cl
jmp 0x406330
mov eax, 0x225c
add edx, 2
mov word [edx - 2], ax
mov eax, ebx
jmp 0x406330
mov eax, dword [ebp - 0x438]
call sym._xwcsdup.part.9
mov dword [ebp - 0x438], eax
jmp 0x405f21
mov esi, dword [ebp - 0x43c]
mov byte [edx], 0x22
lea eax, [edx + 1]
test ebx, ebx
jle 0x4068a0
mov ecx, 0x2e2e
mov byte [edx + 3], 0x2e
lea eax, [edx + 4]
mov word [edx + 1], cx
mov byte [eax], 0
lea eax, [ebp - 0x218]
mov dword [esp], eax
call dbg.__wine_dbg_strdup
mov dword [ebp - 0x43c], eax
jmp 0x4064ed
movzx eax, si
mov dword [esp], str._04x
mov dword [esp + 4], eax
call sym._wine_dbg_sprintf.constprop.16
jmp 0x4066d1
mov byte [edx], al
mov edi, ebx
add edx, 1
jmp 0x406560
mov byte [edx], al
add edx, 1
mov eax, ebx
jmp 0x406330
mov dword [ebp - 0x43c], str._null_
jmp 0x4064ed
mov eax, str._null_
jmp 0x4066d1
cmp ax, 0x22
je 0x406953
cmp ax, 0x5c
jne 0x406970
mov eax, 0x5c5c
add ecx, 2
mov edx, edi
mov word [ecx - 2], ax
jmp 0x406480
mov eax, 0x725c
add ecx, 2
mov edx, edi
mov word [ecx - 2], ax
jmp 0x406480
mov eax, 0x225c
add ecx, 2
mov edx, edi
mov word [ecx - 2], ax
jmp 0x406480
lea edx, [eax - 0x20]
cmp dx, 0x5e
jbe 0x406a60
mov edx, eax
mov byte [ecx], 0x5c
add ecx, 5
shr dx, 0xc
movzx edx, dx
movzx edx, byte [edx + str.0123456789abcdef]
mov byte [ecx - 4], dl
mov edx, eax
shr dx, 8
and edx, 0xf
movzx edx, byte [edx + str.0123456789abcdef]
mov byte [ecx - 3], dl
mov edx, eax
and eax, 0xf
shr dx, 4
movzx eax, byte [eax + str.0123456789abcdef]
and edx, 0xf
movzx edx, byte [edx + str.0123456789abcdef]
mov byte [ecx - 1], al
mov byte [ecx - 2], dl
mov edx, edi
jmp 0x406480
mov eax, 0x745c
add ecx, 2
mov edx, edi
mov word [ecx - 2], ax
jmp 0x406480
mov esi, dword [ebp - 0x44c]
lea ebx, [ebp - 0x218]
mov dword [esp + 8], 0
mov dword [esp + 0xc], ebx
mov dword [esp], esi
mov dword [esp + 4], 0x40feaa
call dword [sym.imp.kernel32.dll_GetTempFileNameW]
sub esp, 0x10
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_DeleteFileW]
mov eax, dword [sym.imp.ucrtbase.dll_free]
sub esp, 4
mov dword [esp], esi
mov dword [ebp - 0x440], eax
call eax
jmp 0x40601e
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 8]
sub esp, 4
jmp 0x406090
movzx ebx, bx
mov dword [esp], str._04x
mov dword [esp + 4], ebx
call sym._wine_dbg_sprintf.constprop.16
jmp 0x4065f1
mov byte [ecx], al
mov edx, edi
add ecx, 1
jmp 0x406480