Function at 0x457400
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x72c
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
cmp eax, esi
mov dword [ebp - 0xc], 2
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
mov dword [0x4eba48], edi
mov dword [0x4eba44], eax
jne 0x457469
lea eax, [ebp - 0x39c]
push 0x50
push eax
push 0x465
push edi
call dword [sym.imp.USER32.dll_LoadStringA]
mov edx, dword [ebp + 0xc]
lea ecx, [ebp - 0x39c]
push 0x1f4
push ecx
push edx
push edi
call fcn.004539e0
add esp, 0x10
mov dword [0x4eba44], eax
mov dword [0x4eba4c], esi
mov eax, dword [ebp + 0x18]
mov byte [ebp - 0x1c], 1
cmp eax, 0x5a
mov byte [ebp - 0x1b], 0
jg 0x4574a6
je 0x45749d
cmp eax, 0xffffffa6
je 0x457494
cmp eax, esi
jne 0x4577bb
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 0x20], 7
jmp 0x4574b8
mov dword [ebp - 0x20], 5
jmp 0x4574b8
cmp eax, 0xb4
jne 0x4577bb
mov dword [ebp - 0x20], 6
lea eax, [ebp - 0x628]
push eax
call fcn.00469f30
push 0x1b0
lea ecx, [ebp - 0x1e4]
mov edi, 0x4577d0
push 0x3e
push ecx
mov dword [ebp - 0x1e4], eax
mov dword [ebp - 0x628], edi
call fcn.00467310
lea edx, [ebp - 0x564]
push edx
call fcn.00469f30
mov dword [ebp - 0x34c], eax
push 0x168
lea eax, [ebp - 0x34c]
push 0x3e
push eax
mov dword [ebp - 0x564], edi
call fcn.004677e0
lea ecx, [ebp - 0x5a4]
push esi
push ecx
call fcn.004c01d4
add esp, 0x28
test eax, eax
je 0x457530
mov eax, dword [ebp - 4]
cmp eax, esi
je 0x457554
jmp 0x45754b
lea edx, [ebp - 0x4e0]
push esi
push edx
call fcn.004c01d4
add esp, 8
test eax, eax
je 0x457571
mov eax, dword [ebp - 4]
cmp eax, esi
je 0x457554
push eax
call fcn.004bf540
add esp, 4
mov eax, dword [ebp - 8]
cmp eax, esi
je 0x4577bb
push eax
call fcn.004bf540
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x7f02
push esi
call dword [sym.imp.USER32.dll_LoadCursorA]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
mov edi, dword [ebp + 0x14]
lea eax, [ebp - 0x4a0]
push edi
push str._s.tmp
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea ecx, [ebp - 0x4a0]
push 0x4e276c
push ecx
call fcn.004bf62a
mov ebx, eax
add esp, 0x14
cmp ebx, esi
mov dword [ebp - 8], ebx
je 0x4577bb
push 0x4e2768
push edi
call fcn.004bf62a
mov esi, eax
add esp, 8
test esi, esi
mov dword [ebp - 4], esi
je 0x4577bb
lea edx, [ebp - 0x72c]
push 0x104
push edx
push edi
call sub.comdlg32.dll_GetFileTitleA
mov ecx, dword [0x4eba44]
lea eax, [ebp - 0x72c]
push eax
push 0x1fb
push ecx
call dword [sym.imp.USER32.dll_SetDlgItemTextA]
lea ecx, [ebp - 0x1e4]
lea edx, [ebp - 0x34]
lea eax, [ebp - 0x34]
push esi
push ecx
mov dword [ebp - 0x34], 0x457380
mov dword [ebp - 0x1dc], edx
mov dword [ebp - 0x344], eax
call fcn.00469eb0
mov edx, dword [ebp - 0xc]
lea eax, [ebp - 0x1e4]
push edx
push eax
call fcn.00469220
lea ecx, [ebp - 0x1e4]
push 1
push ecx
call fcn.004673f0
lea edx, [ebp - 0x20]
lea eax, [ebp - 0x1e4]
push edx
push eax
call fcn.00467af0
lea ecx, [ebp - 0x1e4]
push ecx
call fcn.00469bc0
mov esi, eax
lea edx, [ebp - 0x34c]
lea eax, [ebp - 0x1e4]
push edx
push eax
call fcn.00469430
lea ecx, [ebp - 0x20]
lea edx, [ebp - 0x34c]
push ecx
push esi
lea eax, [ebp - 0x1e4]
push edx
push eax
call fcn.00467ca0
lea ecx, [ebp - 0x34c]
push ebx
push ecx
mov dword [ebp - 0x10], eax
call fcn.00469b70
mov edx, dword [ebp - 0x10]
add esp, 0x44
lea eax, [ebp - 0x34c]
push edx
push eax
call fcn.00469320
mov ecx, dword [ebp - 0xc]
lea edx, [ebp - 0x34c]
push ecx
lea eax, [ebp - 0x1e4]
push edx
push eax
call fcn.00469270
lea ecx, [ebp - 0x20]
lea edx, [ebp - 0x34c]
push ecx
push esi
lea eax, [ebp - 0x1e4]
push edx
push eax
call fcn.00468000
lea ecx, [ebp - 0x34c]
push ecx
call fcn.00467910
lea edx, [ebp - 0x34c]
push edx
call fcn.004678b0
lea eax, [ebp - 0x1e4]
push eax
call fcn.00467720
lea ecx, [ebp - 0x1e4]
push ecx
call fcn.004678b0
mov edx, dword [ebp - 4]
push edx
call fcn.004bf540
push ebx
call fcn.004bf540
add esp, 0x3c
push 0x7f00
push 0
call dword [sym.imp.USER32.dll_LoadCursorA]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
mov eax, dword [0x4eba44]
push eax
call fcn.00453a90
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
add esp, 4
push edi
call esi
test eax, eax
je 0x45779a
lea ecx, [ebp - 0x4a0]
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileA]
mov esi, eax
test esi, esi
jne 0x45777d
mov edx, dword [0x4eba44]
mov eax, dword [ebp + 8]
push 0x3fa
push edx
push eax
call fcn.0044aec0
add esp, 0xc
mov eax, dword [ebp + 0x10]
test eax, eax
jne 0x457791
mov ecx, dword [0x4eba44]
push ecx
call dword [sym.imp.USER32.dll_DestroyWindow]
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [0x4eba44]
mov eax, dword [ebp + 8]
push 0x3fa
push edx
push eax
call fcn.0044aec0
add esp, 0xc
lea ecx, [ebp - 0x4a0]
push ecx
call esi
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret