Function at 0x459e40
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x549d70
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
push ebx
push esi
push edi
mov eax, dword [0x8870bc]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov ecx, edi
call fcn.004588e0
test al, al
je 0x459eb8
movaps xmm0, xmmword [0x728b80]
lea eax, [ebp - 0x3c]
push str.Empty_filename_passed_to_function
push eax
movups xmmword [ebp - 0x3c], xmm0
mov dword [ebp - 0x2c], 0x728ab0
call fcn.0041c240
add esp, 8
call fcn.0052c6d9
mov dword [eax], 0x16
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x14]
mov ecx, edi
push eax
call fcn.00454300
xor ecx, ecx
mov dword [ebp - 4], 0
push 1
push ecx
mov word [ebp - 0x1c], cx
mov ecx, eax
push dword [ebp - 0x1c]
call fcn.00406e50
cmp eax, 0xffffffff
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
setne bl
or esi, 0xffffffff
mov eax, dword [eax]
test eax, eax
je 0x459f0d
cmp eax, esi
je 0x459f1c
mov eax, dword [ebp - 0x14]
mov ecx, esi
lock xadd dword [eax], ecx
cmp ecx, 1
setne al
test al, al
jne 0x459f1c
push 4
push 2
push dword [ebp - 0x14]
call fcn.004016c0
add esp, 0xc
test bl, bl
je 0x459f62
movaps xmm0, xmmword [0x728b80]
lea eax, [ebp - 0x50]
push str.Broken_filename_passed_to_function
push eax
movups xmmword [ebp - 0x50], xmm0
mov dword [ebp - 0x40], 0x728ab0
call fcn.0041c240
add esp, 8
call fcn.0052c6d9
mov dword [eax], 0x16
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp + 0xc]
mov ecx, ebx
call fcn.004588e0
test al, al
je 0x459fb2
movaps xmm0, xmmword [0x728b80]
lea eax, [ebp - 0x64]
push str.Empty_filename_passed_to_function
push eax
movups xmmword [ebp - 0x64], xmm0
mov dword [ebp - 0x54], 0x728ab0
call fcn.0041c240
add esp, 8
call fcn.0052c6d9
mov dword [eax], 0x16
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x18]
mov ecx, ebx
push eax
call fcn.00454300
xor ecx, ecx
mov dword [ebp - 4], 1
push 1
push ecx
mov word [ebp - 0x20], cx
mov ecx, eax
push dword [ebp - 0x20]
call fcn.00406e50
cmp eax, 0xffffffff
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x18]
setne byte [ebp - 0xd]
mov eax, dword [eax]
test eax, eax
je 0x45a004
cmp eax, 0xffffffff
je 0x45a013
mov eax, dword [ebp - 0x18]
lock xadd dword [eax], esi
cmp esi, 1
setne al
test al, al
jne 0x45a013
push 4
push 2
push dword [ebp - 0x18]
call fcn.004016c0
add esp, 0xc
cmp byte [ebp - 0xd], 0
je 0x45a05b
movaps xmm0, xmmword [0x728b80]
lea eax, [ebp - 0x78]
push str.Broken_filename_passed_to_function
push eax
movups xmmword [ebp - 0x78], xmm0
mov dword [ebp - 0x68], 0x728ab0
call fcn.0041c240
add esp, 8
call fcn.0052c6d9
mov dword [eax], 0x16
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x28]
mov ecx, ebx
push eax
call fcn.00454300
mov ecx, eax
mov dword [ebp - 4], 2
call fcn.0040bc30
mov esi, eax
mov ecx, edi
lea eax, [ebp - 0x24]
push eax
call fcn.00454300
mov ecx, eax
mov byte [ebp - 4], 3
call fcn.0040bc30
push 1
push esi
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov esi, eax
lea ecx, [ebp - 0x24]
test esi, esi
setne bl
call fcn.004011e0
lea ecx, [ebp - 0x28]
call fcn.004011e0
test esi, esi
jne 0x45a0c3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
mov dword [ecx + 4], 2
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret