Function at 0x1000ece0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100a8f70
mov eax, dword fs:[0]
push eax
sub esp, 0x110
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 edi, ecx
mov eax, dword [ebp + 8]
lea ecx, [edi + 0x14]
mov dword [ebp - 0x118], eax
lea eax, [edi + 0x10]
push ecx
push eax
lea eax, [ebp - 0x104]
push eax
call fcn.1000e1c0
add esp, 0xc
mov dword [ebp - 4], 0
call fcn.100029d0
mov ecx, eax
test ecx, ecx
je 0x1000f7b9
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x11c], eax
mov eax, dword [ebp - 0x104]
lea ecx, [ebp - 0xe4]
mov byte [ebp - 4], 1
mov dword [ebp - 0x110], eax
mov dword [ebp - 0xe8], ecx
test eax, eax
jne 0x1000ed80
mov dword [ebp - 0xe8], eax
jmp 0x1000ee73
mov ecx, eax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1000ed85
sub ecx, edx
sar ecx, 1
push 0x80
lea eax, [ecx + 1]
lea esi, [eax*4]
mov dword [ebp - 0x108], eax
lea eax, [ebp - 0xe4]
push eax
lea eax, [ebp - 0xe8]
push esi
push eax
call fcn.1000db60
add esp, 0x10
push 0
push 0
push esi
push dword [ebp - 0xe8]
mov esi, dword [ebp - 0x110]
push dword [ebp - 0x108]
push esi
push 0
push 3
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
xor ecx, ecx
test eax, eax
sete cl
mov dword [ebp - 0x100], ecx
test eax, eax
jne 0x1000ee65
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x1000ee5f
push 0
push 0
push 0
push 0
push dword [ebp - 0x108]
push esi
push 0
push 3
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov esi, eax
lea eax, [ebp - 0xe4]
push 0x80
push eax
lea eax, [ebp - 0xe8]
push esi
push eax
call fcn.1000db60
add esp, 0x10
push 0
push 0
push esi
push dword [ebp - 0xe8]
push dword [ebp - 0x108]
push dword [ebp - 0x110]
push 0
push 3
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ecx, eax
neg ecx
sbb ecx, ecx
inc ecx
jmp 0x1000ee65
mov ecx, dword [ebp - 0x100]
test ecx, ecx
jne 0x1000f7c3
mov eax, dword [ebp - 0xe8]
push eax
mov byte [ebp - 4], 2
call fcn.10010230
add esp, 4
mov byte [ebp - 4], 1
test eax, eax
lea ecx, [ebp - 0xe4]
mov eax, dword [ebp - 0xe8]
sete byte [ebp - 0x109]
cmp eax, ecx
je 0x1000eea6
push eax
call fcn.10079ae6
add esp, 4
cmp byte [ebp - 0x109], 0
je 0x1000ef36
call fcn.1005d530
test eax, eax
je 0x1000ef2e
call fcn.1005d530
mov ecx, eax
mov edx, dword [eax]
mov eax, dword [edx + 4]
call eax
test al, al
je 0x1000ef2e
mov esi, dword [edi + 8]
call fcn.1005d530
lea ecx, [ebp - 0xfc]
mov dword [ebp - 0x100], eax
call fcn.100064c0
mov edi, eax
push 0x100affcc
push edi
mov byte [ebp - 4], 3
call fcn.1000d070
test esi, esi
mov ecx, 0x100afe38
cmovne ecx, esi
push ecx
push edi
call fcn.1000d070
push str._:_MakeSureDirectoryPathExists
push edi
call fcn.10007110
mov ecx, dword [ebp - 0x100]
add esp, 0x18
mov eax, dword [ecx]
push edi
call dword [eax + 0x14]
lea ecx, [ebp - 0xfc]
call fcn.100071d0
or esi, 0xffffffff
jmp 0x1000f754
push 0
push dword [ebp - 0x104]
call fcn.1000e7b0
add esp, 8
test eax, eax
jne 0x1000efd3
call fcn.1005d530
test eax, eax
je 0x1000efc9
call fcn.1005d530
mov ecx, eax
mov edx, dword [eax]
mov eax, dword [edx + 4]
call eax
test al, al
je 0x1000efc9
mov esi, dword [edi + 8]
call fcn.1005d530
lea ecx, [ebp - 0xfc]
mov dword [ebp - 0x100], eax
call fcn.100064c0
mov edi, eax
push 0x100affcc
push edi
mov byte [ebp - 4], 4
call fcn.1000d070
test esi, esi
mov ecx, 0x100afe38
cmovne ecx, esi
push ecx
push edi
call fcn.1000d070
push str._:_delete_old_file
push edi
call fcn.10007110
mov ecx, dword [ebp - 0x100]
add esp, 0x18
mov eax, dword [ecx]
push edi
call dword [eax + 0x14]
lea ecx, [ebp - 0xfc]
call fcn.100071d0
mov esi, 0xfffffffe
jmp 0x1000f754
mov eax, dword [edi + 0x24]
push 0x1c
mov dword [ebp - 0x100], eax
call fcn.1006a5ce
mov esi, eax
add esp, 4
mov dword [ebp - 0x110], esi
test esi, esi
je 0x1000f043
mov dword [esi], vtable.CHttpTaskAdapterDownloadFile.0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
call fcn.100029d0
mov ecx, eax
test ecx, ecx
je 0x1000f7e2
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
push 0
push 0
add eax, 0x10
push 1
mov dword [esi + 0x14], eax
push 0
mov dword [esi + 0x18], 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0x10], eax
jmp 0x1000f045
xor esi, esi
push dword [ebp - 0x100]
lea ecx, [ebp - 0x114]
mov dword [ebp - 0x114], 0
push esi
mov dword [ebp - 0x110], 0
call fcn.1000dcd0
push dword [ebp - 0x118]
mov esi, dword [ebp - 0x114]
lea eax, [ebp - 0x104]
push dword [ebp - 0x100]
mov ecx, esi
mov byte [ebp - 4], 5
push eax
push dword [edi + 0xc]
call fcn.1000e9c0
test eax, eax
je 0x1000f695
lea eax, [esi + 0x14]
push eax
lea ecx, [ebp - 0x11c]
call fcn.1000e040
mov esi, dword [ebp - 0x110]
mov byte [ebp - 4], 1
test esi, esi
je 0x1000f0d8
or eax, 0xffffffff
lock xadd dword [esi + 4], eax
jne 0x1000f0d8
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
or eax, 0xffffffff
lock xadd dword [esi + 8], eax
jne 0x1000f0d8
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
push 0x100b0038
push dword [edi + 0x14]
call fcn.10086c6a
add esp, 8
test eax, eax
mov eax, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
jne 0x1000f3fe
push dword [ebp - 0x104]
call eax
test eax, eax
jne 0x1000f18a
call fcn.1005d530
test eax, eax
je 0x1000f180
call fcn.1005d530
mov ecx, eax
mov edx, dword [eax]
mov eax, dword [edx + 4]
call eax
test al, al
je 0x1000f180
mov esi, dword [edi + 8]
call fcn.1005d530
lea ecx, [ebp - 0xfc]
mov dword [ebp - 0x100], eax
call fcn.100064c0
mov edi, eax
push 0x100affcc
push edi
mov byte [ebp - 4], 7
call fcn.1000d070
test esi, esi
mov ecx, 0x100afe38
cmovne ecx, esi
push ecx
push edi
call fcn.1000d070
push str._:_download_not_exists
push edi
call fcn.10007110
mov ecx, dword [ebp - 0x100]
add esp, 0x18
mov eax, dword [ecx]
push edi
call dword [eax + 0x14]
lea ecx, [ebp - 0xfc]
call fcn.100071d0
mov esi, 0xfffffff6
jmp 0x1000f754
push 0
push dword [edi + 0x10]
call fcn.1000e7b0
add esp, 8
test eax, eax
jne 0x1000f224
call fcn.1005d530
test eax, eax
je 0x1000f21a
call fcn.1005d530
mov ecx, eax
mov edx, dword [eax]
mov eax, dword [edx + 4]
call eax
test al, al
je 0x1000f21a
mov esi, dword [edi + 8]
call fcn.1005d530
lea ecx, [ebp - 0xfc]
mov dword [ebp - 0x100], eax
call fcn.100064c0
mov edi, eax
push 0x100affcc
push edi
mov byte [ebp - 4], 8
call fcn.1000d070
test esi, esi
mov ecx, 0x100afe38
cmovne ecx, esi
push ecx
push edi
call fcn.1000d070
push str._:_delete_raw_file
push edi
call fcn.10007110
mov ecx, dword [ebp - 0x100]
add esp, 0x18
mov eax, dword [ecx]
push edi
call dword [eax + 0x14]
lea ecx, [ebp - 0xfc]
call fcn.100071d0
mov esi, 0xfffffff5
jmp 0x1000f754
lea eax, [ebp - 0x104]
push eax
lea ecx, [ebp - 0x108]
call fcn.10002370
mov esi, dword [ebp - 0x108]
mov byte [ebp - 4], 9
cmp dword [esi - 4], 1
jle 0x1000f25a
push dword [esi - 0xc]
lea ecx, [ebp - 0x108]
call fcn.100024c0
mov esi, dword [ebp - 0x108]
push esi
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push dword [esi - 8]
push esi
call fcn.1007da0b
add esp, 8
test eax, eax
js 0x1000f7ec
cmp eax, dword [esi - 8]
jg 0x1000f7ec
xor ecx, ecx
mov dword [esi - 0xc], eax
push ecx
push esi
mov word [esi + eax*2], cx
push dword [ebp - 0x104]
call fcn.1006d900
test eax, eax
jns 0x1000f32c
call fcn.1005d530
test eax, eax
je 0x1000f317
call fcn.1005d530
mov ecx, eax
mov edx, dword [eax]
mov eax, dword [edx + 4]
call eax
test al, al
je 0x1000f317
mov esi, dword [edi + 8]
call fcn.1005d530
lea ecx, [ebp - 0xfc]
mov dword [ebp - 0x100], eax
call fcn.100064c0
mov edi, eax
push 0x100affcc
push edi
mov byte [ebp - 4], 0xa
call fcn.1000d070
test esi, esi
mov ecx, 0x100afe38
cmovne ecx, esi
push ecx
push edi
call fcn.1000d070
push str._:_extract_file
push edi
call fcn.10007110
mov ecx, dword [ebp - 0x100]
add esp, 0x18
mov eax, dword [ecx]
push edi
call dword [eax + 0x14]
lea ecx, [ebp - 0xfc]
call fcn.100071d0
lea ecx, [ebp - 0x108]
mov esi, 0xfffffff4
call fcn.100027b0
jmp 0x1000f754
push dword [ebp - 0x118]
call fcn.10011df0
add esp, 4
push 1
push dword [ebp - 0x104]
test eax, eax
je 0x1000f3e2
call fcn.1000e7b0
add esp, 8
call fcn.1005d530
test eax, eax
je 0x1000f3cd
call fcn.1005d530
mov ecx, eax
mov edx, dword [eax]
mov eax, dword [edx + 4]
call eax
test al, al
je 0x1000f3cd
mov esi, dword [edi + 8]
call fcn.1005d530
lea ecx, [ebp - 0xfc]
mov dword [ebp - 0x100], eax
call fcn.100064c0
mov edi, eax
push 0x100affcc
push edi
mov byte [ebp - 4], 0xb
call fcn.1000d070
test esi, esi
mov ecx, 0x100afe38
cmovne ecx, esi
push ecx
push edi
call fcn.1000d070
push str._:_user_cancel
push edi
call fcn.10007110
mov ecx, dword [ebp - 0x100]
add esp, 0x18
mov eax, dword [ecx]
push edi
call dword [eax + 0x14]
lea ecx, [ebp - 0xfc]
call fcn.100071d0
lea ecx, [ebp - 0x108]
mov esi, 0xfffffff3
call fcn.100027b0
jmp 0x1000f754
call fcn.1000e7b0
add esp, 8
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x108]
call fcn.100027b0
mov eax, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push dword [edi + 0x10]
call eax
test eax, eax
jne 0x1000f490
call fcn.1005d530
test eax, eax
je 0x1000f486
call fcn.1005d530
mov ecx, eax
mov edx, dword [eax]
mov eax, dword [edx + 4]
call eax
test al, al
je 0x1000f486
mov esi, dword [edi + 8]
call fcn.1005d530
lea ecx, [ebp - 0xfc]
mov dword [ebp - 0x100], eax
call fcn.100064c0
mov edi, eax
push 0x100affcc
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._:_file_not_found
push edi
call fcn.10007110
mov ecx, dword [ebp - 0x100]
add esp, 0x18
mov eax, dword [ecx]
push edi
call dword [eax + 0x14]
lea ecx, [ebp - 0xfc]
call fcn.100071d0
mov esi, 0xfffffffc
jmp 0x1000f754
lea eax, [ebp - 0x20]
xorps xmm0, xmm0
push eax
push dword [edi + 0x10]
movups xmmword [ebp - 0x20], xmm0
call fcn.1000d460
add esp, 8
test eax, eax
jne 0x1000f533
call fcn.1005d530
test eax, eax
je 0x1000f529
call fcn.1005d530
mov ecx, eax
mov edx, dword [eax]
mov eax, dword [edx + 4]
call eax
test al, al
je 0x1000f529
mov esi, dword [edi + 8]
call fcn.1005d530
lea ecx, [ebp - 0xfc]
mov dword [ebp - 0x100], eax
call fcn.100064c0
mov edi, eax
push 0x100affcc
push edi
mov byte [ebp - 4], 0xd
call fcn.1000d070
test esi, esi
mov ecx, 0x100afe38
cmovne ecx, esi
push ecx
push edi
call fcn.1000d070
push 0x100b00a0
push edi
call fcn.10007110
mov ecx, dword [ebp - 0x100]
add esp, 0x18
mov eax, dword [ecx]
push edi
call dword [eax + 0x14]
lea ecx, [ebp - 0xfc]
call fcn.100071d0
mov esi, 0xfffffffb
jmp 0x1000f754
push 0x42
lea eax, [ebp - 0x64]
push 0
push eax
call fcn.10076570
push 0x21
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.1000d3f0
add esp, 0x18
test eax, eax
jne 0x1000f5df
call fcn.1005d530
test eax, eax
je 0x1000f5d5
call fcn.1005d530
mov ecx, eax
mov edx, dword [eax]
mov eax, dword [edx + 4]
call eax
test al, al
je 0x1000f5d5
mov esi, dword [edi + 8]
call fcn.1005d530
lea ecx, [ebp - 0xfc]
mov dword [ebp - 0x100], eax
call fcn.100064c0
mov edi, eax
push 0x100affcc
push edi
mov byte [ebp - 4], 0xe
call fcn.1000d070
test esi, esi
mov ecx, 0x100afe38
cmovne ecx, esi
push ecx
push edi
call fcn.1000d070
push 0x100b00ac
push edi
call fcn.10007110
mov ecx, dword [ebp - 0x100]
add esp, 0x18
mov eax, dword [ecx]
push edi
call dword [eax + 0x14]
lea ecx, [ebp - 0xfc]
call fcn.100071d0
mov esi, 0xfffffffa
jmp 0x1000f754
lea edx, [ebp - 0x64]
lea ecx, [edi + 0x1c]
lea esi, [edx + 2]
nop dword [eax + eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x1000f5f0
sub edx, esi
lea eax, [ebp - 0x64]
sar edx, 1
push edx
push eax
call fcn.10002680
call fcn.1005d530
test eax, eax
je 0x1000f68e
call fcn.1005d530
mov ecx, eax
mov edx, dword [eax]
mov eax, dword [edx + 4]
call eax
test al, al
je 0x1000f68e
mov esi, dword [edi + 8]
call fcn.1005d530
lea ecx, [ebp - 0xfc]
mov dword [ebp - 0x100], eax
call fcn.100064c0
mov edi, eax
push str.ok_Download_
push edi
mov byte [ebp - 4], 0xf
call fcn.1000d070
test esi, esi
mov ecx, 0x100afe38
cmovne ecx, esi
push ecx
push edi
call fcn.1000d070
push str._:_md5
push edi
call fcn.10007110
lea eax, [ebp - 0x64]
push eax
push edi
call fcn.1000d070
mov ecx, dword [ebp - 0x100]
add esp, 0x20
mov eax, dword [ecx]
push edi
call dword [eax + 0x14]
lea ecx, [ebp - 0xfc]
call fcn.100071d0
xor esi, esi
jmp 0x1000f754
mov esi, dword [ebp - 0x110]
mov byte [ebp - 4], 1
test esi, esi
je 0x1000f6c4
or eax, 0xffffffff
lock xadd dword [esi + 4], eax
jne 0x1000f6c4
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
or eax, 0xffffffff
lock xadd dword [esi + 8], eax
jne 0x1000f6c4
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
push 1
push dword [ebp - 0x104]
call fcn.1000e7b0
add esp, 8
call fcn.1005d530
test eax, eax
je 0x1000f74f
call fcn.1005d530
mov ecx, eax
mov edx, dword [eax]
mov eax, dword [edx + 4]
call eax
test al, al
je 0x1000f74f
mov esi, dword [edi + 8]
call fcn.1005d530
lea ecx, [ebp - 0xfc]
mov dword [ebp - 0x100], eax
call fcn.100064c0
mov edi, eax
push 0x100affcc
push edi
mov byte [ebp - 4], 6
call fcn.1000d070
test esi, esi
mov ecx, 0x100afe38
cmovne ecx, esi
push ecx
push edi
call fcn.1000d070
push str._:_sync_download_file
push edi
call fcn.10007110
mov ecx, dword [ebp - 0x100]
add esp, 0x18
mov eax, dword [ecx]
push edi
call dword [eax + 0x14]
lea ecx, [ebp - 0xfc]
call fcn.100071d0
mov esi, 0xfffffffd
mov edx, dword [ebp - 0x11c]
or edi, 0xffffffff
mov byte [ebp - 4], 0
add edx, 0xfffffff0
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1000f778
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x104]
mov dword [ebp - 4], 0xffffffff
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], edi
dec edi
test edi, edi
jg 0x1000f79a
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
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1006a60c
mov esp, ebp
pop ebp
ret 4
push 0x80004005
call fcn.10001670
push 0x80
lea eax, [ebp - 0xe4]
push eax
push dword [ebp - 0xe8]
call fcn.1000dbe0
add esp, 0xc
call fcn.1000e9a0
push 0x80004005
call fcn.10001670
push 0x80070057
call fcn.10001670
int3