Function at 0x10008c90
Capabilities:
Check if file exists
Get file attributes
Get file size
Get http document via iwebbrowser2
Load windows common language runtime
Read file on windows

Disassembly:
sub esp, 0x80
push ebx
mov ebx, dword [esp + 0x88]
push ebp
push esi
push edi
push 0
push 0
push 3
push 0
push 1
push SysReAllocString
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
test edi, edi
mov dword [esp + 0x58], 0
jbe 0x10008cdd
push edi
call fcn.10002e89
add esp, 4
mov dword [esp + 0x58], eax
mov ecx, dword [esp + 0x58]
push 0
lea eax, [esp + 0x50]
push eax
push edi
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 1
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
mov edx, dword [esi + 0x3c]
mov eax, dword [edx + esi + 0xe8]
mov edi, dword [eax + esi + 8]
mov ebp, dword [edi + esi + 0xc]
add edi, esi
xor eax, eax
lea ebx, [ebp + 2]
cmp ebx, eax
mov dword [esp + 0x50], eax
jbe 0x10008d47
xor ecx, ecx
mov eax, ebx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.10002e89
mov dword [esp + 0x54], eax
add esp, 4
mov eax, ebx
mov ecx, dword [esp + 0x50]
add eax, eax
push eax
push ecx
call fcn.1000cdf0
xor ebx, ebx
add esp, 8
xor eax, eax
cmp ebp, ebx
jbe 0x10008d75
nop
movzx dx, byte [edi + eax + 0x10]
mov ecx, dword [esp + 0x50]
mov word [ecx + eax*2], dx
add eax, 1
cmp eax, ebp
jb 0x10008d60
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push 0x10020fa4
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
push ebx
mov dword [esp + 0x4c], esi
call dword [sym.imp.ole32.dll_CoInitialize]
mov edi, eax
neg edi
sbb edi, edi
push 0x10020f90
add edi, 1
push esi
mov dword [esp + 0x48], edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
lea edx, [esp + 0x10]
push 4
push edx
mov esi, eax
call fcn.1000cdf0
mov ebp, dword [esp + 0x58]
add esp, 8
lea eax, [esp + 0x10]
push eax
push 0x10020388
push 0x10020378
push 5
push 0x10020f88
push ebp
call esi
test eax, eax
mov eax, dword [esp + 0x10]
jge 0x10008e21
cmp eax, ebx
je 0x10008df3
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x10], ebx
cmp ebp, ebx
je 0x10008e00
push ebp
call fcn.10002e75
add esp, 4
mov eax, dword [esp + 0x58]
cmp eax, ebx
je 0x10008e11
push eax
call fcn.10002e75
add esp, 4
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x80
ret 8
mov ecx, dword [eax]
mov edx, dword [ecx + 0x28]
push eax
call edx
test eax, eax
jge 0x10008e6f
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x10008e41
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x10], ebx
cmp ebp, ebx
je 0x10008e4e
push ebp
call fcn.10002e75
add esp, 4
mov eax, dword [esp + 0x58]
cmp eax, ebx
je 0x10008e11
push eax
call fcn.10002e75
add esp, 4
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x80
ret 8
lea eax, [esp + 0x24]
push 4
push eax
call fcn.1000cdf0
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
add esp, 8
lea edx, [esp + 0x24]
push edx
push eax
mov eax, dword [ecx + 0x48]
call eax
lea ecx, [esp + 0x14]
push 4
push ecx
call fcn.1000cdf0
mov eax, dword [esp + 0x2c]
mov edx, dword [eax]
mov edx, dword [edx]
add esp, 8
lea ecx, [esp + 0x14]
push ecx
push 0x10020398
push eax
call edx
push 0x1002c0d8
lea ecx, [esp + 0x20]
mov dword [esp + 0x20], ebx
call fcn.100035c0
mov ebp, dword [esp + 0x94]
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x2c]
push ebp
push ecx
call fcn.10012560
add esp, 8
push eax
lea edx, [esp + 0x34]
push edx
call fcn.10005a10
mov eax, dword [eax]
add esp, 0xc
push eax
lea ecx, [esp + 0x64]
call fcn.10007dc0
mov ecx, dword [esp + 0x2c]
push ecx
call fcn.10002e75
mov edx, dword [esp + 0x2c]
push edx
mov dword [esp + 0x34], ebx
call fcn.10002e75
mov eax, dword [esp + 0x24]
push eax
mov dword [esp + 0x34], ebx
call fcn.10002e75
mov ecx, dword [esp + 0x6c]
add esp, 0xc
cmp ecx, ebx
jne 0x10008f2f
mov ecx, 0x100203b8
mov eax, dword [esp + 0x14]
mov edx, dword [eax]
push ecx
push eax
mov eax, dword [edx + 0x10]
call eax
push ebp
lea ecx, [esp + 0x20]
mov dword [esp + 0x20], ebx
call fcn.100035c0
push 0x10020f78
lea ecx, [esp + 0x2c]
mov dword [esp + 0x2c], ebx
call fcn.100035c0
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x38]
push eax
call fcn.10005a10
mov ecx, dword [eax]
add esp, 0xc
push ecx
lea ecx, [esp + 0x20]
call fcn.100035c0
mov edx, dword [esp + 0x30]
push edx
call fcn.10002e75
mov eax, dword [esp + 0x2c]
push eax
call fcn.10002e75
mov esi, dword [esp + 0x24]
add esp, 8
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x10008fe4
push esi
lea ecx, [esp + 0x3c]
call fcn.10007dc0
mov esi, dword [esp + 0x38]
cmp esi, ebx
mov ecx, esi
jne 0x10008fbf
mov ecx, 0x100203b8
mov eax, dword [esp + 0x14]
mov edx, dword [eax]
push ecx
push eax
mov eax, dword [edx + 0x28]
call eax
cmp esi, ebx
je 0x10008fd7
push esi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov ecx, dword [esp + 0x3c]
push ecx
call fcn.10002e75
add esp, 4
lea edx, [esp + 0x20]
push 4
push edx
call fcn.1000cdf0
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
add esp, 8
lea edx, [esp + 0x20]
push edx
mov edx, dword [esp + 0x18]
push ebx
push edx
push 0x10020f6c
push eax
mov eax, dword [ecx + 0x44]
call eax
lea ecx, [esp + 0x18]
push 4
push ecx
call fcn.1000cdf0
mov eax, dword [esp + 0x28]
mov edx, dword [eax]
mov edx, dword [edx]
add esp, 8
lea ecx, [esp + 0x18]
push ecx
push 0x100203a8
push eax
call edx
mov esi, dword [esp + 0x98]
cmp esi, ebx
je 0x1000915b
push 0x1002c0a0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push 0x1002c0b8
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
lea ecx, [esp + 0x2c]
push ecx
push esi
call eax
mov edi, dword [sym.imp.OLEAUT32.dll_VariantClear]
lea edx, [esp + 0x70]
push edx
mov esi, eax
call edi
lea eax, [esp + 0x80]
push eax
call edi
mov ecx, dword [esp + 0x2c]
push ecx
push ebx
push 8
call dword [sym.imp.OLEAUT32.dll_SafeArrayCopyData]
mov ebp, dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov edi, eax
xor eax, eax
cmp dword [esp + 0x2c], ebx
mov dword [esp + 0x28], eax
jle 0x100090c4
mov ebx, dword [sym.imp.OLEAUT32.dll_SafeArrayCopy]
mov edx, dword [esi + eax*4]
push edx
call ebp
push eax
lea eax, [esp + 0x2c]
push eax
push edi
call ebx
mov eax, dword [esp + 0x28]
add eax, 1
cmp eax, dword [esp + 0x2c]
mov dword [esp + 0x28], eax
jl 0x100090a2
xor ebx, ebx
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [esp + 0x18]
push ebx
mov dword [esp + 0x3c], ecx
call fcn.10002e75
push 1
call fcn.10002e89
mov edx, dword [esp + 0x9c]
add esp, 8
push edx
lea ecx, [esp + 0x34]
mov dword [esp + 0x70], eax
mov byte [eax], 0
mov dword [esp + 0x34], ebx
call fcn.100035c0
mov ebx, dword [esp + 0x30]
push ebx
call ebp
push ebx
mov esi, eax
call fcn.10002e75
add esp, 4
test esi, esi
mov ecx, esi
jne 0x1000911c
mov ecx, 0x100203b8
mov eax, dword [esp + 0x38]
mov edx, dword [eax]
lea ebx, [esp + 0x34]
push ebx
push edi
push 0
push ecx
push eax
mov eax, dword [edx + 0xd0]
call eax
test esi, esi
je 0x1000913f
push esi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov ecx, dword [esp + 0x6c]
push ecx
call fcn.10002e75
add esp, 4
push edi
call dword [sym.imp.OLEAUT32.dll_SafeArrayGetDim]
mov edi, dword [esp + 0x40]
xor ebx, ebx
jmp 0x100091a1
mov esi, dword [esp + 0x18]
push ebp
lea ecx, [esp + 0x44]
call fcn.10007dc0
mov eax, dword [eax]
cmp eax, ebx
jne 0x10009174
mov eax, 0x100203b8
mov edx, dword [esi]
mov edx, dword [edx + 0xcc]
lea ecx, [esp + 0x34]
push ecx
push eax
push esi
call edx
mov eax, dword [esp + 0x40]
cmp eax, ebx
je 0x10009194
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esp + 0x44]
push eax
call fcn.10002e75
add esp, 4
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x100091b5
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x18], ebx
mov eax, dword [esp + 0x20]
cmp eax, ebx
je 0x100091c9
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x20], ebx
mov eax, dword [esp + 0x1c]
push eax
call fcn.10002e75
mov eax, dword [esp + 0x64]
add esp, 4
cmp eax, ebx
je 0x100091e5
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov ecx, dword [esp + 0x64]
push ecx
call fcn.10002e75
mov eax, dword [esp + 0x18]
add esp, 4
cmp eax, ebx
je 0x10009206
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov dword [esp + 0x14], ebx
mov eax, dword [esp + 0x24]
cmp eax, ebx
je 0x1000921a
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x24], ebx
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x1000922a
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
cmp edi, ebx
je 0x10009234
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, dword [esp + 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [esp + 0x50]
cmp eax, ebx
mov esi, dword [esp + 0x34]
je 0x10009254
push eax
call fcn.10002e75
add esp, 4
mov eax, dword [esp + 0x58]
cmp eax, ebx
je 0x10009265
push eax
call fcn.10002e75
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x80
ret 8