Function at 0x4558a0
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54f4b5
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x6fb4c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
cmp dword [eax + 4], 0
jne 0x45591e
mov eax, dword [ebx + 4]
cmp dword [eax + 4], 0
jne 0x45591e
push str.Empty_filename_passed_to_function
movaps xmm0, xmmword [0x591ac0]
lea eax, [ebp - 0x28]
push eax
mov dword [ebp - 0x18], 0x5919f8
movups xmmword [ebp - 0x28], xmm0
call fcn.00429410
add esp, 8
call fcn.0052a48a
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 + 8]
mov ecx, ebx
push eax
call fcn.0044cc70
xor ecx, ecx
mov dword [ebp - 4], 0
push 1
push ecx
mov word [ebp - 0x10], cx
mov ecx, eax
push dword [ebp - 0x10]
call fcn.00408f00
mov ecx, dword [ebp + 8]
or edi, 0xffffffff
mov esi, eax
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ecx]
test ecx, ecx
je 0x45596d
cmp ecx, edi
je 0x45597c
mov eax, dword [ebp + 8]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
setne al
test al, al
jne 0x45597c
push 4
push 2
push dword [ebp + 8]
call fcn.00403690
add esp, 0xc
cmp esi, 0xffffffff
je 0x45598b
push str.Broken_filename_passed_to_function
jmp 0x4558e1
mov esi, dword [ebp + 0xc]
mov eax, dword [esi]
cmp dword [eax + 4], 0
jne 0x4559a3
mov eax, dword [esi + 4]
cmp dword [eax + 4], 0
je 0x4558dc
lea eax, [ebp + 8]
mov ecx, esi
push eax
call fcn.0044cc70
xor ecx, ecx
mov dword [ebp - 4], 1
push 1
push ecx
mov word [ebp - 0x10], cx
mov ecx, eax
push dword [ebp - 0x10]
call fcn.00408f00
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ecx]
test ecx, ecx
je 0x4559f1
cmp ecx, 0xffffffff
je 0x455a00
mov eax, dword [ebp + 8]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
setne al
test al, al
jne 0x455a00
push 4
push 2
push dword [ebp + 8]
call fcn.00403690
add esp, 0xc
cmp dword [ebp - 0x10], 0xffffffff
jne 0x455981
lea eax, [ebp - 0x10]
mov ecx, esi
push eax
call fcn.0044cc70
mov ecx, eax
mov dword [ebp - 4], 2
call fcn.0040d690
mov esi, eax
mov ecx, ebx
lea eax, [ebp + 8]
push eax
call fcn.0044cc70
mov ecx, eax
mov byte [ebp - 4], 3
call fcn.0040d690
push 1
push esi
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov ecx, dword [ebp + 8]
mov esi, eax
test esi, esi
setne bl
mov ecx, dword [ecx]
test ecx, ecx
je 0x455a6b
cmp ecx, 0xffffffff
je 0x455a7a
mov eax, dword [ebp + 8]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
setne al
test al, al
jne 0x455a7a
push 4
push 2
push dword [ebp + 8]
call fcn.00403690
add esp, 0xc
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
test eax, eax
je 0x455a97
cmp eax, 0xffffffff
je 0x455aa6
mov eax, dword [ebp - 0x10]
lock xadd dword [eax], edi
dec edi
setne al
test al, al
jne 0x455aa6
push 4
push 2
push dword [ebp - 0x10]
call fcn.00403690
add esp, 0xc
test esi, esi
jne 0x455abc
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