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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10111673
mov eax, dword fs:[0]
push eax
sub esp, 0xc0
push ebx
push esi
push edi
mov eax, dword [0x1015e404]
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.10013670
add esp, 4
mov byte [ebp - 4], 4
call fcn.10002000
mov ecx, eax
test ecx, ecx
je 0x1001f0db
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.10008850
push dword [ebp - 0x14]
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
call ebx
test eax, eax
jne 0x1001ec8d
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.10001900
push 1
push 0x1011affc
lea ecx, [ebp - 0x10]
call fcn.10008850
push ecx
mov esi, esp
mov dword [ebp - 0x20], esp
mov dword [ebp - 0x18], esi
call fcn.10002000
mov ecx, eax
test ecx, ecx
je 0x1001f0e5
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 0x1001ecef
movzx eax, cx
mov ecx, esi
push eax
call fcn.10002270
jmp 0x1001ecfd
push 4
push str..exe
mov ecx, esi
call fcn.10001c80
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.10001a00
add eax, 0x10
add esp, 4
mov dword [esi], eax
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 5
push eax
call fcn.100128c0
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.10008850
push dword [ebp - 0x10]
call ebx
test eax, eax
je 0x1001ed50
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
call fcn.10002000
mov ecx, eax
test ecx, ecx
je 0x1001f0ef
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.1001f390
mov edi, dword [ebp - 0x18]
add esp, 0x14
or ebx, 0xffffffff
test eax, eax
je 0x1001ef77
call fcn.10002000
mov ecx, eax
test ecx, ecx
je 0x1001f0f9
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 0x1001eeee
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1001edd5
push dword [ebp + 0x14]
push eax
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
push 0x1011affc
lea eax, [ebp + 0x14]
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.1001dbd0
add esp, 0xc
push eax
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0xb
call fcn.10001900
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 0x1001ee15
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.10002000
mov ecx, eax
test ecx, ecx
je 0x1001f103
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 0x1001ee53
mov eax, str..exe
movzx eax, ax
push eax
call fcn.10002270
jmp 0x1001ee5f
push 4
push str..exe
call fcn.10001c80
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.10001a00
add eax, 0x10
add esp, 4
mov dword [esi], eax
lea eax, [ebp - 0x20]
mov byte [ebp - 4], 0xa
push eax
call fcn.100128c0
add esp, 0xc
mov eax, dword [eax]
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0xe
push dword [eax - 0xc]
push eax
call fcn.10008850
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 0x1001eebd
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 0x1001eed2
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 0x1001eeee
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x10]
call fcn.10001900
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.10001a00
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.10001a00
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.10001a00
mov ecx, dword [ebp - 0x34]
add esp, 4
add eax, 0x10
mov dword [ebx], eax
mov byte [ebp - 4], 0xa
call fcn.1001deb0
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 0x1001ef72
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp + 0x18]
jmp 0x1001efd7
call fcn.1005b270
test eax, eax
je 0x1001efd5
call fcn.1005b270
mov ecx, eax
mov edx, dword [eax]
mov eax, dword [edx + 4]
call eax
test al, al
je 0x1001efd5
call fcn.1005b270
lea ecx, [ebp - 0xcc]
mov ebx, eax
call fcn.10003680
mov esi, eax
push str.CExecuteURLExe::downloadexe_failed._res
push esi
mov byte [ebp - 4], 0x11
call fcn.10004280
push edi
push esi
call fcn.10004280
mov eax, dword [ebx]
add esp, 0x10
mov ecx, ebx
push esi
call dword [eax + 0x14]
lea ecx, [ebp - 0xcc]
call fcn.10004340
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 0x1001eff2
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 0x1001f010
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 0x1001f02e
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 0x1001f04c
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 0x1001f06a
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 0x1001f088
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 0x1001f0a6
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 0x1001f0c5
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.100017c0
push 0x80004005
call fcn.100017c0
push 0x80004005
call fcn.100017c0
push 0x80004005
call fcn.100017c0
push 0x80004005
call fcn.100017c0
int3