Function at 0x1008e995
Capabilities:
Check if file exists

Disassembly:
push ebp
lea ebp, [esp - 0x1450]
mov eax, 0x1450
call fcn.10102790
push 0xffffffffffffffff
push 0x1014216c
mov eax, dword fs:[0]
push eax
sub esp, 0xac
mov eax, dword [0x1019c8c8]
xor eax, ebp
mov dword [ebp + 0x144c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 0x1464]
mov eax, dword [ebp + 0x1460]
mov esi, ecx
mov ecx, dword [ebp + 0x145c]
movzx edx, cx
xor ebx, ebx
cmp cx, 0xea60
mov dword [ebp - 0x20], edx
mov dword [edi], ebx
jne 0x1008eb3d
mov dword [ebp - 0x14], ebx
lea eax, [ebp - 0x14]
push eax
mov ecx, 0x1019e6e0
mov dword [ebp - 4], ebx
call fcn.100adc3c
mov eax, dword [ebp - 0x14]
cmp eax, ebx
je 0x1008ef10
lea edx, [ebp - 0x2c]
push edx
mov dword [ebp - 0x2c], ebx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x88]
cmp dword [ebp - 0x2c], 0x32
jle 0x1008ea64
push 0x10
push ecx
mov eax, esp
mov dword [ebp - 0x38], esp
push ecx
mov dword [eax], 0x90
mov eax, esp
mov dword [ebp - 0x38], esp
mov dword [eax], 0xf9
call dword [sym.imp.USER32.dll_GetActiveWindow]
push eax
call fcn.10018835
add esp, 0x10
mov eax, dword [ebp - 0x14]
jmp 0x1008ef02
lea eax, [ebp - 0x30]
push eax
mov ecx, esi
call fcn.1008bea5
mov ecx, dword [ebp - 0x30]
cmp ecx, ebx
je 0x1008eb27
mov eax, dword [0x1019a028]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x1c]
push eax
push ecx
lea eax, [ebp - 0x28]
push eax
mov ecx, esi
mov byte [ebp - 4], 3
call fcn.1008e2d2
mov esi, dword [ebp - 0x28]
cmp esi, ebx
mov byte [ebp - 4], 4
je 0x1008eb14
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x98]
call fcn.1004fafc
push ebx
mov byte [ebp - 4], 5
call dword [sym.imp.USER32.dll_GetActiveWindow]
push eax
lea ecx, [ebp - 0x98]
call fcn.1008c94f
lea ecx, [ebp - 0x98]
mov byte [ebp - 4], 4
call fcn.1004fa14
mov eax, dword [esi]
push esi
mov byte [ebp - 4], 3
call dword [eax + 8]
lea ecx, [ebp - 0x10]
call fcn.100015d9
lea ecx, [ebp - 0x1c]
call fcn.100015d9
mov eax, dword [ebp - 0x30]
mov byte [ebp - 4], bl
cmp eax, ebx
je 0x1008ea5c
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x1008ea5c
lea ecx, [ebp - 0x10]
call fcn.100015d9
lea ecx, [ebp - 0x1c]
call fcn.100015d9
mov ecx, dword [ebp - 0x30]
cmp ecx, ebx
mov byte [ebp - 4], bl
je 0x1008ea5c
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
jmp 0x1008ea5c
cmp cx, 0xea61
jne 0x1008edb8
push 0x1048
lea eax, [ebp + 2]
push ebx
push eax
mov word [ebp], bx
call fcn.101027c0
mov edi, dword [sym.imp.WININET.dll_GetUrlCacheEntryInfoW]
add esp, 0xc
lea ecx, [ebp - 0x1c]
push ecx
add esi, 0xc8
mov eax, dword [esi]
push ebx
push eax
mov dword [ebp - 0x30], 0x824
mov dword [ebp - 0x1c], ebx
call edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x1008ebb7
mov eax, dword [esi]
push ebx
lea ecx, [ebp - 0x30]
push ecx
lea ecx, [ebp]
push ecx
push eax
call dword [sym.imp.WININET.dll_InternetCanonicalizeUrlW]
test eax, eax
je 0x1008ebb7
lea eax, [ebp]
push eax
mov ecx, esi
call fcn.10001cbf
mov eax, dword [esi]
lea ecx, [ebp - 0x1c]
push ecx
push ebx
push eax
mov dword [ebp - 0x1c], ebx
call edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x1008ed19
push dword [ebp - 0x1c]
call fcn.10100af4
cmp eax, ebx
pop ecx
mov dword [ebp - 0x18], eax
je 0x1008ef10
mov esi, dword [esi]
lea ecx, [ebp - 0x1c]
push ecx
push eax
push esi
call edi
test eax, eax
je 0x1008ed0b
mov dword [ebp - 0x14], ebx
push ebx
lea eax, [ebp - 0x14]
push eax
push 0x1015413c
push ebx
mov dword [ebp - 4], 6
call fcn.100da62b
add esp, 0x10
cmp eax, ebx
jne 0x1008ec58
mov eax, dword [ebp - 0x14]
cmp eax, ebx
je 0x1008ecfd
mov ecx, dword [eax]
lea edx, [ebp - 0x28]
push edx
push eax
call dword [ecx + 0x20]
cmp dword [ebp - 0x28], ebx
jne 0x1008ec58
lea ecx, [ebp - 0xb8]
call fcn.1001c1ac
push ebx
mov byte [ebp - 4], 7
call dword [sym.imp.USER32.dll_GetActiveWindow]
push eax
lea ecx, [ebp - 0xb4]
call fcn.1001c46b
lea ecx, [ebp - 0xb8]
mov byte [ebp - 4], 6
call fcn.1001c38e
mov eax, dword [ebp - 0x14]
cmp eax, ebx
je 0x1008ecfd
mov ecx, dword [eax]
lea edx, [ebp - 0x20]
push edx
push eax
call dword [ecx + 0x20]
cmp dword [ebp - 0x20], ebx
je 0x1008ecfa
lea eax, [ebp - 0x2c]
push eax
mov dword [ebp - 0x2c], ebx
call fcn.1005d061
pop ecx
mov ecx, dword [ebp - 0x2c]
cmp ecx, ebx
jne 0x1008ec98
push dword [ebp - 0x18]
call fcn.10101095
pop ecx
jmp 0x1008ea5c
mov dword [ebp - 0x10], ebx
lea eax, [ebp - 0x10]
push eax
mov byte [ebp - 4], 8
call fcn.100addc2
cmp dword [ebp - 0x10], ebx
jne 0x1008ecc2
push dword [ebp - 0x18]
call fcn.10101095
mov eax, dword [ebp - 0x10]
pop ecx
mov byte [ebp - 4], 6
jmp 0x1008eb01
mov eax, dword [ebp - 0x18]
push dword [eax + 8]
lea ecx, [ebp - 0x24]
call fcn.10003abd
mov eax, dword [ebp - 0x10]
push dword [ebp - 0x24]
mov ecx, dword [eax]
push eax
mov byte [ebp - 4], 9
call dword [ecx + 0x24]
push dword [ebp - 0x24]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [ebp - 0x10]
cmp eax, ebx
mov byte [ebp - 4], 6
je 0x1008ecfa
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x14]
or dword [ebp - 4], 0xffffffff
cmp eax, ebx
je 0x1008ed0b
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push dword [ebp - 0x18]
call fcn.10101095
pop ecx
jmp 0x1008ef10
push 0x1fe
lea eax, [ebp + 0x124e]
push ebx
push eax
mov word [ebp + 0x124c], bx
call fcn.101027c0
mov esi, dword [sym.imp.USER32.dll_LoadStringW]
add esp, 0xc
mov edi, 0x100
push edi
lea eax, [ebp + 0x124c]
push eax
push 0x85
push dword [0x1019fa94]
call esi
push 0x1fe
lea eax, [ebp + 0x104e]
push ebx
push eax
mov word [ebp + 0x104c], bx
call fcn.101027c0
add esp, 0xc
push edi
lea eax, [ebp + 0x104c]
push eax
push 0x86
push dword [0x1019fa94]
call esi
push 0x40
push ecx
mov eax, esp
lea ecx, [ebp + 0x104c]
mov dword [ebp - 0x20], esp
push ecx
mov dword [eax], ecx
mov eax, esp
lea ecx, [ebp + 0x124c]
mov dword [ebp - 0x20], esp
mov dword [eax], ecx
call dword [sym.imp.USER32.dll_GetActiveWindow]
push eax
call fcn.10018835
add esp, 0x10
jmp 0x1008ef10
cmp cx, 0xea62
jne 0x1008ede2
lea eax, [ebp - 0x20]
push eax
call fcn.100e3b13
pop ecx
push ebx
push 0x555
push 0x553
push dword [ebp - 0x20]
call dword [sym.imp.USER32.dll_PostMessageW]
jmp 0x1008ef10
cmp eax, ebx
jne 0x1008ef10
lea eax, [ebp - 0x28]
push eax
mov dword [ebp - 0x28], ebx
call fcn.1005d061
cmp dword [ebp - 0x28], ebx
pop ecx
je 0x1008ef10
lea eax, [ebp - 0x20]
push eax
lea ecx, [esi + 0x9c]
call fcn.1008bf70
mov dword [ebp - 0x18], ebx
cmp eax, 0xffffffff
mov dword [ebp - 4], 0xa
je 0x1008eeff
mov dword [edi], 1
lea edi, [esi + 0x18]
mov ecx, edi
mov dword [ebp - 0x10], ebx
call fcn.1000a782
test eax, eax
jbe 0x1008eeff
push dword [ebp - 0x10]
mov ecx, edi
call fcn.1000a795
push dword [eax]
lea ecx, [ebp - 0x18]
call fcn.1000a8ab
cmp dword [ebp - 0x18], ebx
je 0x1008ee97
push dword [ebp - 0x18]
lea ecx, [ebp - 0x24]
call fcn.1000b131
mov eax, dword [ebp - 0x24]
cmp eax, ebx
mov byte [ebp - 4], 0xb
je 0x1008eeff
mov ecx, dword [eax]
lea edx, [ebp - 0x38]
push edx
push eax
call dword [ecx + 0xc]
movzx eax, word [ebp + 0x145c]
cmp dword [ebp - 0x38], eax
je 0x1008eea8
mov eax, dword [ebp - 0x24]
cmp eax, ebx
mov byte [ebp - 4], 0xa
je 0x1008ee97
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
inc dword [ebp - 0x10]
mov ecx, edi
call fcn.1000a782
cmp dword [ebp - 0x10], eax
jb 0x1008ee3d
jmp 0x1008eeff
push dword [ebp - 0x18]
lea ecx, [ebp - 0x34]
call fcn.1003bd5f
cmp dword [ebp - 0x34], ebx
mov byte [ebp - 4], 0xc
je 0x1008eedd
push dword [esi + 0xa8]
call fcn.100d8904
mov eax, dword [ebp - 0x34]
pop ecx
mov ecx, dword [eax]
push ebx
push dword [ebp + 0x145c]
push 0x556
push eax
call dword [ecx + 0x14]
mov eax, dword [ebp - 0x34]
cmp eax, ebx
mov byte [ebp - 4], 0xb
je 0x1008eeee
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x24]
cmp eax, ebx
mov byte [ebp - 4], 0xa
je 0x1008eeff
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x18]
or dword [ebp - 4], 0xffffffff
cmp eax, ebx
je 0x1008ef10
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x144c]
xor ecx, ebp
call fcn.101018a3
add ebp, 0x1450
leave
ret 0x10