Function at 0x413430
Capabilities:
Copy file
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5543c2
mov eax, dword fs:[0]
push eax
sub esp, 0xf8
mov eax, dword [0x5ca1c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x9c], edi
cmp dword [edi + 0x68], 0xf
lea esi, [edi + 0x54]
mov ecx, esi
jbe 0x413472
mov ecx, dword [esi]
mov eax, dword [esi + 0x10]
mov dword [ebp - 0xa4], ecx
lea ecx, [ebp - 0xa4]
push 0x593bac
mov dword [ebp - 0xa0], eax
call fcn.00417910
xorps xmm0, xmm0
test al, al
je 0x413763
mov byte [edi + 0x20], 1
mov eax, dword [esi + 0x10]
mov dword [ebp - 0xdc], 0
mov dword [ebp - 0xd8], 0
movups xmmword [ebp - 0xec], xmm0
cmp eax, 3
jb 0x4139f5
add eax, 0xfffffffd
or ecx, 0xffffffff
cmp eax, 0xffffffff
cmovb ecx, eax
cmp dword [esi + 0x14], 0xf
jbe 0x4134db
mov esi, dword [esi]
push ecx
lea eax, [esi + 3]
push eax
lea ecx, [ebp - 0xec]
call fcn.0040f680
lea eax, [edi + 0x24]
mov dword [ebp - 4], 0
cmp dword [eax + 0x14], 0xf
mov ecx, dword [eax + 0x10]
jbe 0x413500
mov eax, dword [eax]
push ecx
push eax
push 0
lea ecx, [ebp - 0xec]
call fcn.0041ade0
xorps xmm0, xmm0
mov dword [ebp - 0x18], 0
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x14], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x28], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x18], xmm0
mov byte [ebp - 4], 2
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
mov ecx, dword [ebp - 0xd8]
cmp ecx, 0xf
jbe 0x413584
mov edx, dword [ebp - 0xec]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x41357a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4139fa
push ecx
push edx
call fcn.00524a57
add esp, 8
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
xor esi, esi
mov dword [ebp - 0xdc], 0
mov dword [ebp - 0xd8], 0xf
mov byte [ebp - 0xec], 0
mov byte [ebp - 0x98], 0
nop
cmp dword [ebp - 0x14], 0xf
lea eax, [ebp - 0x28]
push dword [ebp - 0x98]
cmova eax, dword [ebp - 0x28]
mov dword [ebp - 0xa0], eax
lea eax, [ebp - 0xa0]
push eax
lea eax, [ebp - 0xbc]
push eax
call fcn.0050d1a0
add esp, 0xc
lea eax, [ebp - 0xbc]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x90]
call fcn.004a1590
lea ecx, [ebp - 0xbc]
mov byte [ebp - 4], 5
call fcn.00417590
lea ecx, [ebp - 0x90]
call fcn.004a1660
lea ecx, [ebp - 0x70]
mov byte [ebp - 0x91], al
mov byte [ebp - 4], 2
call fcn.00417590
cmp byte [ebp - 0x91], 0
je 0x413648
push 0x14
call edi
cmp dword [ebp - 0x14], 0xf
lea eax, [ebp - 0x28]
cmova eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
inc esi
cmp esi, 5
jb 0x4135b0
mov ecx, dword [ebp - 0x9c]
mov eax, dword [ecx + 0x64]
lea edx, [ecx + 0x54]
add ecx, 0x24
mov dword [ebp - 0x98], eax
mov eax, closesocket
mov esi, dword [ecx + 0x10]
sub eax, esi
cmp eax, dword [ebp - 0x98]
jb 0x4139ff
cmp dword [ecx + 0x14], 0xf
mov eax, ecx
jbe 0x41367d
mov eax, dword [ecx]
cmp dword [edx + 0x14], 0xf
jbe 0x413685
mov edx, dword [edx]
push dword [ebp - 0x98]
push edx
push esi
push eax
push ecx
push dword [ebp - 0x9c]
lea ecx, [ebp - 0x58]
call fcn.0041ac50
xor esi, esi
nop
cmp dword [ebp - 0x14], 0xf
lea ecx, [ebp - 0x28]
push 0
cmova ecx, dword [ebp - 0x28]
lea eax, [ebp - 0x58]
cmp dword [ebp - 0x44], 0xf
push ecx
cmova eax, dword [ebp - 0x58]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x4136ce
push 0x14
call edi
inc esi
cmp esi, 5
jb 0x4136a0
cmp dword [ebp - 0x14], 0xf
lea ecx, [ebp - 0x28]
cmova ecx, dword [ebp - 0x28]
call fcn.004f8390
test al, al
jne 0x413a04
mov ecx, dword [ebp - 0x44]
cmp ecx, 0xf
jbe 0x41371a
mov edx, dword [ebp - 0x58]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x413710
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x413a10
push ecx
push edx
call fcn.00524a57
add esp, 8
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0xf
mov byte [ebp - 0x58], 0
cmp ecx, 0xf
jbe 0x4139da
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4139d0
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x413a10
jmp 0x4139d0
push 3
push 0x593bac
lea ecx, [ebp - 0xbc]
mov byte [edi + 0x20], 0
movups xmmword [ebp - 0xbc], xmm0
mov dword [ebp - 0xac], 0
mov dword [ebp - 0xa8], 0
call fcn.0040f680
add edi, 0x24
mov dword [ebp - 4], 6
cmp dword [edi + 0x14], 0xf
mov eax, dword [edi + 0x10]
jbe 0x4137a9
mov edi, dword [edi]
push eax
push edi
push 0
lea ecx, [ebp - 0xbc]
call fcn.0041ade0
xorps xmm0, xmm0
mov dword [ebp - 0xc4], 0
movups xmmword [ebp - 0xd4], xmm0
mov dword [ebp - 0xc0], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0xd4], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0xc4], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
mov byte [ebp - 4], 7
cmp dword [esi + 0x14], 0xf
mov eax, dword [esi + 0x10]
jbe 0x41380d
mov esi, dword [esi]
push eax
push esi
lea ecx, [ebp - 0xd4]
call fcn.004177a0
xorps xmm0, xmm0
mov dword [ebp - 0x30], 0
movups xmmword [ebp - 0x40], xmm0
mov dword [ebp - 0x2c], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x40], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x30], xmm0
mov byte [ebp - 4], 9
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
mov ecx, dword [ebp - 0xc0]
cmp ecx, 0xf
jbe 0x41388f
mov edx, dword [ebp - 0xd4]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x413885
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x413a15
push ecx
push edx
call fcn.00524a57
add esp, 8
mov dword [ebp - 0xc4], 0
mov dword [ebp - 0xc0], 0xf
mov byte [ebp - 0xd4], 0
mov byte [ebp - 4], 0xa
mov ecx, dword [ebp - 0xa8]
cmp ecx, 0xf
jbe 0x4138e8
mov edx, dword [ebp - 0xbc]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4138de
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x413a15
push ecx
push edx
call fcn.00524a57
add esp, 8
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
xor esi, esi
mov dword [ebp - 0xac], 0
mov dword [ebp - 0xa8], 0xf
mov byte [ebp - 0xbc], 0
mov byte [ebp - 0x9c], 0
cmp dword [ebp - 0x2c], 0xf
lea eax, [ebp - 0x40]
push dword [ebp - 0x9c]
cmova eax, dword [ebp - 0x40]
mov dword [ebp - 0xa0], eax
lea eax, [ebp - 0xa0]
push eax
lea eax, [ebp - 0x104]
push eax
call fcn.0050d1a0
add esp, 0xc
lea eax, [ebp - 0x104]
mov byte [ebp - 4], 0xb
push eax
lea ecx, [ebp - 0x90]
call fcn.004a1590
lea ecx, [ebp - 0x104]
mov byte [ebp - 4], 0xd
call fcn.00417590
lea ecx, [ebp - 0x90]
call fcn.004a1660
lea ecx, [ebp - 0x70]
mov byte [ebp - 0x91], al
mov byte [ebp - 4], 0xa
call fcn.00417590
cmp byte [ebp - 0x91], 0
je 0x4139aa
cmp dword [ebp - 0x2c], 0xf
lea eax, [ebp - 0x40]
cmova eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0x14
call edi
inc esi
cmp esi, 5
jb 0x413912
mov ecx, dword [ebp - 0x2c]
cmp ecx, 0xf
jbe 0x4139da
mov edx, dword [ebp - 0x40]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4139d0
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x413a1a
push ecx
push edx
call fcn.00524a57
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0052450f
mov esp, ebp
pop ebp
ret
call fcn.00418030
call fcn.0053ce3a
call fcn.0040ace0
call fcn.0040fc10
push 0
call fcn.0053c1fe
call fcn.0053ce3a
call fcn.0053ce3a
call fcn.0053ce3a
int3