Function at 0x405bd0
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4406c8
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x4530e4]
xor eax, ebp
mov dword [ebp - 0x14], 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 + 8]
mov edi, ecx
xor ebx, ebx
mov dword [ebp - 0x34], edi
mov esi, edx
mov dword [edi], vtable.CHtmlBundle_class_CHTMLayoutDialogRes_.0
cmp eax, ebx
je 0x405c19
mov ecx, dword [eax + 4]
jmp 0x405c1b
xor ecx, ecx
mov dword [edi + 4], ecx
xor ecx, ecx
cmp byte [ebp + 0xc], bl
push 0x208
sete cl
lea edx, [edi + 0x10]
push ebx
push edx
mov dword [edi + 8], ebx
mov dword [edi + 0xc], ebx
mov dword [edi + 0x21c], eax
lea ecx, [ecx + ecx + 2]
mov dword [edi + 0x218], ecx
mov dword [edi + 0x220], ebx
mov dword [edi + 0x224], ebx
mov dword [edi + 0x228], ebx
mov dword [edi + 0x22c], ebx
mov dword [edi + 0x230], ebx
call fcn.0042d060
add esp, 0xc
cmp dword [edi + 0x218], 4
jne 0x405cb3
push str.MxFilePackage.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [edi + 0x22c], eax
cmp eax, ebx
je 0x405e55
push str.CreateMxFilePackage
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x405e55
push esi
call eax
add esp, 4
mov dword [edi + 0x230], eax
jmp 0x405e55
push ebx
push 0x80
push 3
push ebx
push 7
push 0x80000000
push esi
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [edi + 0x220], eax
cmp eax, 0xffffffff
jne 0x405ced
push 0x44ddf4
lea eax, [ebp - 0x4c]
push eax
mov dword [ebp - 0x4c], str.open_zip_file_failed.
call fcn.0042d35b
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x44], eax
cmp eax, ebx
jne 0x405d11
push 0x44ddf4
lea ecx, [ebp - 0x3c]
push ecx
mov dword [ebp - 0x3c], str.zip_file_size_is_0.
call fcn.0042d35b
push 0x5c
push esi
call fcn.0042c19e
add esp, 8
mov dword [ebp - 0x38], eax
cmp eax, ebx
je 0x405d29
add eax, 2
mov dword [ebp - 0x38], eax
xor edx, edx
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], dx
mov byte [ebp - 4], 1
cmp eax, ebx
je 0x405d64
push 0xe
mov eax, str.Mx_Zip_Bundle_
lea esi, [ebp - 0x30]
call fcn.00408320
mov edx, dword [ebp - 0x38]
mov eax, esi
push eax
call fcn.00405ba0
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x405d67
lea eax, [ebp - 0x2c]
push eax
push ebx
push 4
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov dword [edi + 0x224], eax
cmp eax, ebx
jne 0x405da0
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x405d87
lea eax, [ebp - 0x2c]
mov ecx, dword [edi + 0x220]
push eax
push ebx
push ebx
push 2
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [edi + 0x224], eax
mov eax, dword [edi + 0x224]
cmp eax, ebx
jne 0x405dbf
push 0x44ddf4
lea edx, [ebp - 0x48]
push edx
mov dword [ebp - 0x48], str.CreateFileMapping_failed.
call fcn.0042d35b
push ebx
push ebx
push ebx
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [edi + 0x228], eax
cmp eax, ebx
jne 0x405dea
push 0x44ddf4
lea eax, [ebp - 0x40]
push eax
mov dword [ebp - 0x40], str.MapViewOfFile_failed.
call fcn.0042d35b
mov eax, edi
call fcn.00427ed0
mov ecx, dword [edi + 0xc]
cmp ecx, ebx
je 0x405e0a
mov eax, dword [ebp - 0x44]
mov edx, dword [ecx]
mov edx, dword [edx + 4]
push eax
mov eax, dword [edi + 0x228]
push eax
call edx
lea esi, [ebp - 0x30]
call fcn.0040a630
jmp 0x405e55
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0042bb57
mov esp, ebp
pop ebp
ret 8