Function at 0x407da0
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 0x471716
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 0x4081d9
lea ecx, [ebp - 0x74]
call fcn.0041c690
lea ecx, [ebp - 0xbc]
mov dword [ebp - 4], 0
call fcn.0041ca30
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 0x40816d
lea eax, [ebp - 0x74]
push eax
lea ecx, [ebp - 0xa4]
call fcn.004135f0
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 0x407e77
sub ecx, edx
lea eax, [ebp - 0x1c8]
push ecx
push eax
lea ecx, [ebp - 0x8c]
call fcn.00414d10
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 0x407eb5
sub ecx, edx
lea eax, [ebp - 0x1c8]
push ecx
push eax
lea ecx, [ebp - 0x40]
call fcn.00414d10
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 0x407f02
or ecx, 0xffffffff
dec eax
cmp eax, ecx
cmovb ecx, eax
add ecx, edx
cmp byte [ecx], 0x5c
je 0x407efe
cmp ecx, edx
je 0x407f02
dec ecx
cmp byte [ecx], 0x5c
jne 0x407ef4
sub ecx, edx
jmp 0x407f05
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.00414d10
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 0x407f7b
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 0x407f88
push dword [ebp - 0x5c]
lea ecx, [ebp - 0x28]
push 9
call fcn.004150b0
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 0x407ff7
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x407fed
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40807c
push ecx
push edx
call fcn.004701a2
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 0x40803d
mov edx, dword [ebp - 0x40]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x408033
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40807c
push ecx
push edx
call fcn.004701a2
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 0x40808c
mov edx, dword [ebp - 0x8c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x408082
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x408082
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.004701a2
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 0x4080d2
cmp dword [ebp - 0x60], 0xf
lea eax, [ebp - 0x74]
push dword [ebp - 0x64]
cmova eax, dword [ebp - 0x74]
mov ecx, 0x5ca1b4
push eax
call fcn.00413ca0
mov ecx, dword [ebp - 0x44]
cmp ecx, 0xf
jbe 0x408106
mov edx, dword [ebp - 0x58]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4080fc
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4081c9
push ecx
push edx
call fcn.004701a2
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 0x408152
mov edx, dword [ebp - 0xa4]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x408148
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4081c9
push ecx
push edx
call fcn.004701a2
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 0x4081a3
mov edx, dword [ebp - 0xbc]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x408199
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4081c9
push ecx
push edx
call fcn.004701a2
add esp, 8
mov ecx, dword [ebp - 0x60]
cmp ecx, 0xf
jbe 0x4081d9
mov edx, dword [ebp - 0x74]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4081cf
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4081cf
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.004701a2
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