Function at 0x4106e0
Capabilities:
Check if file exists
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4215e0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24c
push ebx
push esi
mov edx, ecx
push edi
xor ebx, ebx
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x256]
mov word [ebp - 0x258], bx
mov dword [ebp - 0x10], esp
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [ebp + 0xc]
lea edi, [edx + 0xc]
push eax
push edi
lea ecx, [ebp - 0x258]
push 0x4278d8
push ecx
mov dword [ebp - 0x48], edx
call fcn.00417eed
add esp, 0x10
lea edx, [ebp - 0x258]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x410765
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push ebx
push 0x8000000
push 3
push ebx
push ebx
lea eax, [ebp - 0x258]
push 0x80000000
push eax
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x28], eax
jne 0x4107a3
lea ecx, [ebp - 0x4c]
push 0x424c38
push ecx
mov dword [ebp - 0x4c], ebx
call fcn.00418737
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
je 0x410942
cmp esi, ebx
je 0x410942
mov edx, dword [ebp - 0x28]
push ebx
push esi
push ebx
push 2
push ebx
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
cmp eax, ebx
mov dword [ebp - 0x2c], eax
jne 0x4107e6
lea eax, [ebp - 0x44]
push 0x424c38
push eax
mov dword [ebp - 0x44], ebx
call fcn.00418737
push ebx
push ebx
push ebx
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp eax, ebx
mov dword [ebp - 0x14], eax
jne 0x41080a
lea ecx, [ebp - 0x40]
push 0x424c38
push ecx
mov dword [ebp - 0x40], ebx
call fcn.00418737
mov dl, byte [ebp + 0xf]
push ebx
lea ecx, [ebp - 0x3c]
mov byte [ebp - 0x3c], dl
shr esi, 1
call fcn.0040cf30
push 1
push esi
lea ecx, [ebp - 0x3c]
call fcn.0040ce00
cmp al, bl
je 0x410845
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x38]
push esi
push eax
push ecx
call fcn.00401be0
mov edx, dword [ebp - 0x38]
mov dword [ebp - 0x34], esi
add esp, 0xc
mov word [edx + esi*2], bx
mov al, byte [ebp + 0xf]
push ebx
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 1
mov byte [ebp - 0x24], al
call fcn.0040cf30
push 0x42c54c
call fcn.00417a8e
add esp, 4
mov esi, eax
lea ecx, [ebp - 0x24]
push 1
push esi
call fcn.0040ce00
cmp al, bl
je 0x410892
mov ecx, dword [ebp - 0x20]
push esi
push 0x42c54c
push ecx
call fcn.00401be0
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x1c], esi
add esp, 0xc
mov word [edx + esi*2], bx
mov eax, dword [ebp - 0x48]
mov byte [ebp - 4], 2
mov ecx, dword [eax + 0x218]
cmp ecx, ebx
je 0x4108b4
mov edx, dword [ecx]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x3c]
push eax
call dword [edx + 0xc]
cmp al, bl
jne 0x4108c8
mov ecx, dword [0x422604]
lea edx, [ebp - 0x3c]
push ecx
push ebx
push edx
lea ecx, [ebp - 0x24]
call fcn.0040c980
mov eax, dword [ebp - 0x20]
cmp eax, ebx
jne 0x4108d4
mov eax, 0x422470
mov ecx, dword [ebp - 0x1c]
push edi
lea edx, [ecx + ecx]
push edx
push eax
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.MxUI.dll_HTMLayoutLoadHtmlEx]
mov ecx, dword [ebp - 0x20]
test eax, eax
setne byte [ebp + 0xf]
cmp ecx, ebx
je 0x410912
mov al, byte [ecx - 1]
cmp al, bl
je 0x410906
cmp al, 0xff
je 0x410906
dec al
mov byte [ecx - 1], al
jmp 0x410912
add ecx, 0xfffffffe
push ecx
call fcn.0041749e
add esp, 4
mov ecx, dword [ebp - 0x38]
mov dword [ebp - 0x20], ebx
cmp ecx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
je 0x41095f
mov al, byte [ecx - 1]
cmp al, bl
je 0x410934
cmp al, 0xff
je 0x410934
dec al
mov byte [ecx - 1], al
jmp 0x41095f
add ecx, 0xfffffffe
push ecx
call fcn.0041749e
add esp, 4
jmp 0x41095f
lea ecx, [ebp - 0x50]
push 0x424c38
push ecx
mov dword [ebp - 0x50], ebx
call fcn.00418737
mov byte [ebp + 0xf], 0
mov eax, 0x41095d
ret
mov eax, dword [ebp - 0x14]
cmp eax, ebx
je 0x41096d
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, dword [ebp - 0x2c]
cmp eax, ebx
je 0x41097b
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x41098a
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0xc]
mov al, byte [ebp + 0xf]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8