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

Disassembly:
push ebp
lea ebp, [esp - 0x27c]
sub esp, 0x27c
push 0xffffffffffffffff
push 0x43fa20
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x4530e4]
xor eax, ebp
mov dword [ebp + 0x278], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0x284]
mov edi, ecx
xor ecx, ecx
push 0x206
mov esi, edx
push ecx
lea edx, [ebp + 0x72]
push edx
mov dword [ebp - 0x20], eax
xor bl, bl
mov word [ebp + 0x70], cx
call fcn.0042d060
lea eax, [edi + 0x10]
push esi
push eax
mov dword [ebp - 0x24], eax
lea eax, [ebp + 0x70]
push str._s_s
push eax
call fcn.0042c6ee
add esp, 0x1c
lea ecx, [ebp + 0x70]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
xor esi, esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], esi
test eax, eax
jne 0x427d25
cmp dword [edi + 0x21c], esi
je 0x427d1e
mov ecx, dword [edi + 0x21c]
mov edx, dword [ecx]
mov edx, dword [edx + 0x44]
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp + 0x70]
push eax
call edx
test al, al
je 0x427d1e
mov ecx, dword [ebp - 0x18]
cmp ecx, esi
je 0x427d1e
mov eax, dword [ebp - 0x1c]
cmp eax, esi
je 0x427d11
push eax
lea esi, [ebp]
call fcn.00409600
push 0x444482
lea ecx, [ebp + 0x38]
mov dword [ebp - 4], 0
call fcn.0040a080
mov byte [ebp - 4], 1
cmp dword [edi + 0x21c], 0
je 0x427cca
mov edi, dword [edi + 0x21c]
mov eax, dword [edi]
mov eax, dword [eax + 0x14]
lea ecx, [ebp + 0x38]
push ecx
mov edx, esi
push edx
mov ecx, edi
call eax
test al, al
jne 0x427cda
push 0xffffffffffffffff
push 0
lea ecx, [ebp]
push ecx
lea ecx, [ebp + 0x38]
call fcn.0040a3e0
cmp dword [ebp + 0x50], 0x10
mov eax, dword [ebp + 0x3c]
jae 0x427ce6
lea eax, [ebp + 0x3c]
mov edx, dword [ebp - 0x24]
mov ecx, dword [ebp + 0x4c]
push edx
mov edx, dword [ebp - 0x20]
push ecx
push eax
push edx
call dword [sym.imp.MxUI.dll_HTMLayoutLoadHtmlEx]
test eax, eax
lea ecx, [ebp + 0x38]
setne bl
call fcn.0040a4c0
lea ecx, [ebp]
call fcn.0040a4c0
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x427d1e
push ecx
call fcn.0042c214
add esp, 4
mov al, bl
jmp 0x427ea4
push esi
push 0x80
push 3
push esi
push 7
push 0x80000000
lea eax, [ebp + 0x70]
push eax
mov dword [ebp - 4], 2
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
mov dword [ebp - 0x30], ebx
cmp ebx, 0xffffffff
jne 0x427d61
push 0x44de28
lea ecx, [ebp - 0x34]
push ecx
mov dword [ebp - 0x34], esi
call fcn.0042d35b
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
je 0x427e57
test esi, esi
je 0x427e57
push 0
push esi
push 0
push 2
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov ebx, eax
mov dword [ebp - 0x1c], ebx
test ebx, ebx
jne 0x427da6
push 0x44de28
lea edx, [ebp - 0x38]
push edx
mov dword [ebp - 0x38], eax
call fcn.0042d35b
push 0
push 0
push 0
push 4
push ebx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 0x18], eax
test eax, eax
jne 0x427dcd
mov dword [ebp - 0x28], eax
push 0x44de28
lea eax, [ebp - 0x28]
push eax
call fcn.0042d35b
push esi
mov ecx, eax
lea esi, [ebp + 0x1c]
call fcn.00409600
push 0x444482
lea ecx, [ebp + 0x54]
mov byte [ebp - 4], 3
call fcn.0040a080
mov byte [ebp - 4], 4
cmp dword [edi + 0x21c], 0
je 0x427e10
mov edi, dword [edi + 0x21c]
mov edx, dword [edi]
mov edx, dword [edx + 0x14]
lea eax, [ebp + 0x54]
push eax
mov ecx, esi
push ecx
mov ecx, edi
call edx
test al, al
jne 0x427e20
push 0xffffffffffffffff
push 0
lea eax, [ebp + 0x1c]
push eax
lea ecx, [ebp + 0x54]
call fcn.0040a3e0
cmp dword [ebp + 0x6c], 0x10
mov eax, dword [ebp + 0x58]
jae 0x427e2c
lea eax, [ebp + 0x58]
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp + 0x68]
push ecx
push edx
push eax
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.MxUI.dll_HTMLayoutLoadHtmlEx]
test eax, eax
lea ecx, [ebp + 0x54]
setne byte [ebp - 0x11]
call fcn.0040a4c0
lea ecx, [ebp + 0x1c]
call fcn.0040a4c0
jmp 0x427e79
push 0x44de28
lea ecx, [ebp - 0x2c]
push ecx
mov dword [ebp - 0x2c], 0
call fcn.0042d35b
mov byte [ebp - 0x11], 0
mov eax, 0x427e76
ret
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x427e87
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
test ebx, ebx
je 0x427e92
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x30]
cmp eax, 0xffffffff
je 0x427ea1
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [ebp - 0x11]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x278]
xor ecx, ebp
call fcn.0042bb57
add ebp, 0x27c
mov esp, ebp
pop ebp
ret 4