Function at 0x10007370
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100b52b0
mov eax, dword fs:[0]
push eax
sub esp, 0x228
mov eax, dword [0x100f6458]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 0x208
lea eax, [ebp - 0x218]
xor bl, bl
push 0
push eax
call fcn.10089510
add esp, 0xc
call fcn.1002f780
push 0x104
lea ecx, [ebp - 0x218]
push ecx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov esi, dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x218]
push eax
call esi
lea eax, [ebp - 0x218]
push eax
call esi
push str.Utilsjs_basic.dll
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x218]
xor esi, esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x100075d0
lea eax, [ebp - 0x218]
push eax
call fcn.1003e4a0
add esp, 4
test eax, eax
je 0x100075d0
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
je 0x1000744e
push str.GetWebWindowFactory
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1000744e
call eax
mov esi, eax
test esi, esi
je 0x100075d0
mov dword [edi + 0x2c], esi
mov eax, dword [esi]
push esi
call dword [eax]
mov ecx, dword [0x100fbe4c]
test ecx, ecx
jne 0x100074df
push 0x100f6048
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x100fbe4c], 0
jne 0x100074ce
push 0x1c0
call fcn.10065f32
mov esi, eax
add esp, 4
mov dword [ebp - 0x21c], esi
mov dword [ebp - 4], 0
test esi, esi
je 0x100074b5
push 0x1c0
push 0
push esi
call fcn.10089510
add esp, 0xc
mov ecx, esi
call fcn.10003fd0
jmp 0x100074b7
xor eax, eax
mov dword [ebp - 4], 0xffffffff
xor edx, edx
lea ecx, [ebp - 0x21c]
lock or dword [ecx], edx
mov dword [0x100fbe4c], eax
push 0x100f6048
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [0x100fbe4c]
lea eax, [ebp - 0x234]
push eax
call fcn.10011420
mov dword [ebp - 4], 1
mov ecx, dword [edi + 0x2c]
test ecx, ecx
je 0x100075be
mov eax, dword [ecx]
push 0
push 0x100f816c
push 0x100f8148
push 0
push edi
call dword [eax + 4]
push eax
call fcn.10088918
mov ecx, eax
add esp, 0x14
mov dword [edi + 0x30], ecx
test ecx, ecx
je 0x100075be
push 4
lea edx, [ebp - 0x21c]
mov dword [ebp - 0x21c], 1
mov eax, dword [ecx]
push edx
push 1
push ecx
call dword [eax + 0x24]
mov edx, dword [edi + 0x30]
cmp dword [ebp - 0x220], 0x10
mov eax, dword [edx]
mov ecx, dword [eax + 0x20]
lea eax, [ebp - 0x234]
cmovae eax, dword [ebp - 0x234]
push eax
push edx
call ecx
mov bl, 1
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x220]
cmp edx, 0x10
jb 0x100075a1
mov ecx, dword [ebp - 0x234]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10007597
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100075ee
push edx
push ecx
call fcn.10065f62
add esp, 8
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x220], 0xf
mov byte [ebp - 0x234], 0
jmp 0x100075d0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x234]
call fcn.10005180
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100662e1
mov esp, ebp
pop ebp
ret
call fcn.1008c70a
int3