Function at 0x408380
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2bc
mov eax, dword [0x9c48d0]
xor eax, esp
mov dword [esp + 0x2b8], eax
test byte [0x9e8474], 2
push ebx
push esi
push edi
mov esi, ecx
je 0x40861a
cmp dword [esi + 4], 0
je 0x40861a
cmp dword [0x9f43ec], 0
jne 0x40861a
mov ecx, dword [esi + 4]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
call edx
push eax
mov dword [esp + 0x10], eax
call fcn.00455870
add esp, 4
test al, al
je 0x40861a
mov ecx, dword [esi + 4]
mov eax, dword [ecx]
mov edx, dword [eax + 8]
call edx
mov edi, eax
mov ecx, 0x100
lea eax, [esp + 0x80]
mov dword [esp + 0x20], edi
call fcn.00412550
mov eax, dword [esi + 4]
lea ebx, [esp + 0x80]
call fcn.00407440
push edi
mov eax, ebx
push 0x9238f0
push eax
call fcn.00412600
mov eax, dword [esp + 0x98]
add esp, 0xc
push 0x923934
mov edi, 0x923938
call fcn.00458330
mov edx, dword [esp + 0x10]
add esp, 4
call fcn.00454f40
lea ecx, [esp + 0xb8]
push ecx
mov ebx, eax
mov edi, 0x104
call fcn.00458630
mov edi, dword [esp + 0x24]
add esp, 4
lea ebx, [esp + 0xb8]
call fcn.00457ca0
test al, al
je 0x40848c
mov eax, edi
call fcn.00457900
mov edi, eax
mov eax, ebx
call fcn.00457900
sub eax, edi
xor edx, edx
mov word [esp + eax*2 + 0xb8], dx
mov eax, dword [esp + 0xc]
call fcn.00455060
mov edi, eax
push 0x54
lea eax, [esp + 0x30]
push 0
push eax
mov dword [esp + 0x30], edi
call fcn.0065b340
mov eax, dword [esp + 0x98]
mov ecx, dword [esi + 8]
lea edx, [esp + 0xc4]
mov dword [esp + 0x40], eax
mov ebx, 1
add esp, 0xc
mov eax, str.Rename_To
mov dword [esp + 0x28], 0x58
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x44], edx
mov dword [esp + 0x48], 0x104
mov dword [esp + 0x40], ebx
call fcn.0044a3e0
mov ecx, dword [esp + 0x20]
lea edx, [esp + 0x28]
add ecx, 2
push edx
mov dword [esp + 0x5c], eax
mov dword [esp + 0x58], edi
mov dword [esp + 0x68], ecx
mov dword [esp + 0x60], 0x806
call dword [sym.imp.COMDLG32.dll_GetSaveFileNameW]
test eax, eax
jne 0x40851c
push edi
jmp 0x408606
call fcn.004027b0
mov eax, dword [esp + 0xc]
test eax, eax
je 0x408536
push eax
call fcn.00661039
add esp, 4
mov edi, eax
jmp 0x408538
xor edi, edi
push ebx
push esi
call fcn.00406e00
mov eax, dword [esi + 8]
add esp, 8
push eax
call dword [sym.imp.USER32.dll_SetFocus]
push 3
lea ecx, [esp + 0xbc]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x4085ac
call fcn.00450ef0
lea edx, [esp + 0x10]
push edx
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], esi
mov byte [esp + 0x20], bl
mov dword [esp + 0x1c], 0x1000101
call fcn.00405560
add esp, 4
push ebx
push ebx
push 0
mov eax, str.Failed_to_rename_the_file_
call fcn.0044a3e0
push eax
push esi
call fcn.0043dca0
push edi
call fcn.00658a01
mov eax, dword [esp + 0x28]
add esp, 4
push eax
jmp 0x408606
lea eax, [esp + 0xb8]
call fcn.00455200
push eax
push edi
mov dword [esp + 0x14], eax
call fcn.004053a0
lea edx, [esp + 0x18]
lea ecx, [esp + 0xc0]
push edx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], esi
mov byte [esp + 0x28], bl
mov dword [esp + 0x24], 0x1000101
call fcn.00405560
mov eax, dword [esp + 0x18]
add esp, 0xc
push eax
call fcn.00658a01
add esp, 4
push edi
call fcn.00658a01
mov ecx, dword [esp + 0x28]
add esp, 4
push ecx
call fcn.00658a01
add esp, 4
lea eax, [esp + 0x80]
call fcn.00401390
mov ecx, dword [esp + 0x2c4]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0065865c
mov esp, ebp
pop ebp
ret