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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1009df43
mov eax, dword fs:[0]
push eax
sub esp, 0x2e4
mov eax, dword [0x100cd4bc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x258], 0
lea eax, [ebp - 0x234]
mov dword [ebp - 4], 2
push eax
call fcn.100117e0
mov eax, dword [ebp - 0x234]
mov edi, str.Basic_
sub edi, eax
mov byte [ebp - 4], 3
push 6
push str.Basic_
mov esi, dword [eax - 0xc]
sar edi, 1
mov dword [ebp - 0x23c], esi
call fcn.10073a2b
mov ecx, SysReAllocString
mov dword [ebp - 0x238], eax
sub ecx, eax
add esp, 0xc
cmp ecx, esi
jl 0x100177b3
add esi, eax
js 0x100177bd
mov eax, dword [ebp - 0x234]
mov edx, 1
mov ecx, dword [eax - 8]
sub edx, dword [eax - 4]
sub ecx, esi
or ecx, edx
jge 0x10016fcb
push esi
lea ecx, [ebp - 0x234]
call fcn.10001860
mov eax, dword [ebp - 0x234]
mov edx, dword [ebp - 0x23c]
cmp edi, edx
lea edi, [eax + edi*2]
jbe 0x10016fdd
mov edi, str.Basic_
mov ecx, dword [ebp - 0x238]
lea eax, [eax + edx*2]
add ecx, ecx
push ecx
push edi
push ecx
push eax
call fcn.10008170
mov eax, dword [ebp - 0x234]
add esp, 0x10
cmp esi, dword [eax - 8]
jg 0x100177b3
mov dword [eax - 0xc], esi
xor ecx, ecx
mov eax, dword [ebp - 0x234]
mov word [eax + esi*2], cx
push dword [ebp - 0x234]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1001702f
push dword [ebp - 0x234]
push eax
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
push ecx
mov esi, esp
mov dword [ebp - 0x240], esp
mov dword [ebp - 0x248], esi
call fcn.10001ca0
mov ecx, eax
test ecx, ecx
je 0x100177c7
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [esi], eax
mov eax, 0x100bf9a0
mov byte [ebp - 4], 4
mov ecx, esi
test eax, 0xffff0000
jne 0x10017076
movzx eax, ax
push eax
call fcn.10001f10
jmp 0x10017082
push 0
push 0x100bf9a0
call fcn.10001950
push ecx
mov esi, esp
mov byte [ebp - 4], 5
mov dword [ebp - 0x248], 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 - 0x254]
mov byte [ebp - 4], 3
push eax
call fcn.10010a30
add esp, 0xc
mov eax, dword [ebp - 0x234]
mov byte [ebp - 4], 7
mov ecx, dword [eax - 0x10]
test ecx, ecx
je 0x100170d4
mov eax, dword [ecx]
mov eax, dword [eax + 0x10]
call eax
mov ecx, eax
test ecx, ecx
jne 0x100170ec
call fcn.10001ca0
mov ecx, eax
mov edx, dword [eax]
mov eax, dword [edx + 0x10]
call eax
mov ecx, eax
test ecx, ecx
je 0x100177d1
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
mov ecx, dword [ebp - 0x234]
mov dword [ebp - 0x24c], ecx
mov dword [ebp - 0x258], 1
lea esi, [eax + 0x10]
mov eax, dword [ebp - 0x254]
mov edi, dword [ecx - 0xc]
mov dword [ebp - 0x248], eax
mov dword [ebp - 0x238], esi
mov eax, dword [eax - 0xc]
mov dword [ebp - 0x23c], eax
mov dword [ebp - 0x240], edi
lea ecx, [edi + eax]
test ecx, ecx
js 0x100177db
mov eax, dword [esi - 8]
mov edx, 1
sub edx, dword [esi - 4]
sub eax, ecx
or eax, edx
jge 0x1001715e
push ecx
lea ecx, [ebp - 0x238]
call fcn.10001860
mov esi, dword [ebp - 0x238]
add edi, edi
push edi
push dword [ebp - 0x24c]
push edi
push esi
call fcn.10008170
mov eax, dword [ebp - 0x23c]
add eax, eax
push eax
push dword [ebp - 0x248]
push eax
lea eax, [edi + esi]
push eax
call fcn.10008170
mov eax, dword [ebp - 0x240]
add esp, 0x20
add eax, dword [ebp - 0x23c]
cmp eax, dword [esi - 8]
jg 0x100177b3
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
lea edx, [esi - 0x10]
mov ecx, dword [ebp - 0x234]
or edi, 0xffffffff
add ecx, 0xfffffff0
mov dword [ebp - 0x23c], edx
mov dword [ebp - 0x248], ecx
cmp edx, ecx
je 0x10017230
cmp dword [ecx + 0xc], 0
lea eax, [ecx + 0xc]
mov dword [ebp - 0x240], eax
jl 0x1001721b
mov eax, dword [edx]
cmp eax, dword [ecx]
jne 0x1001721b
push edx
call fcn.100016d0
mov edx, dword [ebp - 0x240]
add esp, 4
mov dword [ebp - 0x24c], eax
mov ecx, edi
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x10017210
mov esi, dword [ebp - 0x248]
push esi
mov ecx, dword [esi]
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x24c]
add eax, 0x10
mov dword [ebp - 0x234], eax
jmp 0x1001722a
push dword [esi - 0xc]
lea ecx, [ebp - 0x234]
push esi
call fcn.10001950
mov edx, dword [ebp - 0x23c]
mov byte [ebp - 4], 6
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10017248
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp - 0x234]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10017264
push dword [ebp - 0x234]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
call fcn.10001ca0
mov ecx, eax
test ecx, ecx
je 0x100177e5
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [ebp - 0x250], esi
push 0x1c
mov byte [ebp - 4], 8
call fcn.1006129e
add esp, 4
mov dword [ebp - 0x238], eax
test eax, eax
je 0x100172fa
mov dword [eax], vtable.CHttpTaskAdapterDownloadFile.0
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
call fcn.10001ca0
mov ecx, eax
test ecx, ecx
je 0x100177ef
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
mov ecx, dword [ebp - 0x238]
add eax, 0x10
push 0
push 0
push 1
mov dword [ecx + 0x14], eax
push 0
mov dword [ecx + 0x18], 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov ecx, dword [ebp - 0x238]
mov dword [ecx + 0x10], eax
mov eax, ecx
jmp 0x100172fc
xor eax, eax
mov dword [ebp - 0x240], 0
lea ecx, [ebp - 0x244]
push dword [ebp - 0x240]
mov dword [ebp - 0x244], 0
push eax
call fcn.10009e70
mov ecx, dword [ebp - 0x244]
lea eax, [ebp - 0x234]
push 0
push dword [ebp + 0x14]
mov byte [ebp - 4], 9
push eax
push dword [ebp + 8]
call fcn.1000ab60
test eax, eax
je 0x1001759b
mov eax, dword [ebp - 0x244]
lea ecx, [ebp - 0x250]
add eax, 0x14
push eax
call fcn.1000a1e0
mov esi, dword [ebp - 0x240]
mov byte [ebp - 4], 8
test esi, esi
je 0x1001738a
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x1001738a
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, edi
lock xadd dword [esi + 8], eax
jne 0x1001738a
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
lea eax, [ebp - 0x228]
xorps xmm0, xmm0
push eax
push dword [ebp - 0x234]
movups xmmword [ebp - 0x228], xmm0
call fcn.10009600
add esp, 8
test eax, eax
jne 0x10017422
call fcn.10054ac0
test eax, eax
je 0x10017564
call fcn.10054ac0
mov ecx, eax
mov edx, dword [eax]
mov eax, dword [edx + 4]
call eax
test al, al
je 0x10017564
call fcn.10054ac0
lea ecx, [ebp - 0x2f0]
mov edi, eax
call fcn.10003290
mov esi, eax
push str.error_DownloadFile__
push esi
mov byte [ebp - 4], 0xa
call fcn.10009210
mov ecx, dword [ebp - 0x234]
mov edx, 0x100a3c54
test ecx, ecx
cmovne edx, ecx
push edx
push esi
call fcn.10009210
push 0x100a4db0
push esi
call fcn.10009210
mov eax, dword [edi]
add esp, 0x18
mov ecx, edi
push esi
jmp 0x10017553
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.1006c590
push 0x104
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x228]
push eax
call fcn.10009590
add esp, 0x18
test eax, eax
jne 0x100174c9
call fcn.10054ac0
test eax, eax
je 0x10017564
call fcn.10054ac0
mov ecx, eax
mov edx, dword [eax]
mov eax, dword [edx + 4]
call eax
test al, al
je 0x10017564
call fcn.10054ac0
lea ecx, [ebp - 0x2f0]
mov edi, eax
call fcn.10003290
mov esi, eax
push str.error_DownloadFile__
push esi
mov byte [ebp - 4], 0xb
call fcn.10009210
mov ecx, dword [ebp - 0x234]
mov edx, 0x100a3c54
test ecx, ecx
cmovne edx, ecx
push edx
push esi
call fcn.10009210
push str._:_digest_md5
push esi
call fcn.10009210
mov eax, dword [edi]
add esp, 0x18
mov ecx, edi
push esi
jmp 0x10017553
lea eax, [ebp - 0x218]
push eax
push dword [ebp + 0xc]
call fcn.1007b7f8
add esp, 8
test eax, eax
je 0x10017579
call fcn.10054ac0
test eax, eax
je 0x10017564
call fcn.10054ac0
mov ecx, eax
mov edx, dword [eax]
mov eax, dword [edx + 4]
call eax
test al, al
je 0x10017564
mov esi, dword [ebp - 0x234]
call fcn.10054ac0
lea ecx, [ebp - 0x2f0]
mov dword [ebp - 0x240], eax
call fcn.10003290
mov edi, eax
push str.error_DownloadFile__
push edi
mov byte [ebp - 4], 0xc
call fcn.10009210
test esi, esi
mov ecx, 0x100a3c54
cmovne ecx, esi
push ecx
push edi
call fcn.10009210
push str._:_invalid
push edi
call fcn.10009210
mov ecx, dword [ebp - 0x240]
add esp, 0x18
mov eax, dword [ecx]
push edi
call dword [eax + 0x14]
lea ecx, [ebp - 0x2f0]
call fcn.10003f50
or edi, 0xffffffff
mov esi, dword [ebp - 0x250]
mov dword [ebp - 0x238], 0
jmp 0x100176d8
push 0
push dword [ebp + 0x10]
push dword [ebp - 0x234]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov esi, dword [ebp - 0x250]
mov dword [ebp - 0x238], eax
jmp 0x100176d8
mov ecx, dword [ebp - 0x240]
mov byte [ebp - 4], 8
test ecx, ecx
je 0x100175ca
mov eax, edi
lock xadd dword [ecx + 4], eax
jne 0x100175ca
mov eax, dword [ecx]
call dword [eax]
mov ecx, dword [ebp - 0x240]
mov eax, edi
lock xadd dword [ecx + 8], eax
jne 0x100175ca
mov eax, dword [ecx]
call dword [eax + 4]
call fcn.10054ac0
test eax, eax
je 0x100176ce
call fcn.10054ac0
mov ecx, eax
mov edx, dword [eax]
mov eax, dword [edx + 4]
call eax
test al, al
je 0x100176ce
call fcn.10054ac0
lea ecx, [ebp - 0x2f0]
mov dword [ebp - 0x240], eax
call fcn.10003290
mov dword [ebp - 0x23c], eax
push str.error_DownloadFile_failed._res_
push eax
mov byte [ebp - 4], 0xd
call fcn.10009210
test esi, esi
lea eax, [ebp - 0x230]
mov ecx, 0x100a3bc8
cmovne ecx, esi
push ecx
push eax
call fcn.10007d10
add esp, 0x10
cmp dword [eax + 0x14], 8
mov ecx, dword [eax + 0x10]
mov byte [ebp - 4], 0xe
jb 0x10017641
mov eax, dword [eax]
push ecx
push eax
push dword [ebp - 0x23c]
call fcn.10002f20
mov edx, dword [ebp - 0x21c]
add esp, 0xc
mov byte [ebp - 4], 0xd
cmp edx, 8
jb 0x10017695
mov ecx, dword [ebp - 0x230]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1001768b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100177f9
push edx
push ecx
call fcn.100612ce
add esp, 8
mov ecx, dword [ebp - 0x240]
xor eax, eax
push dword [ebp - 0x23c]
mov word [ebp - 0x230], ax
mov dword [ebp - 0x220], 0
mov eax, dword [ecx]
mov dword [ebp - 0x21c], 7
call dword [eax + 0x14]
lea ecx, [ebp - 0x2f0]
call fcn.10003f50
mov dword [ebp - 0x238], 0
mov byte [ebp - 4], 6
add esi, 0xfffffff0
mov eax, edi
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x100176f3
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x254]
mov eax, edi
mov byte [ebp - 4], 3
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10017714
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x234]
mov eax, edi
mov byte [ebp - 4], 2
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10017735
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp + 8]
mov eax, edi
mov byte [ebp - 4], 1
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10017753
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp + 0xc]
mov eax, edi
mov byte [ebp - 4], 0
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10017771
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp + 0x10]
mov dword [ebp - 4], 0xffffffff
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], edi
dec edi
test edi, edi
jg 0x10017790
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x238]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100612dc
mov esp, ebp
pop ebp
ret 0x10
push 0x80070057
call fcn.100015b0
push 0x80070057
call fcn.100015b0
push 0x80004005
call fcn.100015b0
push 0x80004005
call fcn.100015b0
push 0x80070057
call fcn.100015b0
push 0x80004005
call fcn.100015b0
push 0x80004005
call fcn.100015b0
call fcn.1006f8ee
int3