Function at 0x44ec90
Capabilities:
Check if file exists
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56f330
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x5e8ea4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
cmp dword [0x5e9a0c], 8
lea esi, [edi + 0x18]
mov ebx, dword [esi + 0x10]
mov eax, 0x5e99f8
cmovae eax, dword [0x5e99f8]
mov ecx, esi
cmp dword [esi + 0x14], 8
jb 0x44ece0
mov ecx, dword [esi]
push dword [0x5e9a08]
mov edx, ebx
push eax
push ecx
call fcn.004515f0
sub ebx, dword [0x5e9a08]
add esp, 0xc
cmp eax, ebx
je 0x44ed03
xor al, al
jmp 0x44ef66
mov eax, dword [edi]
cmp eax, 0xffffffff
je 0x44ed1f
push eax
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push dword [edi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi], 0xffffffff
push esi
lea ecx, [ebp - 0x28]
call fcn.0044c0c0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
cmp dword [0x5e9a0c], 8
mov eax, 0x5e99f8
push dword [0x5e9a08]
cmovae eax, dword [0x5e99f8]
cmp dword [ebp - 0x14], 8
mov ebx, dword [ebp - 0x18]
mov edx, ebx
cmovae ecx, dword [ebp - 0x28]
push eax
push ecx
call fcn.004515f0
add esp, 0xc
cmp eax, 0xffffffff
jne 0x44ed7d
push 0x33
push str.No_self_extension_in_the_legacy_name__Cannot_rename
lea ecx, [edi + 0x30]
call fcn.0044a890
xor bl, bl
jmp 0x44ef2e
test eax, eax
jne 0x44ed97
push 0x32
push str.Incorrect_legacy_name__starts_with_self_extension_
lea ecx, [edi + 0x30]
call fcn.0044a890
xor bl, bl
jmp 0x44ef2e
lea ecx, [eax - 1]
mov dword [ebp - 0x2c], ecx
cmp ebx, ecx
jb 0x44ef82
mov edx, dword [0x5e9a08]
mov eax, ebx
sub eax, ecx
inc edx
cmp eax, edx
cmovb edx, eax
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
sub ebx, edx
mov dword [ebp - 0x18], ebx
sub ebx, dword [ebp - 0x2c]
lea ecx, [eax + ecx*2]
lea eax, [ebx*2 + 2]
push eax
lea eax, [ecx + edx*2]
push eax
push ecx
call fcn.00544a90
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea eax, [ebp - 0x28]
add esp, 0xc
cmp dword [ebp - 0x14], 8
cmovae eax, dword [ebp - 0x28]
push eax
call ebx
test eax, eax
je 0x44ee10
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
nop word [eax + eax]
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call ebx
test eax, eax
je 0x44ee33
push 1
push 0x5d5b48
lea ecx, [ebp - 0x28]
call fcn.0044fc90
jmp 0x44ee10
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
mov ecx, esi
cmovae eax, dword [ebp - 0x28]
cmp dword [esi + 0x14], 8
jb 0x44ee48
mov ecx, dword [esi]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
jne 0x44ef12
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea ecx, [ebp - 0x5c]
call fcn.0044d1f0
push eax
mov edx, 0x5d5a48
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x44]
call fcn.00451220
add esp, 4
lea ecx, [edi + 0x30]
push eax
call fcn.004494d0
mov edx, dword [ebp - 0x30]
cmp edx, 8
jb 0x44eec0
mov ecx, dword [ebp - 0x44]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x44eeb6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x44ef87
push edx
push ecx
call fcn.0052cac7
add esp, 8
mov edx, dword [ebp - 0x48]
xor eax, eax
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 7
mov word [ebp - 0x44], ax
cmp edx, 8
jb 0x44ef0e
mov ecx, dword [ebp - 0x5c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x44ef04
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x44ef8c
push edx
push ecx
call fcn.0052cac7
add esp, 8
xor bl, bl
jmp 0x44ef2e
lea eax, [ebp - 0x28]
cmp esi, eax
je 0x44ef2c
cmp dword [ebp - 0x14], 8
mov ecx, esi
push dword [ebp - 0x18]
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.0044a890
mov bl, 1
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x44ef64
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x44ef5a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x44ef91
push edx
push ecx
call fcn.0052cac7
add esp, 8
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0052c886
mov esp, ebp
pop ebp
ret
call fcn.0044ac30
call fcn.00548571
call fcn.00548571
call fcn.00548571
int3