Function at 0x406e50
Capabilities:
Delete file
Get common file path
Terminate process

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, ecx
push ebx
sub esp, 0x464
mov dword [ebp - 0x430], eax
mov eax, dword [edi]
mov dword [ebp - 0x444], edx
mov dword [ebp - 0x438], eax
mov dword [ebp - 0x42c], 0
mov dword [ebp - 0x428], 0
test byte [section..data], 8
jne 0x407123
mov eax, dword [ebp - 0x430]
lea ebx, [ebp - 0x420]
mov dword [esp + 0xc], 0
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x104
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetFullPathNameW]
sub eax, 1
sub esp, 0x10
cmp eax, 0x103
ja 0x407223
lea eax, [ebp - 0x424]
mov ecx, dword [ebp - 0x438]
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 fcn.00406c30
mov edi, eax
test eax, eax
js 0x4070c5
mov eax, dword [ebp - 0x428]
mov edi, dword [ebp - 0x424]
mov dword [ebp - 0x434], eax
mov eax, dword [ebp - 0x42c]
mov dword [ebp - 0x440], eax
test esi, esi
je 0x407748
movzx ebx, word [esi]
test bx, bx
je 0x407948
mov eax, esi
lea esi, [esi]
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x406f50
sub eax, esi
add eax, 2
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_malloc]
mov dword [ebp - 0x43c], eax
test eax, eax
je 0x407ae6
mov edx, dword [ebp - 0x43c]
xor eax, eax
jmp 0x406f84
movzx ebx, word [esi + eax]
mov word [edx + eax], bx
add eax, 2
test bx, bx
jne 0x406f80
mov eax, dword [0x41e208]
mov dword [esp], str._siconshicolor
mov dword [esp + 4], eax
call fcn.00401930
mov dword [ebp - 0x44c], eax
test edi, edi
jle 0x407a46
lea eax, [ebp - 0x218]
mov esi, 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 - 0x438], eax
lea esi, [esi]
mov dword [ebp - 0x218], ebx
test byte [section..data], 8
jne 0x407660
test ebx, ebx
je 0x4074e0
movzx ecx, byte [esi]
mov eax, dword [ebp - 0x434]
xor edx, edx
mov byte [ebp - 0x430], cl
jmp 0x40701e
add edx, 1
add eax, 0x10
cmp edx, ebx
je 0x4074e0
movzx ecx, byte [ebp - 0x430]
cmp byte [eax], cl
jne 0x407010
movzx ecx, byte [esi + 1]
cmp byte [eax + 1], cl
jne 0x407010
add ebx, 1
add esi, 0x10
cmp edi, ebx
jg 0x406fe0
mov esi, dword [ebp - 0x44c]
mov edi, dword [ebp - 0x450]
mov dword [esp + 8], 0
mov dword [esp + 4], 0x411d42
mov dword [esp], esi
mov dword [esp + 0xc], edi
call dword [sym.imp.kernel32.dll_GetTempFileNameW]
sub esp, 0x10
mov dword [esp], edi
call dword [sym.imp.kernel32.dll_DeleteFileW]
mov eax, dword [ebp - 0x438]
sub esp, 4
mov dword [esp], esi
call eax
mov esi, dword [ebp - 0x448]
test esi, esi
js 0x407760
mov eax, dword [ebp - 0x42c]
test eax, eax
je 0x4070a2
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 - 0x438]
call eax
mov eax, dword [ebp - 0x43c]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
lea esp, [edi - 8]
pop edi
ret
mov dword [ebp - 0x43c], 0
mov eax, dword [sym.imp.ucrtbase.dll_free]
mov dword [ebp - 0x438], eax
test byte [section..data], 4
jne 0x407263
mov eax, dword [ebp - 0x42c]
test eax, eax
jne 0x407a93
mov eax, dword [ebp - 0x428]
mov dword [esp], eax
mov eax, dword [ebp - 0x438]
call eax
mov eax, dword [ebp - 0x43c]
mov dword [esp], eax
mov eax, dword [ebp - 0x438]
call eax
mov dword [ebp - 0x43c], 0
jmp 0x4070b3
test ecx, ecx
je 0x407939
mov eax, ecx
shr eax, 0x10
je 0x407349
mov dword [esp], ecx
mov dword [esp + 4], 0xffffffff
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov dword [ebp - 0x43c], str._invalid_
sub esp, 8
mov ecx, eax
test eax, eax
jne 0x407362
movzx eax, word [esi]
test ax, ax
je 0x407a25
lea esi, [esi]
mov edx, ecx
lea ecx, [ecx + 1]
cmp word [esi + edx*2 + 2], 0
jne 0x407170
mov ecx, 0x224c
lea edi, [ebp - 0xf6]
mov dword [ebp - 0x434], esi
mov word [ebp - 0x218], cx
lea ecx, [ebp - 0x216]
mov dword [ebp - 0x43c], esi
mov esi, edi
jmp 0x4071ee
cmp ax, 9
je 0x4077c2
cmp ax, 0xa
jne 0x4077e0
mov eax, 0x6e5c
add ecx, 2
mov word [ecx - 2], ax
lea esi, [esi]
nop
lea edi, [edx - 1]
cmp ecx, esi
ja 0x4078c2
test edx, edx
jle 0x4078c2
mov eax, dword [ebp - 0x434]
mov edx, edi
movzx eax, word [eax]
add dword [ebp - 0x434], 2
cmp ax, 0xd
je 0x4077a0
jbe 0x4071a8
cmp ax, 0x22
je 0x407831
cmp ax, 0x5c
jne 0x4077d3
mov ebx, 0x5c5c
add ecx, 2
mov word [ecx - 2], bx
jmp 0x4071d0
mov dword [ebp - 0x43c], 0
test byte [section..data], 4
je 0x4070b3
mov dword [esp + 0xc], str.GetFullPathName_failed_n
mov dword [esp + 8], str.extract_icon
mov dword [esp + 4], 0x40f000
mov dword [esp], 2
call fcn.00401580
jmp 0x4070b3
mov eax, ebx
shr eax, 0x10
je 0x407aad
mov dword [esp + 4], 0xffffffff
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov ecx, eax
sub esp, 8
mov eax, str._invalid_
test ecx, ecx
jne 0x40748b
movzx eax, word [ebp - 0x420]
test ax, ax
je 0x407ac5
mov edx, ecx
lea ecx, [ecx + 1]
cmp word [ebx + edx*2 + 2], 0
jne 0x4072a1
mov ecx, 0x224c
lea esi, [ebp - 0xf6]
mov dword [ebp - 0x434], edi
mov word [ebp - 0x218], cx
mov edi, esi
lea ecx, [ebp - 0x216]
mov dword [ebp - 0x430], ebx
jmp 0x407314
cmp ax, 9
je 0x407984
cmp ax, 0xa
jne 0x4079a2
mov eax, 0x6e5c
add ecx, 2
mov word [ecx - 2], ax
lea esi, [edx - 1]
cmp ecx, edi
ja 0x407459
test edx, edx
jle 0x407459
mov eax, dword [ebp - 0x430]
mov edx, esi
movzx eax, word [eax]
add dword [ebp - 0x430], 2
cmp ax, 0xd
je 0x407973
jbe 0x4072d6
cmp ax, 0x22
je 0x4079f3
cmp ax, 0x5c
jne 0x407995
mov ebx, 0x5c5c
add ecx, 2
mov word [ecx - 2], bx
jmp 0x4072f6
movzx eax, cx
mov dword [esp], str._04x
mov dword [esp + 4], eax
call fcn.00401470
mov dword [ebp - 0x43c], eax
mov eax, dword [ebp - 0x430]
test eax, eax
je 0x40792f
shr eax, 0x10
je 0x4078ff
mov ebx, dword [ebp - 0x430]
mov dword [esp + 4], 0xffffffff
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov ecx, eax
sub esp, 8
mov eax, str._invalid_
test ecx, ecx
jne 0x407707
movzx eax, word [ebx]
test ax, ax
je 0x407a04
nop
mov edx, ecx
lea ecx, [ecx + 1]
cmp word [ebx + edx*2 + 2], 0
jne 0x4073b0
mov ebx, dword [ebp - 0x430]
mov edi, 0x224c
lea ecx, [ebp - 0x216]
mov word [ebp - 0x218], di
mov dword [ebp - 0x434], ebx
jmp 0x407424
cmp ax, 9
je 0x4078b1
cmp ax, 0xa
jne 0x40784f
mov eax, 0x6e5c
add ecx, 2
mov word [ecx - 2], ax
lea edi, [edx - 1]
test edx, edx
jle 0x4076db
lea eax, [ebp - 0xf6]
cmp ecx, eax
ja 0x4076db
mov eax, dword [ebp - 0x434]
mov edx, edi
movzx eax, word [eax]
add dword [ebp - 0x434], 2
cmp ax, 0xd
je 0x4077b1
jbe 0x4073e0
cmp ax, 0x22
je 0x4078a0
cmp ax, 0x5c
jne 0x407842
mov ebx, 0x5c5c
add ecx, 2
mov word [ecx - 2], bx
jmp 0x407400
mov byte [ecx], 0x22
mov edi, dword [ebp - 0x434]
test esi, esi
jle 0x407ade
mov edx, 0x2e2e
mov byte [ecx + 3], 0x2e
lea eax, [ecx + 4]
mov word [ecx + 1], dx
mov byte [eax], 0
lea eax, [ebp - 0x218]
mov dword [esp], eax
call fcn.0040e1f0
mov dword [esp + 0x18], edi
mov edi, dword [ebp - 0x444]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edi
mov dword [esp + 0xc], str.opening_icon__s_index__d_failed__hr0x_08lX_n
mov dword [esp + 8], str.extract_icon
mov dword [esp + 4], 0x40f000
mov dword [esp], 2
call fcn.00401580
mov eax, dword [sym.imp.ucrtbase.dll_free]
mov dword [ebp - 0x43c], 0
mov dword [ebp - 0x438], eax
jmp 0x4070e7
add ebx, 1
mov ecx, dword [ebp - 0x218]
mov eax, esi
mov edx, ebx
cmp edi, ebx
jle 0x40755c
mov dword [ebp - 0x430], ecx
mov dword [ebp - 0x444], ebx
jmp 0x40750a
add edx, 1
add eax, 0x10
cmp edi, edx
je 0x407550
movzx ebx, byte [esi]
cmp byte [eax + 0x10], bl
jne 0x407500
movzx ebx, byte [esi + 1]
cmp byte [eax + 0x11], bl
jne 0x407500
mov ebx, dword [ebp - 0x430]
mov ecx, dword [ebp - 0x434]
shl ebx, 4
movzx ecx, word [ecx + ebx + 6]
cmp word [eax + 0x16], cx
jb 0x407500
mov dword [ebp - 0x218], edx
add eax, 0x10
mov dword [ebp - 0x430], edx
add edx, 1
cmp edi, edx
jne 0x40750a
lea esi, [esi]
nop
mov ecx, dword [ebp - 0x430]
mov ebx, dword [ebp - 0x444]
test byte [section..data], 8
jne 0x4076a8
shl ecx, 4
add ecx, dword [ebp - 0x434]
mov edx, 0x100
movzx eax, byte [ecx]
test al, al
cmove eax, edx
movzx edx, byte [ecx + 1]
mov ecx, 0x100
mov dword [esp], str._s_dx_d_apps
test dl, dl
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x44c]
cmove edx, ecx
mov dword [esp + 4], eax
mov dword [esp + 0xc], edx
call fcn.00401930
mov dword [ebp - 0x430], eax
call fcn.00401080
mov ecx, dword [ebp - 0x43c]
mov eax, dword [ebp - 0x430]
mov dword [esp], str._s_s.png
mov dword [esp + 8], ecx
mov dword [esp + 4], eax
call fcn.00401930
mov edx, dword [ebp - 0x440]
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]
mov dword [ebp - 0x448], eax
sub esp, 0x14
test eax, eax
js 0x407634
mov ecx, dword [ebp - 0x444]
mov edx, dword [ebp - 0x450]
mov eax, dword [ebp - 0x440]
call fcn.00405400
mov dword [ebp - 0x448], eax
mov eax, dword [ebp - 0x430]
mov dword [esp], eax
mov eax, dword [ebp - 0x438]
call eax
mov ecx, dword [ebp - 0x444]
mov eax, dword [ebp - 0x438]
mov dword [esp], ecx
call eax
jmp 0x407035
movzx eax, word [esi + 6]
mov dword [esp + 0x1c], eax
movzx eax, byte [esi + 1]
mov dword [esp + 0x18], eax
movzx eax, byte [esi]
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], 0x40f000
mov dword [esp], 3
call fcn.00401580
jmp 0x406ff3
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], str.Selected:__d_n
mov dword [esp + 8], str.platform_write_icon
mov dword [esp + 4], 0x40f000
mov dword [esp], 3
call fcn.00401580
mov ecx, dword [ebp - 0x218]
jmp 0x407569
mov byte [ecx], 0x22
test edi, edi
jle 0x407a1d
mov edx, 0x2e2e
mov byte [ecx + 3], 0x2e
lea eax, [ecx + 4]
mov word [ecx + 1], dx
mov byte [eax], 0
lea eax, [ebp - 0x218]
mov dword [esp], eax
call fcn.0040e1f0
mov edi, dword [ebp - 0x43c]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.path__s__index_d_destFilename__s__n
mov dword [esp + 0x18], edi
mov edi, dword [ebp - 0x444]
mov dword [esp + 8], str.extract_icon
mov dword [esp + 0x14], edi
mov dword [esp + 4], 0x40f000
mov dword [esp], 3
call fcn.00401580
jmp 0x406e9e
mov eax, dword [ebp - 0x444]
mov edx, ebx
call fcn.004019f0
mov dword [ebp - 0x43c], eax
jmp 0x406f90
test byte [section..data], 4
je 0x4070e7
mov eax, dword [ebp - 0x448]
mov dword [esp + 0xc], str.writing_icon_failed__error_0x_08lX_n
mov dword [esp + 8], str.extract_icon
mov dword [esp + 0x10], eax
mov dword [esp + 4], 0x40f000
mov dword [esp], 2
call fcn.00401580
jmp 0x4070e7
mov eax, 0x725c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x4071d0
mov eax, 0x725c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x407400
mov eax, 0x745c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x4071d0
lea edi, [eax - 0x20]
cmp di, 0x5e
jbe 0x407925
mov edi, eax
mov byte [ecx], 0x5c
add ecx, 5
shr di, 0xc
movzx edi, di
movzx ebx, byte [edi + str.0123456789abcdef]
mov edi, eax
shr di, 8
and edi, 0xf
mov byte [ecx - 4], bl
movzx ebx, byte [edi + str.0123456789abcdef]
mov edi, eax
and eax, 0xf
shr di, 4
movzx eax, byte [eax + str.0123456789abcdef]
and edi, 0xf
mov byte [ecx - 3], bl
movzx ebx, byte [edi + str.0123456789abcdef]
mov byte [ecx - 1], al
mov byte [ecx - 2], bl
jmp 0x4071d0
mov edi, 0x225c
add ecx, 2
mov word [ecx - 2], di
jmp 0x4071d0
lea edi, [eax - 0x20]
cmp di, 0x5e
jbe 0x40791b
mov edi, eax
mov byte [ecx], 0x5c
add ecx, 5
shr di, 0xc
movzx edi, di
movzx ebx, byte [edi + str.0123456789abcdef]
mov edi, eax
shr di, 8
and edi, 0xf
mov byte [ecx - 4], bl
movzx ebx, byte [edi + str.0123456789abcdef]
mov edi, eax
and eax, 0xf
shr di, 4
movzx eax, byte [eax + str.0123456789abcdef]
and edi, 0xf
mov byte [ecx - 3], bl
movzx ebx, byte [edi + str.0123456789abcdef]
mov byte [ecx - 1], al
mov byte [ecx - 2], bl
jmp 0x407400
mov edi, 0x225c
add ecx, 2
mov word [ecx - 2], di
jmp 0x407400
mov eax, 0x745c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x407400
mov byte [ecx], 0x22
mov esi, dword [ebp - 0x43c]
test edi, edi
jle 0x407a3e
mov edx, 0x2e2e
mov byte [ecx + 3], 0x2e
lea eax, [ecx + 4]
mov word [ecx + 1], dx
mov byte [eax], 0
lea eax, [ebp - 0x218]
mov dword [esp], eax
call fcn.0040e1f0
mov dword [ebp - 0x43c], eax
jmp 0x407362
movzx eax, word [ebp - 0x430]
mov dword [esp], str._04x
mov dword [esp + 4], eax
call fcn.00401470
jmp 0x407707
mov byte [ecx], al
add ecx, 1
jmp 0x407400
mov byte [ecx], al
add ecx, 1
jmp 0x4071d0
mov eax, str._null_
jmp 0x407707
mov dword [ebp - 0x43c], str._null_
jmp 0x407362
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll_malloc]
mov dword [ebp - 0x43c], eax
test eax, eax
je 0x407ae6
mov eax, dword [ebp - 0x43c]
xor edx, edx
mov word [eax], dx
jmp 0x406f90
mov eax, 0x725c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x4072f6
mov eax, 0x745c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x4072f6
lea esi, [eax - 0x20]
cmp si, 0x5e
jbe 0x407aa3
mov esi, eax
mov byte [ecx], 0x5c
add ecx, 5
shr si, 0xc
movzx esi, si
movzx ebx, byte [esi + str.0123456789abcdef]
mov esi, eax
shr si, 8
and esi, 0xf
mov byte [ecx - 4], bl
movzx ebx, byte [esi + str.0123456789abcdef]
mov esi, eax
and eax, 0xf
shr si, 4
movzx eax, byte [eax + str.0123456789abcdef]
and esi, 0xf
mov byte [ecx - 3], bl
movzx ebx, byte [esi + str.0123456789abcdef]
mov byte [ecx - 1], al
mov byte [ecx - 2], bl
jmp 0x4072f6
mov esi, 0x225c
add ecx, 2
mov word [ecx - 2], si
jmp 0x4072f6
mov ebx, 0x224c
mov byte [ebp - 0x216], 0x22
lea ecx, [ebp - 0x216]
mov word [ebp - 0x218], bx
lea eax, [ecx + 1]
jmp 0x4076f6
mov eax, 0x224c
mov byte [ebp - 0x216], 0x22
lea ecx, [ebp - 0x216]
mov word [ebp - 0x218], ax
lea eax, [ecx + 1]
jmp 0x4078e3
mov edi, dword [ebp - 0x44c]
lea ebx, [ebp - 0x218]
mov dword [esp + 8], 0
mov dword [esp + 0xc], ebx
mov dword [esp], edi
mov dword [esp + 4], 0x411d42
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], edi
mov dword [ebp - 0x438], eax
call eax
jmp 0x40708d
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 8]
sub esp, 4
jmp 0x4070f5
mov byte [ecx], al
add ecx, 1
jmp 0x4072f6
movzx ebx, bx
mov dword [esp], str._04x
mov dword [esp + 4], ebx
call fcn.00401470
jmp 0x40748b
mov ebx, 0x224c
mov byte [ebp - 0x216], 0x22
lea ecx, [ebp - 0x216]
mov word [ebp - 0x218], bx
lea eax, [ecx + 1]
jmp 0x40747a
test byte [section..data], 2
jne 0x407afc
mov dword [esp], 1
call dword [sym.imp.kernel32.dll_ExitProcess]
mov dword [esp + 0xc], str.out_of_memory_n
mov dword [esp + 8], str.xmalloc
mov dword [esp + 4], 0x40f000
mov dword [esp], 1
call fcn.00401580
jmp 0x407aef