Function at 0x4519d0
Capabilities:
Check if file exists
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57ad37
mov eax, dword fs:[0]
push eax
mov eax, 0x10084
call fcn.005379c0
mov eax, dword [0x5f6ea4]
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 ebx, ecx
cmp dword [0x5f7a24], 8
lea edi, [ebx + 0x18]
mov esi, dword [edi + 0x10]
mov eax, 0x5f7a10
cmovae eax, dword [0x5f7a10]
mov ecx, edi
cmp dword [edi + 0x14], 8
jb 0x451a27
mov ecx, dword [edi]
push dword [0x5f7a20]
mov edx, esi
push eax
push 0
call fcn.00454b60
sub esi, dword [0x5f7a20]
add esp, 0xc
cmp eax, esi
je 0x451a5a
push 0x11
push str.Invalid_extension
lea ecx, [ebx + 0x30]
call fcn.0044b750
xor al, al
jmp 0x452059
mov eax, dword [ebx]
cmp eax, 0xffffffff
je 0x451a76
push eax
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebx], 0xffffffff
push edi
lea ecx, [ebp - 0x10028]
call fcn.0044d150
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x10028]
cmp dword [0x5f7a24], 8
mov eax, 0x5f7a10
push dword [0x5f7a20]
cmovae eax, dword [0x5f7a10]
cmp dword [ebp - 0x10014], 8
mov esi, dword [ebp - 0x10018]
mov edx, esi
cmovae ecx, dword [ebp - 0x10028]
push eax
push 0
call fcn.00454b60
add esp, 0xc
cmp eax, 0xffffffff
jne 0x451ae4
push 0x33
push str.No_self_extension_in_the_legacy_name__Cannot_rename
lea ecx, [ebx + 0x30]
call fcn.0044b750
xor bl, bl
jmp 0x45201b
test eax, eax
jne 0x451afe
push 0x32
push str.Incorrect_legacy_name__starts_with_self_extension_
lea ecx, [ebx + 0x30]
call fcn.0044b750
xor bl, bl
jmp 0x45201b
lea ecx, [eax - 1]
mov dword [ebp - 0x10074], ecx
cmp esi, ecx
jb 0x452075
mov edx, dword [0x5f7a20]
mov eax, esi
sub eax, ecx
inc edx
cmp eax, edx
cmovb edx, eax
cmp dword [ebp - 0x10014], 8
lea eax, [ebp - 0x10028]
cmovae eax, dword [ebp - 0x10028]
sub esi, edx
mov dword [ebp - 0x10018], esi
sub esi, dword [ebp - 0x10074]
lea ecx, [eax + ecx*2]
lea eax, [esi*2 + 2]
push eax
lea eax, [ecx + edx*2]
push eax
push ecx
call fcn.0054f1d0
add esp, 0xc
lea eax, [ebp - 0x10028]
cmp dword [ebp - 0x10014], 8
cmovae eax, dword [ebp - 0x10028]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x451ef0
xor eax, eax
mov dword [ebp - 0x10048], 0
mov dword [ebp - 0x10044], 7
mov word [ebp - 0x10058], ax
push 0x5e1cac
lea ecx, [ebp - 0x10070]
mov byte [ebp - 4], 1
call fcn.004499e0
xor eax, eax
mov dword [ebp - 0x10030], 0
mov dword [ebp - 0x1002c], 7
mov word [ebp - 0x10040], ax
mov byte [ebp - 4], 3
lea edx, [ebp - 0x10028]
cmp dword [ebp - 0x10014], 8
mov eax, dword [ebp - 0x10018]
cmovae edx, dword [ebp - 0x10028]
test eax, eax
je 0x451ce2
dec eax
or ecx, 0xffffffff
cmp eax, ecx
cmovb ecx, eax
cmp word [edx + ecx*2], 0x2e
lea esi, [edx + ecx*2]
je 0x451c14
cmp esi, edx
je 0x451ce2
sub esi, 2
cmp word [esi], 0x2e
jne 0x451c03
sub esi, edx
sar esi, 1
cmp esi, 0xffffffff
je 0x451ce2
push esi
push 0
lea eax, [ebp - 0x1008c]
push eax
lea ecx, [ebp - 0x10028]
call fcn.00453170
push eax
lea ecx, [ebp - 0x10058]
call fcn.004499a0
mov edx, dword [ebp - 0x10078]
cmp edx, 8
jb 0x451c82
mov ecx, dword [ebp - 0x1008c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x451c78
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45207a
push edx
push ecx
call fcn.00537216
add esp, 8
mov eax, dword [ebp - 0x10018]
lea ecx, [ebp - 0x10028]
sub eax, esi
push eax
push esi
lea eax, [ebp - 0x1008c]
push eax
call fcn.00453170
push eax
lea ecx, [ebp - 0x10070]
call fcn.004499a0
mov edx, dword [ebp - 0x10078]
cmp edx, 8
jb 0x451d07
mov ecx, dword [ebp - 0x1008c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x451cfd
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45207f
jmp 0x451cfd
lea eax, [ebp - 0x10028]
push eax
lea ecx, [ebp - 0x1008c]
call fcn.0044d150
push eax
lea ecx, [ebp - 0x10058]
jmp 0x451ca5
push edx
push ecx
call fcn.00537216
add esp, 8
xor esi, esi
nop dword [eax]
cmp dword [ebp - 0x1005c], 8
lea ecx, [ebp - 0x10070]
lea eax, [ebp - 0x10058]
cmovae ecx, dword [ebp - 0x10070]
inc esi
cmp dword [ebp - 0x10044], 8
push ecx
cmovae eax, dword [ebp - 0x10058]
push esi
push eax
lea eax, [ebp - 0x10010]
push str._s__d__s
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
lea ecx, [ebp - 0x10010]
add esp, 0x14
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x451d60
sub ecx, edx
lea eax, [ebp - 0x10010]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x10040]
call fcn.0044b750
cmp dword [ebp - 0x1002c], 8
lea eax, [ebp - 0x10040]
cmovae eax, dword [ebp - 0x10040]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x451d10
cmp dword [ebp - 0x1002c], 8
lea ecx, [ebp - 0x10040]
lea eax, [ebp - 0x10028]
cmovae ecx, dword [ebp - 0x10040]
cmp dword [ebp - 0x10014], 8
push ecx
cmovae eax, dword [ebp - 0x10028]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
jne 0x451deb
lea eax, [ebp - 0x10040]
push eax
lea ecx, [ebp - 0x10028]
call fcn.004533d0
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x1002c]
cmp edx, 8
jb 0x451e2f
mov ecx, dword [ebp - 0x10040]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x451e25
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45207f
push edx
push ecx
call fcn.00537216
add esp, 8
xor eax, eax
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x1005c]
mov dword [ebp - 0x10030], 0
mov dword [ebp - 0x1002c], 7
mov word [ebp - 0x10040], ax
cmp edx, 8
jb 0x451e90
mov ecx, dword [ebp - 0x10070]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x451e86
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45207f
push edx
push ecx
call fcn.00537216
add esp, 8
xor eax, eax
mov dword [ebp - 0x10060], 0
mov byte [ebp - 4], al
mov edx, dword [ebp - 0x10044]
mov dword [ebp - 0x1005c], 7
mov word [ebp - 0x10070], ax
cmp edx, 8
jb 0x451ef0
mov ecx, dword [ebp - 0x10058]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x451ee6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45207f
push edx
push ecx
call fcn.00537216
add esp, 8
cmp dword [ebp - 0x10014], 8
lea eax, [ebp - 0x10028]
mov ecx, edi
cmovae eax, dword [ebp - 0x10028]
cmp dword [edi + 0x14], 8
jb 0x451f0e
mov ecx, dword [edi]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
jne 0x451ff3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea ecx, [ebp - 0x1008c]
call fcn.0044e430
push eax
mov edx, 0x5e1cb8
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x10058]
call fcn.004549c0
add esp, 4
lea ecx, [ebx + 0x30]
push eax
call fcn.004499a0
mov edx, dword [ebp - 0x10044]
cmp edx, 8
jb 0x451f92
mov ecx, dword [ebp - 0x10058]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x451f88
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45207f
push edx
push ecx
call fcn.00537216
add esp, 8
mov edx, dword [ebp - 0x10078]
xor eax, eax
mov dword [ebp - 0x10048], 0
mov dword [ebp - 0x10044], 7
mov word [ebp - 0x10058], ax
cmp edx, 8
jb 0x451fef
mov ecx, dword [ebp - 0x1008c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x451fe5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45207f
push edx
push ecx
call fcn.00537216
add esp, 8
xor bl, bl
jmp 0x45201b
lea eax, [ebp - 0x10028]
cmp edi, eax
je 0x452019
cmp dword [ebp - 0x10014], 8
mov ecx, edi
push dword [ebp - 0x10018]
cmovae eax, dword [ebp - 0x10028]
push eax
call fcn.0044b750
mov bl, 1
mov edx, dword [ebp - 0x10014]
cmp edx, 8
jb 0x452057
mov ecx, dword [ebp - 0x10028]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x45204d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45207f
push edx
push ecx
call fcn.00537216
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.00536fd5
mov esp, ebp
pop ebp
ret
call fcn.0044bd60
call fcn.00552cb1
call fcn.00552cb1
int3