Function at 0x1002f420
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101c45c3
mov eax, dword fs:[0]
push eax
sub esp, 0x3ac
mov eax, dword [0x1022b584]
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 ebx, ecx
mov dword [ebp - 0x284], ebx
mov edi, dword [ebp + 8]
mov dword [ebp - 0x280], edi
cmp dword [edi + 0x10], 0
je 0x1002f9bb
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.1018d4b0
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
push dword [0x1022f158]
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
lea ecx, [ebp - 0x279]
call fcn.1002ecf0
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push dword [ebp - 0x284]
lea eax, [ebx + 0x20]
push eax
push 0x10225160
push 0x1021c028
push 0x1022f5a4
call fcn.10007ab0
movzx esi, ax
add esp, 0x14
mov eax, dword [ebx + 0x14]
mov dword [ebp - 0x288], esi
test eax, eax
jne 0x1002f683
call fcn.100a229d
mov dword [ebx + 0x14], eax
test eax, eax
jne 0x1002f683
push 0xe
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp dword [ebx + 4], 0
je 0x1002f9bb
lea eax, [ebp - 0x218]
xor esi, esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1002f8bb
lea eax, [ebp - 0x218]
push eax
call fcn.1015b3b0
add esp, 4
test eax, eax
je 0x1002f8bb
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
je 0x1002f572
push str.GetWebWindowFactory
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1002f572
call eax
mov esi, eax
test esi, esi
je 0x1002f8bb
mov dword [ebx + 0x30], esi
call fcn.100a97a0
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x1002f78b
push 0xd
push str.cef_window.cc
lea ecx, [ebp - 0x248]
mov dword [ebp - 0x238], eax
mov dword [ebp - 0x234], 0xf
mov byte [ebp - 0x248], al
call fcn.1000cf00
push 3
push 0x101d1fdc
lea ecx, [ebp - 0x230]
mov dword [ebp - 4], 6
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 0xf
mov byte [ebp - 0x230], 0
call fcn.1000cf00
mov byte [ebp - 4], 7
call fcn.100a97a0
mov edi, eax
lea ecx, [ebp - 0x320]
push 0x6b
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x230]
push eax
call fcn.10007f90
mov esi, eax
push str._web_window_factory___Init__
push esi
mov byte [ebp - 4], 8
call fcn.10008dd0
mov eax, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [eax + 0x1c]
lea ecx, [ebp - 0x320]
call fcn.10008e90
mov edx, dword [ebp - 0x21c]
mov byte [ebp - 4], 6
cmp edx, 0x10
jb 0x1002f729
mov ecx, dword [ebp - 0x230]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1002f71f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1002f9db
jmp 0x1002f71f
push 0
push 0
push eax
call fcn.100a239f
test si, si
je 0x1002f515
lea esi, [ebx + 8]
test esi, esi
je 0x1002f9e0
test ebx, ebx
je 0x1002f9e0
mov dword [esi], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push 0x1021c02c
mov dword [esi + 4], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x1021c044]
mov dword [esi + 8], eax
push 0x1021c02c
mov dword [0x1021c044], esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [0x1021c058]
mov eax, dword [0x1021c060]
mov edx, dword [0x1021c054]
sub eax, ecx
push 0
push dword [0x1022f5a8]
push ebx
push 0xfffffffffffffffd
push eax
mov eax, dword [0x1021c05c]
sub eax, edx
push eax
mov eax, dword [ebp - 0x288]
push ecx
push edx
push 0x56000000
push 0
movzx eax, ax
push eax
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
jmp 0x1002f515
push edx
push ecx
call fcn.101799c0
add esp, 8
mov edx, dword [ebp - 0x234]
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 0xf
mov byte [ebp - 0x230], 0
mov dword [ebp - 4], 0xffffffff
cmp edx, 0x10
jb 0x1002f785
mov ecx, dword [ebp - 0x248]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1002f77b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1002f9ec
push edx
push ecx
call fcn.101799c0
add esp, 8
mov edi, dword [ebp - 0x280]
mov eax, dword [ebx + 0x30]
push eax
mov ecx, dword [eax]
call dword [ecx]
mov ecx, dword [ebx + 0x30]
lea eax, [ebx + 0x24]
mov edx, ebx
neg edx
mov esi, dword [ecx]
sbb edx, edx
and edx, eax
push edx
call dword [esi + 4]
mov ecx, eax
mov dword [ebx + 0x34], ecx
test ecx, ecx
jne 0x1002f89b
call fcn.100a97a0
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x1002f88f
push 0xd
push str.cef_window.cc
lea ecx, [ebp - 0x278]
mov dword [ebp - 0x268], eax
mov dword [ebp - 0x264], 0xf
mov byte [ebp - 0x278], al
call fcn.1000cf00
push 3
push 0x101d1fdc
lea ecx, [ebp - 0x260]
mov dword [ebp - 4], 9
mov dword [ebp - 0x250], 0
mov dword [ebp - 0x24c], 0xf
mov byte [ebp - 0x260], 0
call fcn.1000cf00
mov byte [ebp - 4], 0xa
call fcn.100a97a0
mov edi, eax
lea ecx, [ebp - 0x3b8]
push 0x6f
lea eax, [ebp - 0x278]
push eax
lea eax, [ebp - 0x260]
push eax
call fcn.10007f90
mov esi, eax
push str.create_webwindowptr_fail
push esi
mov byte [ebp - 4], 0xb
call fcn.10008dd0
mov eax, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [eax + 0x1c]
lea ecx, [ebp - 0x3b8]
call fcn.10008e90
lea ecx, [ebp - 0x260]
call fcn.10007310
lea ecx, [ebp - 0x278]
call fcn.10007310
mov dword [ebx + 0x7c], 4
jmp 0x1002f9bb
mov dword [ebx + 0x7c], 5
cmp dword [edi + 0x14], 0x10
jb 0x1002f8aa
mov edi, dword [edi]
mov eax, dword [ecx]
push edi
push ecx
call dword [eax + 0x20]
mov eax, 1
jmp 0x1002f9bd
call fcn.100a97a0
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x1002f9b4
lea ecx, [ebp - 0x279]
call fcn.1002ec10
push 0xd
push str.cef_window.cc
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x220], 0
mov ebx, eax
mov dword [ebp - 0x21c], 0xf
mov byte [ebp - 0x230], 0
call fcn.1000cf00
push 3
push 0x101d1fdc
lea ecx, [ebp - 0x248]
mov dword [ebp - 4], 0
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 0xf
mov byte [ebp - 0x248], 0
call fcn.1000cf00
mov byte [ebp - 4], 1
call fcn.100a97a0
mov edi, eax
lea ecx, [ebp - 0x320]
push 0x5f
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x248]
push eax
call fcn.10007f90
mov esi, eax
test ebx, ebx
mov byte [ebp - 4], 2
mov eax, 0x101d2100
cmovne eax, ebx
push eax
push esi
call fcn.1000fad0
mov eax, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [eax + 0x1c]
lea ecx, [ebp - 0x320]
call fcn.10008e90
lea ecx, [ebp - 0x248]
call fcn.10007310
lea ecx, [ebp - 0x230]
call fcn.10007310
mov ebx, dword [ebp - 0x284]
mov dword [ebx + 0x7c], 2
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 - 0x10]
xor ecx, ebp
call fcn.101799ce
mov esp, ebp
pop ebp
ret 4
call fcn.10190cce
push 1
push 0xc0000005
call fcn.1000c7d0
call fcn.10190cce
int3