Function at 0x10019a90
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 0x10019f6b
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 0x10019b1d
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 0x10019f75
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 0x10019b7f
movzx eax, cx
mov ecx, esi
push eax
call fcn.10001f10
jmp 0x10019b8d
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 0x10019be0
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
call fcn.10001ca0
mov ecx, eax
test ecx, ecx
je 0x10019f7f
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 0x10019e07
call fcn.10001ca0
mov ecx, eax
test ecx, ecx
je 0x10019f89
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 0x10019d7e
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x10019c65
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 0x10019ca5
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 0x10019f93
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 0x10019ce3
mov eax, str..exe
movzx eax, ax
push eax
call fcn.10001f10
jmp 0x10019cef
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 0x10019d4d
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 0x10019d62
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 0x10019d7e
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.100190b0
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 0x10019e02
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp + 0x18]
jmp 0x10019e67
call fcn.10054ac0
test eax, eax
je 0x10019e65
call fcn.10054ac0
mov ecx, eax
mov edx, dword [eax]
mov eax, dword [edx + 4]
call eax
test al, al
je 0x10019e65
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 0x10019e82
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 0x10019ea0
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 0x10019ebe
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 0x10019edc
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 0x10019efa
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 0x10019f18
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 0x10019f36
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 0x10019f55
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