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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100aa393
mov eax, dword fs:[0]
push eax
sub esp, 0xc0
push ebx
push esi
push edi
mov eax, dword [0x100db3fc]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x34], edi
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 3
push eax
call fcn.10015650
add esp, 4
mov byte [ebp - 4], 4
call fcn.100029d0
mov ecx, eax
test ecx, ecx
je 0x1002018b
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
push 5
push str.Basic
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 5
call fcn.1000c220
push dword [ebp - 0x14]
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
call ebx
test eax, eax
jne 0x1001fd3d
push dword [ebp - 0x14]
push eax
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x10]
call fcn.10002300
push 1
push 0x100afe34
lea ecx, [ebp - 0x10]
call fcn.1000c220
push ecx
mov esi, esp
mov dword [ebp - 0x20], esp
mov dword [ebp - 0x18], esi
call fcn.100029d0
mov ecx, eax
test ecx, ecx
je 0x10020195
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi], eax
mov eax, str..exe
mov byte [ebp - 4], 6
shr eax, 0x10
mov ecx, str..exe
mov dword [ebp - 0x30], eax
test eax, eax
jne 0x1001fd9f
movzx eax, cx
mov ecx, esi
push eax
call fcn.10003390
jmp 0x1001fdad
push 4
push str..exe
mov ecx, esi
call fcn.10002680
push ecx
mov esi, esp
mov byte [ebp - 4], 7
mov dword [ebp - 0x18], esi
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
push eax
call fcn.10002400
add eax, 0x10
add esp, 4
mov dword [esi], eax
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 5
push eax
call fcn.100148a0
add esp, 0xc
mov eax, dword [ebp - 0x2c]
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 8
push dword [eax - 0xc]
push eax
call fcn.1000c220
push dword [ebp - 0x10]
call ebx
test eax, eax
je 0x1001fe00
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
call fcn.100029d0
mov ecx, eax
test ecx, ecx
je 0x1002019f
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x18], eax
push dword [edi + 4]
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 9
push dword [edi]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp + 8]
push eax
call fcn.10020950
mov edi, dword [ebp - 0x18]
add esp, 0x14
or ebx, 0xffffffff
test eax, eax
je 0x10020027
call fcn.100029d0
mov ecx, eax
test ecx, ecx
je 0x100201a9
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x1c], esi
mov eax, dword [ebp + 0x14]
mov byte [ebp - 4], 0xa
cmp dword [eax - 0xc], 0
je 0x1001ff9e
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1001fe85
push dword [ebp + 0x14]
push eax
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
push 0x100afe34
lea eax, [ebp + 0x14]
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.1001f190
add esp, 0xc
push eax
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0xb
call fcn.10002300
mov edx, dword [ebp - 0x20]
mov eax, ebx
mov byte [ebp - 4], 0xa
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1001fec5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push ecx
mov esi, esp
mov dword [ebp - 0x28], esp
mov dword [ebp - 0x24], esi
call fcn.100029d0
mov ecx, eax
test ecx, ecx
je 0x100201b3
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi], eax
cmp dword [ebp - 0x30], 0
mov ecx, esi
mov byte [ebp - 4], 0xc
jne 0x1001ff03
mov eax, str..exe
movzx eax, ax
push eax
call fcn.10003390
jmp 0x1001ff0f
push 4
push str..exe
call fcn.10002680
push ecx
mov esi, esp
mov byte [ebp - 4], 0xd
mov dword [ebp - 0x24], esi
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
push eax
call fcn.10002400
add eax, 0x10
add esp, 4
mov dword [esi], eax
lea eax, [ebp - 0x20]
mov byte [ebp - 4], 0xa
push eax
call fcn.100148a0
add esp, 0xc
mov eax, dword [eax]
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0xe
push dword [eax - 0xc]
push eax
call fcn.1000c220
mov edx, dword [ebp - 0x20]
mov eax, ebx
mov byte [ebp - 4], 0xa
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1001ff6d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x1c]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1001ff82
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push esi
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x1001ff9e
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x10]
call fcn.10002300
push dword [ebp + 0x18]
push ecx
mov ebx, esp
mov dword [ebp + 0x18], esp
mov dword [ebp - 0x24], ebx
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
push eax
call fcn.10002400
add eax, 0x10
mov dword [ebx], eax
mov ebx, esp
mov dword [ebp - 0x24], esp
mov dword [ebp - 0x28], ebx
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
mov byte [ebp - 4], 0xf
push eax
call fcn.10002400
add eax, 0x10
mov dword [ebx], eax
mov ebx, esp
mov byte [ebp - 4], 0x10
mov dword [ebp - 0x28], ebx
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
push eax
call fcn.10002400
mov ecx, dword [ebp - 0x34]
add esp, 4
add eax, 0x10
mov dword [ebx], eax
mov byte [ebp - 4], 0xa
call fcn.1001f2d0
or ebx, 0xffffffff
mov dword [ebp + 0x18], eax
mov byte [ebp - 4], 9
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x10020022
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp + 0x18]
jmp 0x10020087
call fcn.1005d530
test eax, eax
je 0x10020085
call fcn.1005d530
mov ecx, eax
mov edx, dword [eax]
mov eax, dword [edx + 4]
call eax
test al, al
je 0x10020085
call fcn.1005d530
lea ecx, [ebp - 0xcc]
mov ebx, eax
call fcn.100064c0
mov esi, eax
push str.CExecuteURLExe::downloadexe_failed._res
push esi
mov byte [ebp - 4], 0x11
call fcn.10007110
push edi
push esi
call fcn.10007110
mov eax, dword [ebx]
add esp, 0x10
mov ecx, ebx
push esi
call dword [eax + 0x14]
lea ecx, [ebp - 0xcc]
call fcn.100071d0
or ebx, 0xffffffff
xor esi, esi
mov byte [ebp - 4], 8
add edi, 0xfffffff0
mov eax, ebx
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x100200a2
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x2c]
mov eax, ebx
mov byte [ebp - 4], 5
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x100200c0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x10]
mov eax, ebx
mov byte [ebp - 4], 4
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x100200de
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x14]
mov eax, ebx
mov byte [ebp - 4], 3
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x100200fc
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp + 8]
mov eax, ebx
mov byte [ebp - 4], 2
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1002011a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp + 0xc]
mov eax, ebx
mov byte [ebp - 4], 1
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10020138
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp + 0x10]
mov eax, ebx
mov byte [ebp - 4], 0
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10020156
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp + 0x14]
mov dword [ebp - 4], 0xffffffff
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x10020175
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
push 0x80004005
call fcn.10001670
push 0x80004005
call fcn.10001670
push 0x80004005
call fcn.10001670
push 0x80004005
call fcn.10001670
push 0x80004005
call fcn.10001670
int3