Function at 0x401680
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x324
mov eax, dword [0x4255e0]
push ebx
xor eax, ebp
push esi
push edi
mov dword [esp + 0x32c], eax
call fcn.00408d30
mov esi, eax
mov eax, dword [esi]
push 0x426768
mov ecx, esi
call dword [eax + 4]
test al, al
jne 0x4016ec
mov ecx, dword [0x426564]
push 0x41e344
push 0
push 0xc
push 0xffffffffffffffff
push ecx
call dword [sym.imp.USER32.dll_SendDlgItemMessageA]
push esi
call fcn.00404650
add esp, 4
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x320]
xor ecx, ebp
call fcn.0040e9b5
mov esp, ebp
pop ebp
ret
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 8]
mov ebx, dword [sym.imp.USER32.dll_SendDlgItemMessageA]
push 0x41e334
push 0
push 0xc
mov dword [0x42686c], eax
mov eax, dword [0x426564]
push 0xffffffffffffffff
push eax
call ebx
mov byte [esp + 0x118], 0
xor eax, eax
mov ecx, 0x40
lea edi, [esp + 0x119]
rep stosd dword es:[edi], eax
push 0x426724
push 0x4266e4
push 0x41e318
stosw word es:[edi], ax
lea ecx, [esp + 0x124]
push 0x104
push ecx
stosb byte es:[edi], al
call fcn.0040eccc
mov eax, dword [0x426564]
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
add esp, 0x14
lea edx, [esp + 0x118]
push edx
push 0
push 0xc
push eax
call edi
mov ecx, dword [0x426564]
push 0
push 0
push 0x7ea
push ecx
call edi
mov edx, dword [0x426564]
push 1
push 1
push edx
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
mov eax, dword [0x4266e0]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [0x426564]
push 1
push ecx
call fcn.004021a0
add esp, 8
test al, al
je 0x4017eb
mov edx, dword [0x426564]
push 0x41e2e4
push 0
push 0xc
push 0xffffffffffffffff
push edx
call ebx
push esi
call fcn.00404650
add esp, 4
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x320]
xor ecx, ebp
call fcn.0040e9b5
mov esp, ebp
pop ebp
ret
mov eax, dword [esi]
push 0x401580
push 0x426578
mov ecx, esi
call dword [eax + 0xc]
test al, al
jne 0x401876
mov byte [esp + 0x220], al
xor eax, eax
mov ecx, 0x40
lea edi, [esp + 0x221]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
call fcn.00408dd0
push eax
call fcn.00408dc0
push eax
push 0x41e2cc
lea ecx, [esp + 0x22c]
push 0x104
push ecx
call fcn.0040eccc
mov eax, dword [0x426564]
add esp, 0x14
lea edx, [esp + 0x220]
push edx
push 0
push 0xc
push 0xffffffffffffffff
push eax
call ebx
push esi
call fcn.00404650
add esp, 4
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x320]
xor ecx, ebp
call fcn.0040e9b5
mov esp, ebp
pop ebp
ret
push esi
call fcn.00404650
push 0x104
lea ecx, [esp + 0x18]
push 0x426578
push ecx
call fcn.0040e860
mov esi, dword [sym.imp.SHLWAPI.dll_PathAppendA]
add esp, 0x10
push 0x41e2c4
lea edx, [esp + 0x14]
push edx
call esi
push 0x426768
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameA]
push eax
lea eax, [esp + 0x14]
push eax
call esi
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea edx, [esp + 0x10]
push edx
push 0x426768
call dword [sym.imp.KERNEL32.dll_MoveFileA]
mov ecx, dword [esp + 0x32c]
pop edi
pop esi
xor ecx, ebp
mov al, 1
pop ebx
call fcn.0040e9b5
mov esp, ebp
pop ebp
ret