Function at 0x4e6170
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 0x560701
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 0x4e661a
lea ecx, [ebp - 0x50]
call fcn.00502e50
lea ecx, [ebp - 0xe0]
mov dword [ebp - 4], 0
call fcn.005031f0
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 0x4e65ae
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x98]
call fcn.004f6ef0
mov byte [ebp - 4], 2
mov eax, dword [0x6ba4fc]
mov esi, dword [0x6ba4f8]
sub eax, esi
mov dword [ebp - 0x20], 0x6bc918
cmp eax, 0xffffffff
jne 0x4e624b
mov ecx, 0x6bc918
call fcn.004facf0
jmp 0x4e6255
inc eax
lea ecx, [ebp - 0x20]
push eax
call fcn.004faca0
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.004f5b40
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 0x4e62d3
sub ecx, edx
lea eax, [ebp - 0x1e8]
push ecx
push eax
lea ecx, [ebp - 0x68]
call fcn.004f9c20
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 0x4e6310
sub ecx, edx
lea eax, [ebp - 0x1e8]
push ecx
push eax
lea ecx, [ebp - 0x38]
call fcn.004f9c20
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 0x4e635e
or ecx, 0xffffffff
dec eax
cmp eax, ecx
cmovb ecx, eax
add ecx, edx
cmp byte [ecx], 0x5c
je 0x4e635a
nop
cmp ecx, edx
je 0x4e635e
dec ecx
cmp byte [ecx], 0x5c
jne 0x4e6350
sub ecx, edx
jmp 0x4e6361
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.004f9c20
push esi
lea eax, [ebp - 0xb0]
mov byte [ebp - 4], 6
push eax
push dword [ebp - 0x20]
lea ecx, [ebp - 0x80]
call fcn.004fa1b0
mov byte [ebp - 4], 8
mov ecx, dword [ebp - 0x9c]
cmp ecx, 0xf
jbe 0x4e63f4
mov edx, dword [ebp - 0xb0]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4e63ea
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4e64a2
push ecx
push edx
call fcn.0055efc1
add esp, 8
mov byte [ebp - 4], 9
mov ecx, dword [ebp - 0x24]
cmp ecx, 0xf
jbe 0x4e642c
mov edx, dword [ebp - 0x38]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4e6422
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4e64a2
push ecx
push edx
call fcn.0055efc1
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 0x4e6472
mov edx, dword [ebp - 0x68]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4e6468
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4e64a2
push ecx
push edx
call fcn.0055efc1
add esp, 8
mov byte [ebp - 4], 0xb
mov ecx, dword [ebp - 0xb4]
cmp ecx, 0xf
jbe 0x4e64b2
mov edx, dword [ebp - 0xc8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4e64a8
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4e64a8
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0055efc1
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 0x4e6513
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.004f7570
mov ecx, dword [ebp - 0x6c]
cmp ecx, 0xf
jbe 0x4e6547
mov edx, dword [ebp - 0x80]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4e653d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4e660a
push ecx
push edx
call fcn.0055efc1
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 0x4e6593
mov edx, dword [ebp - 0x98]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4e6589
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4e660a
push ecx
push edx
call fcn.0055efc1
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 0x4e65e4
mov edx, dword [ebp - 0xe0]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4e65da
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4e660a
push ecx
push edx
call fcn.0055efc1
add esp, 8
mov ecx, dword [ebp - 0x3c]
cmp ecx, 0xf
jbe 0x4e661a
mov edx, dword [ebp - 0x50]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4e6610
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4e6610
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0055efc1
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