Function at 0x1000ec97
Capabilities:
Check if file exists
Reference http user-agent string

Disassembly:
push 0x3c
mov eax, 0x1003206e
call fcn.10023bc5
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x1000f196
mov ecx, edi
xor esi, esi
lea edx, [ecx + 2]
mov dword [ebp - 0x38], esi
mov ax, word [ecx]
add ecx, 2
cmp ax, si
jne 0x1000ecb8
sub ecx, edx
sar ecx, 1
je 0x1000f196
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1000f196
mov edx, method.CWebBrowser.4.virtual_20
mov ecx, 0x10067eb8
call fcn.1000fac8
mov edx, method.CWebBrowser.4.virtual_20
mov ecx, 0x10067ea4
call fcn.1000fac8
mov edx, 0x1000f591
mov ecx, 0x10067ea8
call fcn.1000fac8
mov edx, 0x1000f591
mov ecx, 0x10067eb0
call fcn.1000fac8
mov edx, 0x1000f597
mov ecx, 0x10067ea0
call fcn.1000fac8
mov edx, 0x1000f597
mov ecx, 0x10067e98
call fcn.1000fac8
mov eax, dword [ebp + 8]
mov dword [0x10067d30], eax
call sym.wbcom.dll_WebHost_DisableWarn
call sym.wbcom.dll_WebHost_DisableNavigationSounds
call sym.wbcom.dll_WebHost_SetRenderMode
call fcn.10019209
push 4
call fcn.1001fb29
mov ebx, eax
pop ecx
mov dword [ebp - 0x48], ebx
test ebx, ebx
je 0x1000ed67
mov dword [ebx], esi
jmp 0x1000ed6a
mov dword [ebp - 0x48], esi
push 0x98
call fcn.1001fb29
pop ecx
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], esi
test eax, eax
je 0x1000edb4
mov ecx, eax
mov dword [eax], esi
mov dword [eax + 4], esi
mov dword [eax + 0x14], esi
mov dword [eax + 0x1c], esi
mov dword [eax + 0x20], esi
mov dword [eax + 0x24], esi
mov dword [eax + 0x28], esi
mov dword [eax + 0x3c], esi
mov dword [eax + 0x44], esi
mov dword [eax + 0x64], esi
mov dword [eax + 0x70], esi
mov dword [eax + 0x90], esi
mov dword [eax + 0x94], esi
call fcn.10001134
mov esi, eax
or dword [ebp - 4], 0xffffffff
mov ecx, esi
call fcn.10001338
test eax, eax
jne 0x1000edd9
test esi, esi
je 0x1000edd5
mov ecx, esi
call fcn.10001185
push esi
call fcn.1001faa2
pop ecx
xor eax, eax
mov esi, eax
push dword [ebp + 0x10]
mov ecx, esi
push edi
call fcn.10001549
test esi, esi
je 0x1000edf0
mov eax, dword [0x10067e8c]
mov dword [eax + 0x10], esi
xor edi, edi
cmp dword [esi + 0x6c], edi
je 0x1000ef7f
mov eax, dword [esi + 0x70]
mov dword [ebp - 0x3c], eax
test eax, eax
je 0x1000f0a9
mov ecx, eax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, di
jne 0x1000ee0e
sub ecx, edx
sar ecx, 1
je 0x1000f0a9
cmp dword [esi + 0x74], edi
je 0x1000f0a9
mov edi, 0x800
push edi
call fcn.1001f85d
mov ebx, eax
pop ecx
mov dword [ebp - 0x14], ebx
test ebx, ebx
je 0x1000f0a7
mov dword [ebp - 0x18], edi
xor edi, edi
push edi
push edi
push edi
push 0x10000002
call dword [sym.imp.urlmon.dll_UrlMkSetSessionOption]
lea eax, [ebp - 0x18]
push eax
push ebx
push edi
call dword [sym.imp.urlmon.dll_ObtainUserAgentString]
test eax, eax
jne 0x1000ef73
mov ecx, ebx
call fcn.1001a807
mov edi, eax
mov dword [ebp - 0x40], edi
test edi, edi
je 0x1000ef71
push edi
call fcn.1001b74a
xor edx, edx
mov dword [ebp - 0x44], eax
mov ebx, edx
test eax, eax
je 0x1000eea5
mov ebx, eax
lea ecx, [ebx + 2]
mov ax, word [ebx]
add ebx, 2
cmp ax, dx
jne 0x1000ee96
sub ebx, ecx
sar ebx, 1
mov ecx, edi
xor edi, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, di
jne 0x1000eeac
sub ecx, edx
mov edx, dword [ebp - 0x3c]
sar ecx, 1
lea edi, [edx + 2]
mov ax, word [edx]
add edx, 2
cmp ax, word [ebp - 0x38]
jne 0x1000eec1
sub edx, edi
sar edx, 1
lea eax, [ecx + 5]
add eax, edx
add eax, ebx
mov dword [ebp - 0x38], eax
add eax, eax
push eax
call fcn.1001f85d
mov edi, eax
pop ecx
test edi, edi
je 0x1000ef57
push dword [ebp - 0x40]
push dword [ebp - 0x38]
push edi
call fcn.1001faa7
push 0x29
push edi
call fcn.10021355
add esp, 0x14
test eax, eax
je 0x1000ef0a
xor ecx, ecx
mov word [eax], cx
test ebx, ebx
mov ebx, dword [ebp - 0x38]
jle 0x1000ef1e
push dword [ebp - 0x44]
push ebx
push edi
call fcn.10021692
add esp, 0xc
push 0x1003b8ac
push ebx
push edi
call fcn.10021692
push dword [ebp - 0x3c]
push ebx
push edi
call fcn.10021692
push 0x1003b8b4
push ebx
push edi
call fcn.10021692
push edi
push 0x824
push dword [esi + 0x70]
call fcn.1001faa7
push edi
call fcn.1001f825
add esp, 0x34
mov eax, dword [ebp - 0x44]
test eax, eax
je 0x1000ef65
push eax
call fcn.1001f825
pop ecx
push dword [ebp - 0x40]
call fcn.1001f825
mov ebx, dword [ebp - 0x14]
pop ecx
xor edi, edi
push ebx
call fcn.1001f825
pop ecx
jmp 0x1000f0a9
mov edi, 0x800
push edi
call fcn.1001f85d
mov ebx, eax
pop ecx
mov dword [ebp - 0x44], ebx
test ebx, ebx
je 0x1000f0a7
mov dword [ebp - 0x14], edi
xor edi, edi
push edi
push edi
push edi
push 0x10000002
call dword [sym.imp.urlmon.dll_UrlMkSetSessionOption]
lea eax, [ebp - 0x14]
push eax
push ebx
push edi
call dword [sym.imp.urlmon.dll_ObtainUserAgentString]
test eax, eax
jne 0x1000ef73
mov ecx, ebx
call fcn.1001a807
mov ebx, eax
mov dword [ebp - 0x40], ebx
test ebx, ebx
je 0x1000f09f
push ebx
call fcn.1001b74a
mov dword [ebp - 0x3c], eax
test eax, eax
je 0x1000eff2
mov edi, eax
xor edx, edx
lea ecx, [edi + 2]
mov ax, word [edi]
add edi, 2
cmp ax, dx
jne 0x1000efe3
sub edi, ecx
sar edi, 1
mov ecx, ebx
xor ebx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x1000eff9
sub ecx, edx
sar ecx, 1
lea eax, [ecx + 3]
add eax, edi
mov dword [ebp - 0x38], eax
add eax, eax
push eax
call fcn.1001f85d
mov ebx, eax
pop ecx
test ebx, ebx
je 0x1000f086
push dword [ebp - 0x40]
push dword [ebp - 0x38]
push ebx
call fcn.1001faa7
push 0x29
push ebx
call fcn.10021355
add esp, 0x14
test eax, eax
je 0x1000f03f
xor ecx, ecx
mov word [eax], cx
test edi, edi
mov edi, dword [ebp - 0x3c]
jle 0x1000f053
push edi
push dword [ebp - 0x38]
push ebx
call fcn.10021692
add esp, 0xc
push 0x1003b8b4
push dword [ebp - 0x38]
push ebx
call fcn.10021692
push ebx
push 0x824
push dword [esi + 0x70]
call fcn.1001faa7
xor eax, eax
push ebx
mov dword [esi + 0x6c], 1
mov dword [esi + 0x74], eax
call fcn.1001f825
add esp, 0x1c
jmp 0x1000f089
mov edi, dword [ebp - 0x3c]
test edi, edi
je 0x1000f094
push edi
call fcn.1001f825
pop ecx
push dword [ebp - 0x40]
call fcn.1001f825
pop ecx
xor edi, edi
mov ebx, dword [ebp - 0x44]
jmp 0x1000ef73
xor edi, edi
push edi
push edi
call dword [sym.imp.USER32.dll_KillTimer]
mov ebx, dword [ebp - 0x48]
mov ecx, ebx
call fcn.1000f445
mov ecx, dword [esi + 8]
imul ecx, ecx, 0x3e8
push section..text
push ecx
push 0x3ea
push eax
mov dword [0x10067d38], eax
call dword [sym.imp.USER32.dll_SetTimer]
mov esi, dword [sym.imp.USER32.dll_GetMessageW]
jmp 0x1000f114
cmp dword [0x10067d34], 0
jne 0x1000f121
call dword [sym.imp.USER32.dll_GetFocus]
lea ecx, [ebp - 0x34]
push ecx
push eax
call sym.wbcom.dll_WebHost_TranslateAccToWebBrowser
test eax, eax
jne 0x1000f114
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
push edi
push edi
push edi
lea eax, [ebp - 0x34]
push eax
call esi
test eax, eax
jne 0x1000f0e3
mov esi, dword [0x10067e88]
test esi, esi
je 0x1000f14e
push dword [esi]
mov edi, dword [esi + 4]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x1000f141
push dword [esi]
call sym.wbcom.dll_WebHost_CloseBrowser
push esi
call fcn.1001f825
pop ecx
mov esi, edi
test edi, edi
jne 0x1000f12b
test ebx, ebx
je 0x1000f159
push ebx
call fcn.1001faa2
pop ecx
mov ecx, dword [0x10067e8c]
test ecx, ecx
je 0x1000f16f
push ecx
call fcn.1000ec5d
mov dword [0x10067e8c], edi
mov eax, dword [0x10067e90]
test eax, eax
je 0x1000f185
push eax
call fcn.1001faa2
pop ecx
mov dword [0x10067e90], edi
push dword [0x10067d38]
call sym.wbcom.dll_WebHost_CloseBrowser
call dword [sym.imp.ole32.dll_OleUninitialize]
call fcn.10023b83
ret 0xc