Function at 0x4e6140
Capabilities:
Copy file
Move file

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x560341
push eax
mov dword fs:[0], esp
push ebx
sub esp, 0x1dc
push esi
push 0
call dword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
add esp, 4
push eax
call dword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_srand]
add esp, 4
lea eax, [ebp - 0x1e8]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x4e65ea
lea ecx, [ebp - 0x50]
call fcn.00502ef0
lea ecx, [ebp - 0xe0]
mov dword [ebp - 4], 0
call fcn.00503290
mov byte [ebp - 4], 1
lea eax, [ebp - 0x50]
cmp dword [ebp - 0x3c], 0xf
cmova eax, dword [ebp - 0x50]
push eax
lea eax, [ebp - 0x1e8]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
je 0x4e657e
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x98]
call fcn.004f6ec0
mov byte [ebp - 4], 2
mov eax, dword [0x6ba4fc]
mov esi, dword [0x6ba4f8]
sub eax, esi
mov dword [ebp - 0x20], 0x6bc8f8
cmp eax, 0xffffffff
jne 0x4e621b
mov ecx, 0x6bc8f8
call fcn.004facc0
jmp 0x4e6225
inc eax
lea ecx, [ebp - 0x20]
push eax
call fcn.004fac70
add eax, esi
mov byte [ebp - 0x11], 0
xor edx, edx
mov ecx, 0x7e
div ecx
inc dl
mov al, dl
mov byte [ebp - 0x1b], dl
xor al, 0x59
mov cl, dl
mov byte [ebp - 0x1a], al
xor cl, 0x6f
mov al, dl
mov byte [ebp - 0x19], cl
xor al, 0x6c
mov byte [ebp - 0x17], cl
mov byte [ebp - 0x18], al
lea ecx, [ebp - 0x1b]
mov al, dl
xor al, 0x76
mov byte [ebp - 0x16], al
mov al, dl
xor al, 0x2e
mov byte [ebp - 0x15], al
mov al, dl
xor al, 0x65
xor dl, 0x78
mov byte [ebp - 0x14], al
mov byte [ebp - 0x12], al
lea eax, [ebp - 0xc8]
push eax
mov byte [ebp - 0x13], dl
call fcn.004f5b10
mov esi, eax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x1e8]
xorps xmm0, xmm0
mov dword [ebp - 0x58], 0
movups xmmword [ebp - 0x68], xmm0
mov dword [ebp - 0x54], 0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4e62a3
sub ecx, edx
lea eax, [ebp - 0x1e8]
push ecx
push eax
lea ecx, [ebp - 0x68]
call fcn.004f9bf0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x1e8]
xorps xmm0, xmm0
mov dword [ebp - 0x28], 0
movups xmmword [ebp - 0x38], xmm0
mov dword [ebp - 0x24], 0
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4e62e0
sub ecx, edx
lea eax, [ebp - 0x1e8]
push ecx
push eax
lea ecx, [ebp - 0x38]
call fcn.004f9bf0
mov byte [ebp - 4], 5
lea edx, [ebp - 0x38]
cmp dword [ebp - 0x24], 0xf
mov eax, dword [ebp - 0x28]
cmova edx, dword [ebp - 0x38]
test eax, eax
je 0x4e632e
or ecx, 0xffffffff
dec eax
cmp eax, ecx
cmovb ecx, eax
add ecx, edx
cmp byte [ecx], 0x5c
je 0x4e632a
nop
cmp ecx, edx
je 0x4e632e
dec ecx
cmp byte [ecx], 0x5c
jne 0x4e6320
sub ecx, edx
jmp 0x4e6331
or ecx, 0xffffffff
inc ecx
mov dword [ebp - 0xa0], 0
cmp dword [ebp - 0x58], ecx
lea eax, [ebp - 0x68]
xorps xmm0, xmm0
mov dword [ebp - 0x9c], 0
cmovb ecx, dword [ebp - 0x58]
cmp dword [ebp - 0x54], 0xf
push ecx
cmova eax, dword [ebp - 0x68]
lea ecx, [ebp - 0xb0]
push eax
movups xmmword [ebp - 0xb0], xmm0
call fcn.004f9bf0
push esi
lea eax, [ebp - 0xb0]
mov byte [ebp - 4], 6
push eax
push dword [ebp - 0x20]
lea ecx, [ebp - 0x80]
call fcn.004fa180
mov byte [ebp - 4], 8
mov ecx, dword [ebp - 0x9c]
cmp ecx, 0xf
jbe 0x4e63c4
mov edx, dword [ebp - 0xb0]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4e63ba
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4e6472
push ecx
push edx
call fcn.0055ec01
add esp, 8
mov byte [ebp - 4], 9
mov ecx, dword [ebp - 0x24]
cmp ecx, 0xf
jbe 0x4e63fc
mov edx, dword [ebp - 0x38]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4e63f2
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4e6472
push ecx
push edx
call fcn.0055ec01
add esp, 8
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0xf
mov byte [ebp - 0x38], 0
mov byte [ebp - 4], 0xa
mov ecx, dword [ebp - 0x54]
cmp ecx, 0xf
jbe 0x4e6442
mov edx, dword [ebp - 0x68]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4e6438
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4e6472
push ecx
push edx
call fcn.0055ec01
add esp, 8
mov byte [ebp - 4], 0xb
mov ecx, dword [ebp - 0xb4]
cmp ecx, 0xf
jbe 0x4e6482
mov edx, dword [ebp - 0xc8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4e6478
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4e6478
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0055ec01
add esp, 8
cmp dword [ebp - 0x6c], 0xf
lea ecx, [ebp - 0x80]
push 0
cmova ecx, dword [ebp - 0x80]
lea eax, [ebp - 0x98]
cmp dword [ebp - 0x84], 0xf
push ecx
cmova eax, dword [ebp - 0x98]
push eax
mov dword [ebp - 0xb8], 0
mov dword [ebp - 0xb4], 0xf
mov byte [ebp - 0xc8], 0
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x4e64e3
cmp dword [ebp - 0x3c], 0xf
lea eax, [ebp - 0x50]
push dword [ebp - 0x40]
cmova eax, dword [ebp - 0x50]
mov ecx, 0x6ba074
push eax
call fcn.004f7540
mov ecx, dword [ebp - 0x6c]
cmp ecx, 0xf
jbe 0x4e6517
mov edx, dword [ebp - 0x80]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4e650d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4e65da
push ecx
push edx
call fcn.0055ec01
add esp, 8
mov ecx, dword [ebp - 0x84]
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x6c], 0xf
mov byte [ebp - 0x80], 0
cmp ecx, 0xf
jbe 0x4e6563
mov edx, dword [ebp - 0x98]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4e6559
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4e65da
push ecx
push edx
call fcn.0055ec01
add esp, 8
mov dword [ebp - 0x88], 0
mov dword [ebp - 0x84], 0xf
mov byte [ebp - 0x98], 0
mov ecx, dword [ebp - 0xcc]
cmp ecx, 0xf
jbe 0x4e65b4
mov edx, dword [ebp - 0xe0]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4e65aa
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4e65da
push ecx
push edx
call fcn.0055ec01
add esp, 8
mov ecx, dword [ebp - 0x3c]
cmp ecx, 0xf
jbe 0x4e65ea
mov edx, dword [ebp - 0x50]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4e65e0
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4e65e0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0055ec01
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret