Function at 0x100caa60
Capabilities:
Check if file exists
Copy file
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101f9020
mov eax, dword fs:[0]
push eax
sub esp, 0xb8
mov eax, dword [0x1025e344]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov eax, edi
mov esi, dword [ebp + 0xc]
cmp dword [edi + 0x14], 8
jb 0x100caa9e
mov eax, dword [edi]
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push eax
call ebx
test eax, eax
je 0x100cb177
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x100caab9
mov eax, dword [esi]
push eax
call ebx
test eax, eax
jne 0x100caadf
cmp dword [esi + 0x14], 8
jb 0x100caac8
mov esi, dword [esi]
cmp dword [edi + 0x14], 8
jb 0x100caad0
mov edi, dword [edi]
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
jmp 0x100cb177
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0xf
mov byte [ebp - 0x58], 0
cmp dword [edi + 0x14], 8
mov eax, edi
mov dword [ebp - 4], 0
jb 0x100cab02
mov eax, dword [edi]
lea ecx, [ebp - 0x58]
push ecx
push eax
call fcn.100be360
add esp, 8
test eax, eax
je 0x100caba5
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
cmp dword [esi + 0x14], 8
mov eax, esi
mov byte [ebp - 4], 1
jb 0x100cab37
mov eax, dword [esi]
lea ecx, [ebp - 0x40]
push ecx
push eax
call fcn.100be360
add esp, 8
lea ecx, [ebp - 0x40]
test eax, eax
je 0x100caba0
cmp dword [ebp - 0x2c], 0x10
lea eax, [ebp - 0x58]
push dword [ebp - 0x30]
cmovae ecx, dword [ebp - 0x40]
cmp dword [ebp - 0x44], 0x10
push ecx
cmovae eax, dword [ebp - 0x58]
push dword [ebp - 0x48]
push eax
call fcn.10054230
add esp, 0x10
test eax, eax
jne 0x100cabb2
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x100cab7c
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [esi + 0x14], 8
jb 0x100cab8b
mov esi, dword [esi]
cmp dword [edi + 0x14], 8
jb 0x100cab93
mov edi, dword [edi]
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
lea ecx, [ebp - 0x40]
call fcn.10007910
lea ecx, [ebp - 0x58]
call fcn.10007910
jmp 0x100cb177
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 0xf
mov byte [ebp - 0x70], 0
push 0x24
push str.0B366EA2_A363_4D44_965A_A63918D5B6A9
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
call fcn.10014280
lea eax, [ebp - 0x70]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.100d1b00
mov edx, dword [ebp - 0x14]
add esp, 0xc
test eax, eax
mov byte [ebp - 4], 2
sete bl
cmp edx, 0x10
jb 0x100cac3e
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x100cac34
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100cb195
push edx
push ecx
call fcn.100cff81
add esp, 8
test bl, bl
jne 0x100cae43
lea ecx, [ebp - 0xac]
call fcn.100bcb50
lea eax, [ebp - 0x70]
mov byte [ebp - 4], 4
push eax
lea ecx, [ebp - 0xac]
call fcn.100bd980
test al, al
je 0x100cae38
call fcn.100049d0
mov ecx, eax
test ecx, ecx
je 0x100cb19a
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x8c], eax
push 0x101fe8a0
lea ecx, [ebp - 0x8c]
mov byte [ebp - 4], 5
call fcn.10004060
test al, al
jne 0x100cacb3
push 0
push 0x101fe8a0
lea ecx, [ebp - 0x8c]
call fcn.10006ab0
push 7
push str.version
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 6
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
call fcn.10014280
push 0xfde9
lea eax, [ebp - 0x8c]
mov byte [ebp - 4], 7
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x94]
push eax
lea ecx, [ebp - 0xac]
call fcn.100bd7b0
mov edx, dword [ebp - 0x14]
mov byte [ebp - 4], 9
cmp edx, 0x10
jb 0x100cad36
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x100cad2c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100cb1a4
push edx
push ecx
call fcn.100cff81
add esp, 8
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
mov edx, dword [ebp - 0x8c]
or ebx, 0xffffffff
mov byte [ebp - 4], 0xa
add edx, 0xfffffff0
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x100cad6c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x74], 0xf
mov byte [ebp - 0x88], 0
push 0x24
push str.0B366EA2_A363_4D44_965A_A63918D5B6A9
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0xb
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
call fcn.10014280
lea eax, [ebp - 0x88]
mov byte [ebp - 4], 0xc
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.100d1b00
mov edx, dword [ebp - 0x14]
add esp, 0xc
test eax, eax
mov byte [ebp - 4], 0xb
sete al
mov byte [ebp - 0x89], al
cmp edx, 0x10
jb 0x100cae0a
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x100cadfa
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100cb1a9
push edx
push ecx
call fcn.100cff81
mov al, byte [ebp - 0x89]
add esp, 8
test al, al
je 0x100cae50
lea ecx, [ebp - 0x88]
call fcn.10007910
mov edx, dword [ebp - 0x94]
add edx, 0xfffffff0
mov byte [ebp - 4], 4
lock xadd dword [edx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x100cae38
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0xac]
call fcn.100b92a0
lea ecx, [ebp - 0x70]
call fcn.10007910
jmp 0x100cab9d
lea ecx, [ebp - 0xc4]
call fcn.100bcb50
lea eax, [ebp - 0x88]
mov byte [ebp - 4], 0xd
push eax
lea ecx, [ebp - 0xc4]
call fcn.100bd980
test al, al
jne 0x100cae82
lea ecx, [ebp - 0xc4]
call fcn.100b92a0
jmp 0x100cae0e
call fcn.100049d0
mov ecx, eax
test ecx, ecx
je 0x100cb1ae
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x8c], eax
push 0x101fe8a0
lea ecx, [ebp - 0x8c]
mov byte [ebp - 4], 0xe
call fcn.10004060
test al, al
jne 0x100caec9
push 0
push 0x101fe8a0
lea ecx, [ebp - 0x8c]
call fcn.10006ab0
push 7
push str.version
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0xf
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
call fcn.10014280
push 0xfde9
lea eax, [ebp - 0x8c]
mov byte [ebp - 4], 0x10
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x90]
push eax
lea ecx, [ebp - 0xac]
call fcn.100bd7b0
mov edx, dword [ebp - 0x14]
mov byte [ebp - 4], 0xf
cmp edx, 0x10
jb 0x100caf4c
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x100caf42
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100cb1b8
push edx
push ecx
call fcn.100cff81
add esp, 8
mov edx, dword [ebp - 0x8c]
mov eax, ebx
mov dword [ebp - 0x18], 0
add edx, 0xfffffff0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
mov byte [ebp - 4], 0xd
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x100caf7f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x90]
test eax, eax
je 0x100cb1bd
mov ecx, dword [ebp - 0x94]
mov edx, eax
nop word [eax + eax]
mov ax, word [ecx]
cmp ax, word [edx]
mov eax, dword [ebp - 0x90]
jne 0x100cafdf
cmp word [ecx], 0
je 0x100cafdb
mov ax, word [ecx + 2]
cmp ax, word [edx + 2]
mov word [ebp - 0x8a], ax
mov eax, dword [ebp - 0x90]
jne 0x100cafdf
add ecx, 4
add edx, 4
cmp word [ebp - 0x8a], 0
jne 0x100cafa0
xor ecx, ecx
jmp 0x100cafe4
sbb ecx, ecx
or ecx, 1
test ecx, ecx
jg 0x100cafee
cmp dword [eax - 0xc], 0
jne 0x100cb01f
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x100caff8
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [esi + 0x14], 8
jb 0x100cb007
mov esi, dword [esi]
cmp dword [edi + 0x14], 8
jb 0x100cb00f
mov edi, dword [edi]
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov eax, dword [ebp - 0x90]
lea edx, [eax - 0x10]
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x100cb036
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0xc4]
call fcn.100b92a0
mov edx, dword [ebp - 0x74]
mov byte [ebp - 4], 0xa
cmp edx, 0x10
jb 0x100cb07c
mov ecx, dword [ebp - 0x88]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x100cb072
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100cb1c7
push edx
push ecx
call fcn.100cff81
add esp, 8
mov edx, dword [ebp - 0x94]
mov dword [ebp - 0x78], 0
add edx, 0xfffffff0
mov dword [ebp - 0x74], 0xf
mov byte [ebp - 0x88], 0
mov byte [ebp - 4], 4
lock xadd dword [edx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x100cb0b0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0xac]
call fcn.100b92a0
mov edx, dword [ebp - 0x5c]
cmp edx, 0x10
jb 0x100cb0ef
mov ecx, dword [ebp - 0x70]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x100cb0e5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100cb1cc
push edx
push ecx
call fcn.100cff81
add esp, 8
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 0xf
mov byte [ebp - 0x70], 0
cmp edx, 0x10
jb 0x100cb135
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x100cb12b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100cb1d1
push edx
push ecx
call fcn.100cff81
add esp, 8
mov edx, dword [ebp - 0x44]
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
cmp edx, 0x10
jb 0x100cb177
mov ecx, dword [ebp - 0x58]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x100cb16d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100cb1d6
push edx
push ecx
call fcn.100cff81
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100d02f2
mov esp, ebp
pop ebp
ret 8
call fcn.101a3dde
push 0x80004005
call fcn.10004040
call fcn.101a3dde
call fcn.101a3dde
push 0x80004005
call fcn.10004040
call fcn.101a3dde
push 0x80004005
call fcn.10004040
call fcn.101a3dde
call fcn.101a3dde
call fcn.101a3dde
call fcn.101a3dde
int3