Function at 0x407e40
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 0x47afc6
push eax
mov dword fs:[0], esp
push ebx
sub esp, 0x1bc
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 - 0x1c8]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x408279
lea ecx, [ebp - 0x74]
call fcn.0041cce0
lea ecx, [ebp - 0xbc]
mov dword [ebp - 4], 0
call fcn.0041d080
mov byte [ebp - 4], 1
lea eax, [ebp - 0x74]
cmp dword [ebp - 0x60], 0xf
cmova eax, dword [ebp - 0x74]
push eax
lea eax, [ebp - 0x1c8]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
je 0x40820d
lea eax, [ebp - 0x74]
push eax
lea ecx, [ebp - 0xa4]
call fcn.00413740
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x1c8]
xorps xmm0, xmm0
mov dword [ebp - 0x7c], 0
movups xmmword [ebp - 0x8c], xmm0
mov dword [ebp - 0x78], 0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x407f17
sub ecx, edx
lea eax, [ebp - 0x1c8]
push ecx
push eax
lea ecx, [ebp - 0x8c]
call fcn.00414e60
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x1c8]
xorps xmm0, xmm0
mov dword [ebp - 0x30], 0
movups xmmword [ebp - 0x40], xmm0
mov dword [ebp - 0x2c], 0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x407f55
sub ecx, edx
lea eax, [ebp - 0x1c8]
push ecx
push eax
lea ecx, [ebp - 0x40]
call fcn.00414e60
mov byte [ebp - 4], 4
lea edx, [ebp - 0x40]
cmp dword [ebp - 0x2c], 0xf
mov eax, dword [ebp - 0x30]
cmova edx, dword [ebp - 0x40]
test eax, eax
je 0x407fa2
or ecx, 0xffffffff
dec eax
cmp eax, ecx
cmovb ecx, eax
add ecx, edx
cmp byte [ecx], 0x5c
je 0x407f9e
cmp ecx, edx
je 0x407fa2
dec ecx
cmp byte [ecx], 0x5c
jne 0x407f94
sub ecx, edx
jmp 0x407fa5
or ecx, 0xffffffff
inc ecx
mov dword [ebp - 0x18], 0
cmp dword [ebp - 0x7c], ecx
lea eax, [ebp - 0x8c]
xorps xmm0, xmm0
mov dword [ebp - 0x14], 0
cmovb ecx, dword [ebp - 0x7c]
cmp dword [ebp - 0x78], 0xf
push ecx
cmova eax, dword [ebp - 0x8c]
lea ecx, [ebp - 0x28]
push eax
movups xmmword [ebp - 0x28], xmm0
call fcn.00414e60
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x14]
mov eax, edx
mov ecx, dword [ebp - 0x18]
sub eax, ecx
push 9
push str.Yolov.exe
cmp eax, 9
jb 0x40801b
cmp edx, 0xf
lea esi, [ebp - 0x28]
lea eax, [ecx + 9]
cmova esi, dword [ebp - 0x28]
add esi, ecx
mov dword [ebp - 0x18], eax
push esi
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
mov byte [esi + 9], 0
lea eax, [ebp - 0x28]
jmp 0x408028
push dword [ebp - 0x5c]
lea ecx, [ebp - 0x28]
push 9
call fcn.00415200
xorps xmm0, xmm0
mov dword [ebp - 0x48], 0
movups xmmword [ebp - 0x58], xmm0
mov dword [ebp - 0x44], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x58], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x48], xmm0
mov byte [ebp - 4], 7
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
mov ecx, dword [ebp - 0x14]
cmp ecx, 0xf
jbe 0x408097
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40808d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40811c
push ecx
push edx
call fcn.00479a51
add esp, 8
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
mov byte [ebp - 4], 8
mov ecx, dword [ebp - 0x2c]
cmp ecx, 0xf
jbe 0x4080dd
mov edx, dword [ebp - 0x40]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4080d3
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40811c
push ecx
push edx
call fcn.00479a51
add esp, 8
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
mov byte [ebp - 4], 9
mov ecx, dword [ebp - 0x78]
cmp ecx, 0xf
jbe 0x40812c
mov edx, dword [ebp - 0x8c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x408122
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x408122
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00479a51
add esp, 8
cmp dword [ebp - 0x44], 0xf
lea ecx, [ebp - 0x58]
push 0
cmova ecx, dword [ebp - 0x58]
lea eax, [ebp - 0xa4]
cmp dword [ebp - 0x90], 0xf
push ecx
cmova eax, dword [ebp - 0xa4]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x408172
cmp dword [ebp - 0x60], 0xf
lea eax, [ebp - 0x74]
push dword [ebp - 0x64]
cmova eax, dword [ebp - 0x74]
mov ecx, 0x6698d8
push eax
call fcn.00413df0
mov ecx, dword [ebp - 0x44]
cmp ecx, 0xf
jbe 0x4081a6
mov edx, dword [ebp - 0x58]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40819c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x408269
push ecx
push edx
call fcn.00479a51
add esp, 8
mov ecx, dword [ebp - 0x90]
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0xf
mov byte [ebp - 0x58], 0
cmp ecx, 0xf
jbe 0x4081f2
mov edx, dword [ebp - 0xa4]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4081e8
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x408269
push ecx
push edx
call fcn.00479a51
add esp, 8
mov dword [ebp - 0x94], 0
mov dword [ebp - 0x90], 0xf
mov byte [ebp - 0xa4], 0
mov ecx, dword [ebp - 0xa8]
cmp ecx, 0xf
jbe 0x408243
mov edx, dword [ebp - 0xbc]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x408239
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x408269
push ecx
push edx
call fcn.00479a51
add esp, 8
mov ecx, dword [ebp - 0x60]
cmp ecx, 0xf
jbe 0x408279
mov edx, dword [ebp - 0x74]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40826f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40826f
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00479a51
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