Function at 0x4e2880
Capabilities:
Check if file exists
Get file attributes
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x559a50
mov eax, dword fs:[0]
push eax
mov eax, 0x6054
call fcn.00520bc0
mov eax, dword [0x5a9008]
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
push 0x800
lea eax, [ebp - 0x3010]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
test eax, eax
je 0x4e2bd3
cmp eax, 0x800
jae 0x4e2bd3
push 0x800
lea eax, [ebp - 0x4010]
push eax
push edi
lfence
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
test eax, eax
je 0x4e2bd3
cmp eax, 0x800
jae 0x4e2bd3
lea ecx, [ebp - 0x3010]
lfence
call fcn.004cb610
mov ebx, eax
lea ecx, [ebp - 0x4010]
mov dword [ebp - 0x6058], ebx
call fcn.004cb610
mov esi, eax
cmp word [esi], 0
je 0x4e2bd3
push 0xffffffffffffffff
push esi
push 0xffffffffffffffff
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CompareStringW]
push 0x1001
push 0x400
call ebx
sub eax, 2
je 0x4e2bd3
mov ecx, edi
call fcn.004cb610
push 0xffffffffffffffff
push esi
push 0xffffffffffffffff
push eax
push 0x1001
push 0x400
call ebx
sub eax, 2
jne 0x4e2bd3
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor esi, esi
mov word [ebp - 0x1010], ax
test ax, ax
jne 0x4e2a24
push 0x7ff
lea eax, [ebp - 0x1010]
push edi
push eax
call fcn.0053048c
add esp, 0xc
lea ecx, [ebp - 0x1010]
xor eax, eax
mov word [ebp - 0x12], ax
push esi
push 0x57e2fc
push 0x800
call fcn.004cb610
push eax
call fcn.004caf80
add esp, 0x10
lea eax, [ebp - 0x1010]
push eax
call ebx
cmp eax, 0xffffffff
jne 0x4e2a03
push ecx
lea edx, [ebp - 0x5010]
lea ecx, [ebp - 0x1010]
call fcn.004cbc50
add esp, 4
test al, al
je 0x4e29fa
lea eax, [ebp - 0x5010]
push eax
call ebx
cmp eax, 0xffffffff
jne 0x4e2a03
mov ax, word [ebp - 0x1010]
jmp 0x4e2a0c
xor eax, eax
mov word [ebp - 0x1010], ax
add esi, 0x7b
cmp esi, 0x2710
jl 0x4e2982
test ax, ax
je 0x4e2bd3
push 0x7ff
lea eax, [ebp - 0x2010]
push edi
push eax
lfence
call fcn.0053048c
add esp, 0xc
lea ecx, [ebp - 0x2010]
xor eax, eax
mov word [ebp - 0x1012], ax
call fcn.004cb610
mov edx, eax
mov esi, 0x800
mov ecx, edx
mov dword [ebp - 0x605c], edx
lea eax, [ebp - 0x2010]
sub ecx, eax
sar ecx, 1
sub esi, ecx
je 0x4e2a90
lea eax, [esi - 1]
push eax
push dword [ebp - 0x6058]
lfence
push edx
call fcn.0053048c
mov eax, dword [ebp - 0x605c]
add esp, 0xc
xor ecx, ecx
mov word [eax + esi*2 - 2], cx
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileW]
lea eax, [ebp - 0x1010]
push eax
lea eax, [ebp - 0x2010]
push eax
call esi
test eax, eax
je 0x4e2bd3
lea ecx, [ebp - 0x6050]
lfence
call fcn.004d52d0
mov dword [ebp - 4], 0
push edi
mov byte [ebp - 0x6051], 0
call ebx
cmp eax, 0xffffffff
jne 0x4e2b0f
push ecx
lea edx, [ebp - 0x5010]
mov ecx, edi
lfence
call fcn.004cbc50
add esp, 4
test al, al
je 0x4e2af8
lea eax, [ebp - 0x5010]
push eax
call ebx
cmp eax, 0xffffffff
jne 0x4e2b0f
push 0x12
push edi
lea ecx, [ebp - 0x6050]
lfence
call fcn.004d5580
mov byte [ebp - 0x6051], al
lea eax, [ebp - 0x2010]
push eax
lea eax, [ebp - 0x1010]
push eax
call esi
cmp byte [ebp - 0x6051], 0
je 0x4e2b8f
mov eax, dword [ebp - 0x6048]
mov cl, 1
test eax, eax
je 0x4e2b84
cmp eax, 0xffffffff
je 0x4e2b62
cmp byte [ebp - 0x603c], 0
jne 0x4e2b58
cmp dword [ebp - 0x6040], 0
jne 0x4e2b58
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp eax, 1
sete cl
mov dword [ebp - 0x6048], 0xffffffff
mov dword [ebp - 0x6040], 0
test cl, cl
jne 0x4e2b84
cmp byte [ebp - 0x6038], cl
je 0x4e2b84
push 2
mov ecx, 0x5aa7f8
call fcn.004d3050
lea ecx, [ebp - 0x6050]
call fcn.004d5700
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x6048], 0xffffffff
mov dword [ebp - 0x6050], 0x57e048
je 0x4e2bcf
cmp byte [ebp - 0x603c], 0
jne 0x4e2bcf
cmp byte [ebp - 0x603a], 0
lea ecx, [ebp - 0x6050]
je 0x4e2bca
call fcn.004d5700
mov al, 1
jmp 0x4e2bd5
call fcn.004d56a0
mov al, 1
jmp 0x4e2bd5
xor al, al
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.004ef615
mov esp, ebp
pop ebp
ret