Function at 0x1000ae80
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1009d3a0
mov eax, dword fs:[0]
push eax
sub esp, 0x110
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 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.1000a360
add esp, 0xc
mov dword [ebp - 4], 0
call fcn.10001ca0
mov ecx, eax
test ecx, ecx
je 0x1000b959
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 0x1000af20
mov dword [ebp - 0xe8], eax
jmp 0x1000b013
mov ecx, eax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1000af25
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.10009d00
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 0x1000b005
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x1000afff
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.10009d00
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 0x1000b005
mov ecx, dword [ebp - 0x100]
test ecx, ecx
jne 0x1000b963
mov eax, dword [ebp - 0xe8]
push eax
mov byte [ebp - 4], 2
call fcn.1000c3d0
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 0x1000b046
push eax
call fcn.1006fb06
add esp, 4
cmp byte [ebp - 0x109], 0
je 0x1000b0d6
call fcn.10054ac0
test eax, eax
je 0x1000b0ce
call fcn.10054ac0
mov ecx, eax
mov edx, dword [eax]
mov eax, dword [edx + 4]
call eax
test al, al
je 0x1000b0ce
mov esi, dword [edi + 8]
call fcn.10054ac0
lea ecx, [ebp - 0xfc]
mov dword [ebp - 0x100], eax
call fcn.10003290
mov edi, eax
push 0x100a3de8
push edi
mov byte [ebp - 4], 3
call fcn.10009210
test esi, esi
mov ecx, 0x100a3c54
cmovne ecx, esi
push ecx
push edi
call fcn.10009210
push str._:_MakeSureDirectoryPathExists
push edi
call fcn.10003e90
mov ecx, dword [ebp - 0x100]
add esp, 0x18
mov eax, dword [ecx]
push edi
call dword [eax + 0x14]
lea ecx, [ebp - 0xfc]
call fcn.10003f50
or esi, 0xffffffff
jmp 0x1000b8f4
push 0
push dword [ebp - 0x104]
call fcn.1000a950
add esp, 8
test eax, eax
jne 0x1000b173
call fcn.10054ac0
test eax, eax
je 0x1000b169
call fcn.10054ac0
mov ecx, eax
mov edx, dword [eax]
mov eax, dword [edx + 4]
call eax
test al, al
je 0x1000b169
mov esi, dword [edi + 8]
call fcn.10054ac0
lea ecx, [ebp - 0xfc]
mov dword [ebp - 0x100], eax
call fcn.10003290
mov edi, eax
push 0x100a3de8
push edi
mov byte [ebp - 4], 4
call fcn.10009210
test esi, esi
mov ecx, 0x100a3c54
cmovne ecx, esi
push ecx
push edi
call fcn.10009210
push str._:_delete_old_file
push edi
call fcn.10003e90
mov ecx, dword [ebp - 0x100]
add esp, 0x18
mov eax, dword [ecx]
push edi
call dword [eax + 0x14]
lea ecx, [ebp - 0xfc]
call fcn.10003f50
mov esi, 0xfffffffe
jmp 0x1000b8f4
mov eax, dword [edi + 0x24]
push 0x1c
mov dword [ebp - 0x100], eax
call fcn.1006129e
mov esi, eax
add esp, 4
mov dword [ebp - 0x110], esi
test esi, esi
je 0x1000b1e3
mov dword [esi], vtable.CHttpTaskAdapterDownloadFile.0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
call fcn.10001ca0
mov ecx, eax
test ecx, ecx
je 0x1000b982
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 0x1000b1e5
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.10009e70
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.1000ab60
test eax, eax
je 0x1000b835
lea eax, [esi + 0x14]
push eax
lea ecx, [ebp - 0x11c]
call fcn.1000a1e0
mov esi, dword [ebp - 0x110]
mov byte [ebp - 4], 1
test esi, esi
je 0x1000b278
or eax, 0xffffffff
lock xadd dword [esi + 4], eax
jne 0x1000b278
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
or eax, 0xffffffff
lock xadd dword [esi + 8], eax
jne 0x1000b278
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
push 0x100a3e54
push dword [edi + 0x14]
call fcn.1007b7f8
add esp, 8
test eax, eax
mov eax, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
jne 0x1000b59e
push dword [ebp - 0x104]
call eax
test eax, eax
jne 0x1000b32a
call fcn.10054ac0
test eax, eax
je 0x1000b320
call fcn.10054ac0
mov ecx, eax
mov edx, dword [eax]
mov eax, dword [edx + 4]
call eax
test al, al
je 0x1000b320
mov esi, dword [edi + 8]
call fcn.10054ac0
lea ecx, [ebp - 0xfc]
mov dword [ebp - 0x100], eax
call fcn.10003290
mov edi, eax
push 0x100a3de8
push edi
mov byte [ebp - 4], 7
call fcn.10009210
test esi, esi
mov ecx, 0x100a3c54
cmovne ecx, esi
push ecx
push edi
call fcn.10009210
push str._:_download_not_exists
push edi
call fcn.10003e90
mov ecx, dword [ebp - 0x100]
add esp, 0x18
mov eax, dword [ecx]
push edi
call dword [eax + 0x14]
lea ecx, [ebp - 0xfc]
call fcn.10003f50
mov esi, 0xfffffff6
jmp 0x1000b8f4
push 0
push dword [edi + 0x10]
call fcn.1000a950
add esp, 8
test eax, eax
jne 0x1000b3c4
call fcn.10054ac0
test eax, eax
je 0x1000b3ba
call fcn.10054ac0
mov ecx, eax
mov edx, dword [eax]
mov eax, dword [edx + 4]
call eax
test al, al
je 0x1000b3ba
mov esi, dword [edi + 8]
call fcn.10054ac0
lea ecx, [ebp - 0xfc]
mov dword [ebp - 0x100], eax
call fcn.10003290
mov edi, eax
push 0x100a3de8
push edi
mov byte [ebp - 4], 8
call fcn.10009210
test esi, esi
mov ecx, 0x100a3c54
cmovne ecx, esi
push ecx
push edi
call fcn.10009210
push str._:_delete_raw_file
push edi
call fcn.10003e90
mov ecx, dword [ebp - 0x100]
add esp, 0x18
mov eax, dword [ecx]
push edi
call dword [eax + 0x14]
lea ecx, [ebp - 0xfc]
call fcn.10003f50
mov esi, 0xfffffff5
jmp 0x1000b8f4
lea eax, [ebp - 0x104]
push eax
lea ecx, [ebp - 0x108]
call fcn.10001640
mov esi, dword [ebp - 0x108]
mov byte [ebp - 4], 9
cmp dword [esi - 4], 1
jle 0x1000b3fa
push dword [esi - 0xc]
lea ecx, [ebp - 0x108]
call fcn.10001790
mov esi, dword [ebp - 0x108]
push esi
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push dword [esi - 8]
push esi
call fcn.10073a2b
add esp, 8
test eax, eax
js 0x1000b98c
cmp eax, dword [esi - 8]
jg 0x1000b98c
xor ecx, ecx
mov dword [esi - 0xc], eax
push ecx
push esi
mov word [esi + eax*2], cx
push dword [ebp - 0x104]
call fcn.10063910
test eax, eax
jns 0x1000b4cc
call fcn.10054ac0
test eax, eax
je 0x1000b4b7
call fcn.10054ac0
mov ecx, eax
mov edx, dword [eax]
mov eax, dword [edx + 4]
call eax
test al, al
je 0x1000b4b7
mov esi, dword [edi + 8]
call fcn.10054ac0
lea ecx, [ebp - 0xfc]
mov dword [ebp - 0x100], eax
call fcn.10003290
mov edi, eax
push 0x100a3de8
push edi
mov byte [ebp - 4], 0xa
call fcn.10009210
test esi, esi
mov ecx, 0x100a3c54
cmovne ecx, esi
push ecx
push edi
call fcn.10009210
push str._:_extract_file
push edi
call fcn.10003e90
mov ecx, dword [ebp - 0x100]
add esp, 0x18
mov eax, dword [ecx]
push edi
call dword [eax + 0x14]
lea ecx, [ebp - 0xfc]
call fcn.10003f50
lea ecx, [ebp - 0x108]
mov esi, 0xfffffff4
call fcn.10001a80
jmp 0x1000b8f4
push dword [ebp - 0x118]
call fcn.1000df90
add esp, 4
push 1
push dword [ebp - 0x104]
test eax, eax
je 0x1000b582
call fcn.1000a950
add esp, 8
call fcn.10054ac0
test eax, eax
je 0x1000b56d
call fcn.10054ac0
mov ecx, eax
mov edx, dword [eax]
mov eax, dword [edx + 4]
call eax
test al, al
je 0x1000b56d
mov esi, dword [edi + 8]
call fcn.10054ac0
lea ecx, [ebp - 0xfc]
mov dword [ebp - 0x100], eax
call fcn.10003290
mov edi, eax
push 0x100a3de8
push edi
mov byte [ebp - 4], 0xb
call fcn.10009210
test esi, esi
mov ecx, 0x100a3c54
cmovne ecx, esi
push ecx
push edi
call fcn.10009210
push str._:_user_cancel
push edi
call fcn.10003e90
mov ecx, dword [ebp - 0x100]
add esp, 0x18
mov eax, dword [ecx]
push edi
call dword [eax + 0x14]
lea ecx, [ebp - 0xfc]
call fcn.10003f50
lea ecx, [ebp - 0x108]
mov esi, 0xfffffff3
call fcn.10001a80
jmp 0x1000b8f4
call fcn.1000a950
add esp, 8
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x108]
call fcn.10001a80
mov eax, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push dword [edi + 0x10]
call eax
test eax, eax
jne 0x1000b630
call fcn.10054ac0
test eax, eax
je 0x1000b626
call fcn.10054ac0
mov ecx, eax
mov edx, dword [eax]
mov eax, dword [edx + 4]
call eax
test al, al
je 0x1000b626
mov esi, dword [edi + 8]
call fcn.10054ac0
lea ecx, [ebp - 0xfc]
mov dword [ebp - 0x100], eax
call fcn.10003290
mov edi, eax
push 0x100a3de8
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._:_file_not_found
push edi
call fcn.10003e90
mov ecx, dword [ebp - 0x100]
add esp, 0x18
mov eax, dword [ecx]
push edi
call dword [eax + 0x14]
lea ecx, [ebp - 0xfc]
call fcn.10003f50
mov esi, 0xfffffffc
jmp 0x1000b8f4
lea eax, [ebp - 0x20]
xorps xmm0, xmm0
push eax
push dword [edi + 0x10]
movups xmmword [ebp - 0x20], xmm0
call fcn.10009600
add esp, 8
test eax, eax
jne 0x1000b6d3
call fcn.10054ac0
test eax, eax
je 0x1000b6c9
call fcn.10054ac0
mov ecx, eax
mov edx, dword [eax]
mov eax, dword [edx + 4]
call eax
test al, al
je 0x1000b6c9
mov esi, dword [edi + 8]
call fcn.10054ac0
lea ecx, [ebp - 0xfc]
mov dword [ebp - 0x100], eax
call fcn.10003290
mov edi, eax
push 0x100a3de8
push edi
mov byte [ebp - 4], 0xd
call fcn.10009210
test esi, esi
mov ecx, 0x100a3c54
cmovne ecx, esi
push ecx
push edi
call fcn.10009210
push str._:_calc_md5
push edi
call fcn.10003e90
mov ecx, dword [ebp - 0x100]
add esp, 0x18
mov eax, dword [ecx]
push edi
call dword [eax + 0x14]
lea ecx, [ebp - 0xfc]
call fcn.10003f50
mov esi, 0xfffffffb
jmp 0x1000b8f4
push 0x42
lea eax, [ebp - 0x64]
push 0
push eax
call fcn.1006c590
push 0x21
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.10009590
add esp, 0x18
test eax, eax
jne 0x1000b77f
call fcn.10054ac0
test eax, eax
je 0x1000b775
call fcn.10054ac0
mov ecx, eax
mov edx, dword [eax]
mov eax, dword [edx + 4]
call eax
test al, al
je 0x1000b775
mov esi, dword [edi + 8]
call fcn.10054ac0
lea ecx, [ebp - 0xfc]
mov dword [ebp - 0x100], eax
call fcn.10003290
mov edi, eax
push 0x100a3de8
push edi
mov byte [ebp - 4], 0xe
call fcn.10009210
test esi, esi
mov ecx, 0x100a3c54
cmovne ecx, esi
push ecx
push edi
call fcn.10009210
push 0x100a3ec8
push edi
call fcn.10003e90
mov ecx, dword [ebp - 0x100]
add esp, 0x18
mov eax, dword [ecx]
push edi
call dword [eax + 0x14]
lea ecx, [ebp - 0xfc]
call fcn.10003f50
mov esi, 0xfffffffa
jmp 0x1000b8f4
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 0x1000b790
sub edx, esi
lea eax, [ebp - 0x64]
sar edx, 1
push edx
push eax
call fcn.10001950
call fcn.10054ac0
test eax, eax
je 0x1000b82e
call fcn.10054ac0
mov ecx, eax
mov edx, dword [eax]
mov eax, dword [edx + 4]
call eax
test al, al
je 0x1000b82e
mov esi, dword [edi + 8]
call fcn.10054ac0
lea ecx, [ebp - 0xfc]
mov dword [ebp - 0x100], eax
call fcn.10003290
mov edi, eax
push str.ok_Download_
push edi
mov byte [ebp - 4], 0xf
call fcn.10009210
test esi, esi
mov ecx, 0x100a3c54
cmovne ecx, esi
push ecx
push edi
call fcn.10009210
push str._:_md5
push edi
call fcn.10003e90
lea eax, [ebp - 0x64]
push eax
push edi
call fcn.10009210
mov ecx, dword [ebp - 0x100]
add esp, 0x20
mov eax, dword [ecx]
push edi
call dword [eax + 0x14]
lea ecx, [ebp - 0xfc]
call fcn.10003f50
xor esi, esi
jmp 0x1000b8f4
mov esi, dword [ebp - 0x110]
mov byte [ebp - 4], 1
test esi, esi
je 0x1000b864
or eax, 0xffffffff
lock xadd dword [esi + 4], eax
jne 0x1000b864
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
or eax, 0xffffffff
lock xadd dword [esi + 8], eax
jne 0x1000b864
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
push 1
push dword [ebp - 0x104]
call fcn.1000a950
add esp, 8
call fcn.10054ac0
test eax, eax
je 0x1000b8ef
call fcn.10054ac0
mov ecx, eax
mov edx, dword [eax]
mov eax, dword [edx + 4]
call eax
test al, al
je 0x1000b8ef
mov esi, dword [edi + 8]
call fcn.10054ac0
lea ecx, [ebp - 0xfc]
mov dword [ebp - 0x100], eax
call fcn.10003290
mov edi, eax
push 0x100a3de8
push edi
mov byte [ebp - 4], 6
call fcn.10009210
test esi, esi
mov ecx, 0x100a3c54
cmovne ecx, esi
push ecx
push edi
call fcn.10009210
push str._:_sync_download_file
push edi
call fcn.10003e90
mov ecx, dword [ebp - 0x100]
add esp, 0x18
mov eax, dword [ecx]
push edi
call dword [eax + 0x14]
lea ecx, [ebp - 0xfc]
call fcn.10003f50
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 0x1000b918
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 0x1000b93a
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.100612dc
mov esp, ebp
pop ebp
ret 4
push 0x80004005
call fcn.100015b0
push 0x80
lea eax, [ebp - 0xe4]
push eax
push dword [ebp - 0xe8]
call fcn.10009d80
add esp, 0xc
call fcn.1000ab40
push 0x80004005
call fcn.100015b0
push 0x80070057
call fcn.100015b0
int3