Function at 0x409c40
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 0x483731
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 0x40a0ca
lea ecx, [ebp - 0x50]
call fcn.00425b10
lea ecx, [ebp - 0xe0]
mov dword [ebp - 4], 0
call fcn.00425eb0
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 0x40a05e
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x98]
call fcn.00419be0
push 0x603108
mov ecx, 0x601e38
mov byte [ebp - 4], 2
call fcn.0041c780
xor edx, edx
mov byte [ebp - 0x11], 0
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.00418660
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 0x409d81
sub ecx, edx
lea eax, [ebp - 0x1e8]
push ecx
push eax
lea ecx, [ebp - 0x68]
call fcn.0041c420
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x1e8]
xorps xmm0, xmm0
mov dword [ebp - 0x24], 0
movups xmmword [ebp - 0x34], xmm0
mov dword [ebp - 0x20], 0
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x409dc0
sub ecx, edx
lea eax, [ebp - 0x1e8]
push ecx
push eax
lea ecx, [ebp - 0x34]
call fcn.0041c420
mov byte [ebp - 4], 5
lea edx, [ebp - 0x34]
cmp dword [ebp - 0x20], 0xf
mov eax, dword [ebp - 0x24]
cmova edx, dword [ebp - 0x34]
test eax, eax
je 0x409e0e
or ecx, 0xffffffff
dec eax
cmp eax, ecx
cmovb ecx, eax
add ecx, edx
cmp byte [ecx], 0x5c
je 0x409e0a
nop
cmp ecx, edx
je 0x409e0e
dec ecx
cmp byte [ecx], 0x5c
jne 0x409e00
sub ecx, edx
jmp 0x409e11
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.0041c420
push esi
lea eax, [ebp - 0xb0]
mov byte [ebp - 4], 6
push eax
push dword [ebp - 0x38]
lea ecx, [ebp - 0x80]
call fcn.0041c8d0
mov byte [ebp - 4], 8
mov ecx, dword [ebp - 0x9c]
cmp ecx, 0xf
jbe 0x409ea4
mov edx, dword [ebp - 0xb0]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x409e9a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409f52
push ecx
push edx
call fcn.00482021
add esp, 8
mov byte [ebp - 4], 9
mov ecx, dword [ebp - 0x20]
cmp ecx, 0xf
jbe 0x409edc
mov edx, dword [ebp - 0x34]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x409ed2
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409f52
push ecx
push edx
call fcn.00482021
add esp, 8
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0xf
mov byte [ebp - 0x34], 0
mov byte [ebp - 4], 0xa
mov ecx, dword [ebp - 0x54]
cmp ecx, 0xf
jbe 0x409f22
mov edx, dword [ebp - 0x68]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x409f18
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409f52
push ecx
push edx
call fcn.00482021
add esp, 8
mov byte [ebp - 4], 0xb
mov ecx, dword [ebp - 0xb4]
cmp ecx, 0xf
jbe 0x409f62
mov edx, dword [ebp - 0xc8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x409f58
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x409f58
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00482021
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 0x409fc3
cmp dword [ebp - 0x3c], 0xf
lea eax, [ebp - 0x50]
push dword [ebp - 0x40]
cmova eax, dword [ebp - 0x50]
mov ecx, 0x601680
push eax
call fcn.0041a230
mov ecx, dword [ebp - 0x6c]
cmp ecx, 0xf
jbe 0x409ff7
mov edx, dword [ebp - 0x80]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x409fed
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a0ba
push ecx
push edx
call fcn.00482021
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 0x40a043
mov edx, dword [ebp - 0x98]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40a039
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a0ba
push ecx
push edx
call fcn.00482021
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 0x40a094
mov edx, dword [ebp - 0xe0]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40a08a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a0ba
push ecx
push edx
call fcn.00482021
add esp, 8
mov ecx, dword [ebp - 0x3c]
cmp ecx, 0xf
jbe 0x40a0ca
mov edx, dword [ebp - 0x50]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40a0c0
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40a0c0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00482021
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