Function at 0x403768
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6e4
mov eax, dword [ebp + 0x10]
and eax, 0xffff
mov dword [ebp - 0x2e4], eax
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x6e0], ecx
cmp dword [ebp - 0x6e0], 0x110
je 0x4037a9
cmp dword [ebp - 0x6e0], 0x111
je 0x4038f3
jmp 0x403ab0
push 0
push 0
push 0x229
mov edx, dword [0x40a9ec]
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [ebp - 0x2e0], eax
mov eax, dword [ebp - 0x2e0]
mov dword [ebp - 0x2e8], eax
push 0x20
lea ecx, [ebp - 0x32c]
push ecx
mov edx, dword [ebp - 0x2e8]
push edx
call dword [sym.imp.USER32.dll_GetClassNameW]
lea eax, [ebp - 0x32c]
push eax
push 0x407b84
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x403872
push 0x69
push 0x104
lea ecx, [ebp - 0x6dc]
push ecx
push 0x407ec0
push 0
mov edx, dword [ebp - 0x2e8]
push edx
call dword [sym.imp.USER32.dll_GetWindowWord]
and eax, 0xffff
push eax
call sub.BRW.dll_BRW_GetFileManagerSelection
mov dword [ebp - 0x2ec], eax
cmp dword [ebp - 0x2ec], 0xfffffc10
jne 0x40384e
push 0x407ba0
push 0x407ec0
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
jmp 0x403870
push 0x407ba8
push 0x407ec0
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp - 0x6dc]
push eax
push 0x407ec0
call dword [sym.imp.KERNEL32.dll_lstrcatW]
jmp 0x4038c6
lea ecx, [ebp - 0x32c]
push ecx
push 0x407bac
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x40389e
lea edx, [ebp - 0x32c]
push edx
push 0x407bd0
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x4038b6
push 0x104
push 0x407ec0
mov eax, dword [ebp - 0x2e8]
push eax
call sub.BRW.dll_BRW_View2FileName
jmp 0x4038c6
push 0x407bfc
push 0x407ec0
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0x407ec0
push 0x41a
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
push 0x407c04
push 0x41b
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
jmp 0x403ab0
mov eax, dword [ebp - 0x2e4]
mov dword [ebp - 0x6e4], eax
cmp dword [ebp - 0x6e4], 1
je 0x40392f
cmp dword [ebp - 0x6e4], 2
je 0x403916
jmp 0x403ab0
mov ecx, dword [ebp + 0x10]
and ecx, 0xffff
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.USER32.dll_EndDialog]
jmp 0x403ab0
push 0x16d
lea eax, [ebp - 0x608]
push eax
push 0x41a
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.USER32.dll_GetDlgItemTextW]
push 0x16d
lea edx, [ebp - 0x2dc]
push edx
push 0x41b
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_GetDlgItemTextW]
push 0x41e
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.USER32.dll_IsDlgButtonChecked]
mov dword [ebp - 0x2ec], eax
cmp dword [ebp - 0x2ec], 0
jne 0x4039e0
lea edx, [ebp - 0x608]
push edx
lea eax, [ebp - 0x2dc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00403063
cmp eax, 1
jne 0x4039e0
lea edx, [ebp - 0x608]
push edx
call fcn.004036fe
add esp, 4
cmp eax, 1
jne 0x4039cc
lea eax, [ebp - 0x608]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [0x40706c]
push ecx
call sub.BRW.dll_BRW_UpdateFileManager
mov edx, dword [ebp + 0x10]
and edx, 0xffff
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_EndDialog]
cmp dword [ebp - 0x2ec], 1
jne 0x403a90
lea ecx, [ebp - 0x2dc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00403282
test eax, eax
jne 0x403a06
jmp 0x403ab0
push 1
lea eax, [ebp - 0x2dc]
push eax
lea ecx, [ebp - 0x608]
push ecx
call fcn.0040348e
mov dword [ebp - 0x2ec], eax
cmp dword [ebp - 0x2ec], 1
jne 0x403a90
lea edx, [ebp - 0x608]
push edx
lea eax, [ebp - 0x2dc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00403063
cmp eax, 1
jne 0x403a73
lea edx, [ebp - 0x608]
push edx
call fcn.004036fe
add esp, 4
cmp eax, 1
jne 0x403a73
lea eax, [ebp - 0x608]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [0x40706c]
push ecx
call sub.BRW.dll_BRW_UpdateFileManager
push 0
lea edx, [ebp - 0x2dc]
push edx
lea eax, [ebp - 0x608]
push eax
call fcn.0040348e
mov dword [ebp - 0x2ec], eax
jmp 0x403a21
mov ecx, dword [0x40706c]
push ecx
call sub.BRW.dll_BRW_UpdateFileManager
mov edx, dword [ebp + 0x10]
and edx, 0xffff
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_EndDialog]
xor eax, eax
mov esp, ebp
pop ebp
ret 0x10