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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41bbc8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28
push ebx
push esi
mov esi, ecx
xor ebx, ebx
mov ecx, dword [ebp + 0x10]
push edi
cmp ecx, ebx
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x14], esi
je 0x40b284
mov eax, dword [ecx + 4]
jmp 0x40b286
xor eax, eax
mov dword [esi + 4], eax
mov dword [esi + 0x218], ecx
mov ecx, 0x82
xor eax, eax
lea edi, [esi + 0xc]
push ebx
mov dword [esi + 8], ebx
mov dword [esi + 0x214], 2
mov dword [esi + 0x21c], ebx
mov dword [esi + 0x220], ebx
mov dword [esi + 0x224], ebx
mov dword [esi], 0x41d5e4
push 0x80
push 3
rep stosd dword es:[edi], eax
mov edi, dword [ebp + 8]
push ebx
push 1
push 0x80000000
push edi
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [esi + 0x21c], eax
jne 0x40b2fd
lea eax, [ebp - 0x18]
push 0x41f770
push eax
mov dword [ebp - 0x18], str.open_zip_file_failed.
call fcn.00413206
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, ebx
mov dword [ebp + 8], eax
jne 0x40b321
lea ecx, [ebp - 0x1c]
push 0x41f770
push ecx
mov dword [ebp - 0x1c], str.zip_file_size_is_0.
call fcn.00413206
push 0x5c
push edi
call fcn.00412ca0
add esp, 8
cmp eax, ebx
mov dword [ebp + 0x10], eax
je 0x40b339
add eax, 2
mov dword [ebp + 0x10], eax
mov dl, byte [ebp + 0x13]
mov dword [ebp - 0x30], ebx
mov byte [ebp - 0x34], dl
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
cmp eax, ebx
mov byte [ebp - 4], 1
je 0x40b402
push str.Mx_Zip_Bundle_
call fcn.0041255c
add esp, 4
mov edi, eax
lea ecx, [ebp - 0x34]
push 1
push edi
call fcn.00409450
test al, al
je 0x40b39b
mov eax, dword [ebp - 0x30]
mov edx, edi
mov ecx, str.Mx_Zip_Bundle_
cmp edx, ebx
jbe 0x40b391
mov bx, word [ecx]
add ecx, 2
mov word [eax], bx
add eax, 2
dec edx
xor ebx, ebx
jmp 0x40b37c
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x2c], edi
mov word [eax + edi*2], bx
mov ecx, dword [ebp + 0x10]
push ecx
call fcn.0041255c
mov edx, dword [0x41d5a8]
mov ecx, dword [ebp - 0x2c]
mov ebx, eax
sub edx, ecx
add esp, 4
cmp edx, ebx
ja 0x40b3bd
call fcn.00412297
test ebx, ebx
jbe 0x40b3f9
mov eax, dword [ebp - 0x2c]
push 0
lea ecx, [ebp - 0x34]
lea edi, [eax + ebx]
push edi
call fcn.00409450
test al, al
je 0x40b3f9
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 0x2c]
push ebx
lea eax, [ecx + edx*2]
mov ecx, dword [ebp + 0x10]
push ecx
push eax
call fcn.00401b80
mov edx, dword [ebp - 0x30]
mov dword [ebp - 0x2c], edi
add esp, 0xc
mov word [edx + edi*2], 0
mov eax, dword [ebp - 0x30]
test eax, eax
jne 0x40b409
xor ebx, ebx
mov eax, 0x41d59c
jmp 0x40b40b
xor ebx, ebx
push eax
push ebx
push 4
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
cmp eax, ebx
mov dword [esi + 0x220], eax
jne 0x40b444
mov eax, dword [ebp - 0x30]
cmp eax, ebx
jne 0x40b42b
mov eax, 0x41d59c
push eax
mov eax, dword [esi + 0x21c]
push ebx
push ebx
push 2
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [esi + 0x220], eax
mov eax, dword [esi + 0x220]
cmp eax, ebx
jne 0x40b463
lea ecx, [ebp - 0x20]
push 0x41f770
push ecx
mov dword [ebp - 0x20], str.CreateFileMapping_failed.
call fcn.00413206
push ebx
push ebx
push ebx
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp eax, ebx
mov dword [esi + 0x224], eax
jne 0x40b48e
lea edx, [ebp - 0x24]
push 0x41f770
push edx
mov dword [ebp - 0x24], str.MapViewOfFile_failed.
call fcn.00413206
lea edi, [esi + 8]
push edi
call sub.MxTool.dll_CreateMxZipObj
mov eax, dword [edi]
cmp eax, ebx
je 0x40b4af
mov edx, dword [ebp + 8]
mov ecx, dword [eax]
push ebx
push edx
mov edx, dword [esi + 0x224]
push edx
push eax
call dword [ecx + 0x2c]
mov ecx, dword [ebp - 0x30]
cmp ecx, ebx
je 0x40b517
mov al, byte [ecx - 1]
test al, al
je 0x40b4c8
cmp al, 0xff
je 0x40b4c8
dec al
mov byte [ecx - 1], al
jmp 0x40b517
add ecx, 0xfffffffe
push ecx
call fcn.00411f90
add esp, 4
jmp 0x40b517
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0xc