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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100a9a92
mov eax, dword fs:[0]
push eax
sub esp, 0x2d8
mov eax, dword [0x100db3fc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x234], eax
mov dword [ebp - 0x248], 0
lea eax, [ebp - 0x22c]
mov dword [ebp - 4], 2
push eax
call fcn.10015650
mov eax, dword [ebp - 0x22c]
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 - 0x238], esi
call fcn.1007da0b
mov ecx, SysReAllocString
mov dword [ebp - 0x230], eax
sub ecx, eax
add esp, 0xc
cmp ecx, esi
jl 0x1001a4a8
add esi, eax
js 0x1001a4b2
mov eax, dword [ebp - 0x22c]
mov edx, 1
mov ecx, dword [eax - 8]
sub edx, dword [eax - 4]
sub ecx, esi
or ecx, edx
jge 0x10019df4
push esi
lea ecx, [ebp - 0x22c]
call fcn.10002590
mov eax, dword [ebp - 0x22c]
mov edx, dword [ebp - 0x238]
cmp edi, edx
lea edi, [eax + edi*2]
jbe 0x10019e06
mov edi, str.Basic_
mov ecx, dword [ebp - 0x230]
lea eax, [eax + edx*2]
add ecx, ecx
push ecx
push edi
push ecx
push eax
call fcn.1000bfd0
mov eax, dword [ebp - 0x22c]
add esp, 0x10
cmp esi, dword [eax - 8]
jg 0x1001a4a8
mov dword [eax - 0xc], esi
xor ecx, ecx
mov eax, dword [ebp - 0x22c]
mov word [eax + esi*2], cx
push dword [ebp - 0x22c]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x10019e58
push dword [ebp - 0x22c]
push eax
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
push ecx
mov esi, esp
mov dword [ebp - 0x14], esp
mov dword [ebp - 0x23c], esi
call fcn.100029d0
mov ecx, eax
test ecx, ecx
je 0x1001a4bc
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [esi], eax
mov eax, 0x100cbd64
mov byte [ebp - 4], 4
mov ecx, esi
test eax, 0xffff0000
jne 0x10019e9c
movzx eax, ax
push eax
call fcn.10003390
jmp 0x10019ea8
push 0
push 0x100cbd64
call fcn.10002680
push ecx
mov esi, esp
mov byte [ebp - 4], 5
mov dword [ebp - 0x23c], 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 - 0x244]
mov byte [ebp - 4], 3
push eax
call fcn.100148a0
add esp, 0xc
mov eax, dword [ebp - 0x22c]
mov byte [ebp - 4], 7
mov ecx, dword [eax - 0x10]
test ecx, ecx
je 0x10019efa
mov eax, dword [ecx]
mov eax, dword [eax + 0x10]
call eax
mov ecx, eax
test ecx, ecx
jne 0x10019f12
call fcn.100029d0
mov ecx, eax
mov edx, dword [eax]
mov eax, dword [edx + 0x10]
call eax
mov ecx, eax
test ecx, ecx
je 0x1001a4c6
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
mov ecx, dword [ebp - 0x22c]
mov dword [ebp - 0x24c], ecx
mov dword [ebp - 0x248], 1
lea esi, [eax + 0x10]
mov eax, dword [ebp - 0x244]
mov edi, dword [ecx - 0xc]
mov dword [ebp - 0x23c], eax
mov dword [ebp - 0x230], esi
mov eax, dword [eax - 0xc]
mov dword [ebp - 0x238], eax
mov dword [ebp - 0x14], edi
lea ecx, [edi + eax]
test ecx, ecx
js 0x1001a4d0
mov eax, dword [esi - 8]
mov edx, 1
sub edx, dword [esi - 4]
sub eax, ecx
or eax, edx
jge 0x10019f81
push ecx
lea ecx, [ebp - 0x230]
call fcn.10002590
mov esi, dword [ebp - 0x230]
add edi, edi
push edi
push dword [ebp - 0x24c]
push edi
push esi
call fcn.1000bfd0
mov eax, dword [ebp - 0x238]
add eax, eax
push eax
push dword [ebp - 0x23c]
push eax
lea eax, [edi + esi]
push eax
call fcn.1000bfd0
mov eax, dword [ebp - 0x14]
add esp, 0x20
add eax, dword [ebp - 0x238]
cmp eax, dword [esi - 8]
jg 0x1001a4a8
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
lea eax, [ebp - 0x230]
push eax
lea ecx, [ebp - 0x22c]
call fcn.10002300
or edi, 0xffffffff
mov byte [ebp - 4], 6
add esi, 0xfffffff0
mov eax, edi
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x10019ff8
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp - 0x22c]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1001a014
push dword [ebp - 0x22c]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
call fcn.100029d0
mov ecx, eax
test ecx, ecx
je 0x1001a4da
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [ebp - 0x240], esi
push 0x1c
mov byte [ebp - 4], 8
call fcn.1006a5ce
add esp, 4
mov dword [ebp - 0x230], eax
test eax, eax
je 0x1001a0aa
mov dword [eax], vtable.CHttpTaskAdapterDownloadFile.0
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
call fcn.100029d0
mov ecx, eax
test ecx, ecx
je 0x1001a4e4
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
mov ecx, dword [ebp - 0x230]
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 - 0x230]
mov dword [ecx + 0x10], eax
mov eax, ecx
jmp 0x1001a0ac
xor eax, eax
push dword [ebp - 0x234]
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], 0
push eax
mov dword [ebp - 0x14], 0
call fcn.1000dcd0
push dword [ebp - 0x234]
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x22c]
push dword [ebp + 0x14]
mov byte [ebp - 4], 9
push eax
push dword [ebp + 8]
call fcn.1000e9c0
test eax, eax
je 0x1001a334
mov eax, dword [ebp - 0x18]
lea ecx, [ebp - 0x240]
add eax, 0x14
push eax
call fcn.1000e040
mov esi, dword [ebp - 0x14]
mov byte [ebp - 4], 8
test esi, esi
je 0x1001a12c
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x1001a12c
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, edi
lock xadd dword [esi + 8], eax
jne 0x1001a12c
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
lea eax, [ebp - 0x20]
xorps xmm0, xmm0
push eax
push dword [ebp - 0x22c]
movups xmmword [ebp - 0x20], xmm0
call fcn.1000d460
add esp, 8
test eax, eax
jne 0x1001a1be
call fcn.1005d530
test eax, eax
je 0x1001a2fd
call fcn.1005d530
mov ecx, eax
mov edx, dword [eax]
mov eax, dword [edx + 4]
call eax
test al, al
je 0x1001a2fd
call fcn.1005d530
lea ecx, [ebp - 0x2e4]
mov edi, eax
call fcn.100064c0
mov esi, eax
push str.error_DownloadFile__
push esi
mov byte [ebp - 4], 0xa
call fcn.1000d070
mov ecx, dword [ebp - 0x22c]
mov edx, 0x100afe38
test ecx, ecx
cmovne edx, ecx
push edx
push esi
call fcn.1000d070
push str._:_calc_md5
push esi
call fcn.1000d070
mov eax, dword [edi]
add esp, 0x18
mov ecx, edi
push esi
jmp 0x1001a2ec
push 0x208
lea eax, [ebp - 0x228]
push 0
push eax
call fcn.10076570
push 0x104
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.1000d3f0
add esp, 0x18
test eax, eax
jne 0x1001a262
call fcn.1005d530
test eax, eax
je 0x1001a2fd
call fcn.1005d530
mov ecx, eax
mov edx, dword [eax]
mov eax, dword [edx + 4]
call eax
test al, al
je 0x1001a2fd
call fcn.1005d530
lea ecx, [ebp - 0x2e4]
mov edi, eax
call fcn.100064c0
mov esi, eax
push str.error_DownloadFile__
push esi
mov byte [ebp - 4], 0xb
call fcn.1000d070
mov ecx, dword [ebp - 0x22c]
mov edx, 0x100afe38
test ecx, ecx
cmovne edx, ecx
push edx
push esi
call fcn.1000d070
push str._:_digest_md5
push esi
call fcn.1000d070
mov eax, dword [edi]
add esp, 0x18
mov ecx, edi
push esi
jmp 0x1001a2ec
lea eax, [ebp - 0x228]
push eax
push dword [ebp + 0xc]
call fcn.10086c6a
add esp, 8
test eax, eax
je 0x1001a312
call fcn.1005d530
test eax, eax
je 0x1001a2fd
call fcn.1005d530
mov ecx, eax
mov edx, dword [eax]
mov eax, dword [edx + 4]
call eax
test al, al
je 0x1001a2fd
mov esi, dword [ebp - 0x22c]
call fcn.1005d530
lea ecx, [ebp - 0x2e4]
mov dword [ebp - 0x234], eax
call fcn.100064c0
mov edi, eax
push str.error_DownloadFile__
push edi
mov byte [ebp - 4], 0xc
call fcn.1000d070
test esi, esi
mov ecx, 0x100afe38
cmovne ecx, esi
push ecx
push edi
call fcn.1000d070
push str._:_invalid
push edi
call fcn.1000d070
mov ecx, dword [ebp - 0x234]
add esp, 0x18
mov eax, dword [ecx]
push edi
call dword [eax + 0x14]
lea ecx, [ebp - 0x2e4]
call fcn.100071d0
or edi, 0xffffffff
mov esi, dword [ebp - 0x240]
mov dword [ebp - 0x230], 0
jmp 0x1001a3cd
push 0
push dword [ebp + 0x10]
push dword [ebp - 0x22c]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov esi, dword [ebp - 0x240]
mov dword [ebp - 0x230], eax
jmp 0x1001a3cd
mov ecx, dword [ebp - 0x14]
mov byte [ebp - 4], 8
test ecx, ecx
je 0x1001a35d
mov eax, edi
lock xadd dword [ecx + 4], eax
jne 0x1001a35d
mov eax, dword [ecx]
call dword [eax]
mov ecx, dword [ebp - 0x14]
mov eax, edi
lock xadd dword [ecx + 8], eax
jne 0x1001a35d
mov eax, dword [ecx]
call dword [eax + 4]
call fcn.1005d530
test eax, eax
je 0x1001a3c3
call fcn.1005d530
mov ecx, eax
mov edx, dword [eax]
mov eax, dword [edx + 4]
call eax
test al, al
je 0x1001a3c3
call fcn.1005d530
lea ecx, [ebp - 0x2e4]
mov dword [ebp - 0x234], eax
call fcn.100064c0
mov edi, eax
push str.error_DownloadFile_failed._res_
push edi
mov byte [ebp - 4], 0xd
call fcn.1000d070
push esi
push edi
call fcn.10007110
mov ecx, dword [ebp - 0x234]
add esp, 0x10
mov eax, dword [ecx]
push edi
call dword [eax + 0x14]
lea ecx, [ebp - 0x2e4]
call fcn.100071d0
or edi, 0xffffffff
mov dword [ebp - 0x230], 0
mov byte [ebp - 4], 6
add esi, 0xfffffff0
mov eax, edi
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x1001a3e8
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x244]
mov eax, edi
mov byte [ebp - 4], 3
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1001a409
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x22c]
mov eax, edi
mov byte [ebp - 4], 2
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1001a42a
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 0x1001a448
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 0x1001a466
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 0x1001a485
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x230]
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.1006a60c
mov esp, ebp
pop ebp
ret 0x14
push 0x80070057
call fcn.10001670
push 0x80070057
call fcn.10001670
push 0x80004005
call fcn.10001670
push 0x80004005
call fcn.10001670
push 0x80070057
call fcn.10001670
push 0x80004005
call fcn.10001670
push 0x80004005
call fcn.10001670
int3