Function at 0x100088cd
Capabilities:
Check if file exists

Disassembly:
push ebp
lea ebp, [esp - 0x1050]
mov eax, 0x1050
call fcn.10102790
push 0xffffffffffffffff
push 0x10133dee
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x1019c8c8]
xor eax, ebp
mov dword [ebp + 0x104c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x1058]
push dword [eax]
lea ecx, [ebp - 0x10]
call fcn.1000587e
mov eax, dword [0x1019a028]
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x1c], 0x50
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x10]
cmp dword [eax - 8], ebx
mov byte [ebp - 4], 1
mov dword [ebp - 0x20], ebx
jne 0x10008979
xor esi, esi
lea ecx, [ebp - 0x24]
call fcn.100015d9
lea ecx, [ebp - 0x10]
call fcn.100015d9
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x104c]
xor ecx, ebp
call fcn.101018a3
add ebp, 0x1050
leave
ret 4
mov esi, 0x1019dfc4
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x14]
call fcn.1000584b
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.10001ada
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_CharLowerW]
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x30]
mov edi, 0x1019dfb8
push eax
mov ecx, edi
call fcn.1000524f
mov ecx, dword [eax]
mov eax, dword [eax + 4]
push edi
push dword [0x1019dfbc]
mov dword [ebp - 0x38], ecx
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x34], eax
call fcn.10003fed
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x38]
call fcn.10003052
test al, al
jne 0x10008a2b
lea ecx, [ebp - 0x38]
call fcn.10003af5
cmp dword [eax + 4], 0x14
jne 0x10008a09
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea ecx, [ebp - 0x14]
call fcn.100015d9
xor esi, esi
inc esi
jmp 0x10008942
lea ecx, [ebp - 0x38]
call fcn.10003af5
cmp dword [eax + 4], 0x28
jne 0x10008a2b
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea ecx, [ebp - 0x14]
call fcn.100015d9
jmp 0x10008940
mov ebx, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push esi
call ebx
and word [ebp], 0
push 0x1048
lea eax, [ebp + 2]
push 0
push eax
call fcn.101027c0
add esp, 0xc
lea eax, [ebp - 0x1c]
push eax
push 0
push dword [ebp - 0x10]
mov dword [ebp - 0x48], 0x824
call dword [sym.imp.WININET.dll_GetUrlCacheEntryInfoW]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x10008af7
push 0
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.WININET.dll_InternetCanonicalizeUrlW]
test eax, eax
je 0x10008af7
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x10]
call fcn.10001cbf
and dword [ebp - 0x1c], 0
lea eax, [ebp - 0x1c]
push eax
push 0
push dword [ebp - 0x10]
call dword [sym.imp.WININET.dll_GetUrlCacheEntryInfoW]
jmp 0x10008af7
push dword [ebp - 0x18]
call fcn.10101095
push dword [ebp - 0x1c]
call fcn.10100af4
test eax, eax
pop ecx
pop ecx
mov dword [ebp - 0x18], eax
je 0x10008b02
push dword [ebp - 0x1c]
push 0
push eax
call fcn.101027c0
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x18]
add esp, 0xc
mov dword [eax], ecx
lea ecx, [ebp - 0x1c]
push ecx
push eax
push dword [ebp - 0x10]
call dword [sym.imp.WININET.dll_GetUrlCacheEntryInfoW]
test eax, eax
je 0x10008af7
mov eax, dword [ebp - 0x18]
cmp dword [eax + 8], 0
jne 0x10008b8b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x10008aa9
push 0
lea ecx, [ebp - 0x10]
call fcn.10001a82
push eax
call fcn.100dd2fb
test eax, eax
pop ecx
je 0x10008b1e
mov dword [ebp - 0x20], 1
lea ecx, [ebp - 0x10]
call fcn.10001ada
push dword [ebp - 0x10]
call dword [sym.imp.USER32.dll_CharLowerW]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [ebp - 0x10]
push eax
mov ecx, edi
call fcn.100080c5
push esi
mov dword [eax], 0x28
call ebx
cmp dword [ebp - 0x20], 0
je 0x10008a1e
push 0
lea ecx, [ebp - 0x24]
call fcn.10001a82
push eax
lea ecx, [ebp - 0x44]
call fcn.1000328b
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 3
call fcn.10002594
test eax, eax
mov dword [ebp - 0x2c], eax
ja 0x10008b9b
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 2
call fcn.100025db
jmp 0x10008a1e
push dword [eax + 8]
lea ecx, [ebp - 0x24]
call fcn.10001cbf
jmp 0x10008b17
xor ecx, ecx
push 0x10
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.10100af4
pop ecx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x34], eax
test eax, eax
mov byte [ebp - 4], 4
jne 0x10008bc7
push eax
call fcn.10100bb6
pop ecx
jmp 0x10008b7a
push dword [ebp - 0x2c]
lea ecx, [ebp - 0x44]
push eax
call fcn.100025b5
test eax, eax
jne 0x10008bdc
push dword [ebp - 0x18]
jmp 0x10008bbf
and dword [ebp - 0x28], 0
cmp dword [ebp - 0x2c], 0
jbe 0x10008bd7
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x20], eax
push dword [ebp - 0x20]
lea ecx, [ebp - 0x44]
call fcn.1000256f
cmp eax, 1
ja 0x10008c0d
inc dword [ebp - 0x28]
mov eax, dword [ebp - 0x28]
add dword [ebp - 0x20], 0x10
cmp eax, dword [ebp - 0x2c]
jb 0x10008bec
jmp 0x10008bd7
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [ebp - 0x10]
push eax
mov ecx, edi
call fcn.100080c5
push esi
mov dword [eax], 0x14
call ebx
push dword [ebp - 0x18]
call fcn.10100bb6
pop ecx
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 2
call fcn.100025db
jmp 0x100089f9