Function at 0x40fd80
Capabilities:
Read file via mapping

Disassembly:
sub esp, 0x2c
mov edx, dword [esp + 0x30]
push ebx
push ebp
lea ebp, [eax*8]
sub ebp, eax
push esi
mov ebx, ecx
mov eax, dword [ebx + 0x1cc]
add ebp, ebp
add ebp, ebp
mov ecx, dword [eax + ebp + 0xc]
push edi
lea edi, [eax + ebp]
lea esi, [ecx + edx]
mov eax, esi
xor edx, edx
div dword [ebx + 0x1e8]
sub esi, edx
sub ecx, esi
add ecx, dword [esp + 0x40]
mov dword [esp + 0x10], esi
mov esi, dword [edi + 0x18]
add esi, dword [edi + 0x10]
mov dword [esp + 0x14], ecx
sub esi, dword [esp + 0x40]
add esi, ecx
cmp word [edi + 6], 1
jne 0x40fdf2
mov eax, dword [ebx + 0x1cc]
test byte [eax + ebp + 4], 4
je 0x40fdf2
cmp esi, 0x800000
jb 0x40fdf2
lea esi, [ecx + 0x800000]
push 0x12c
call fcn.0043f119
mov edi, eax
add esp, 4
test edi, edi
jne 0x40fe4d
mov esi, dword [ebx + 0x1f4]
mov ecx, dword [esi + 0x24]
push 0x10000
mov byte [ecx], al
mov edx, dword [esi + 0x28]
push edx
push 0xffffffffffffffff
push ebx
push eax
push eax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov esi, dword [esi + 0x28]
mov ecx, dword [0x476eec]
push esi
mov ebx, str.NotEnoughMemoryForCreateFP
call fcn.004187b0
push eax
call fcn.004059c0
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret 8
push 0x104
push 0
push edi
call fcn.00440c10
mov ecx, dword [esp + 0x1c]
add esp, 0xc
push esi
push ecx
push 0
mov dword [edi + 0x128], 1
mov dword [edi + 0x108], 0
mov eax, dword [ebx + 0x14c]
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
mov dword [edi + 0x108], eax
je 0x40ffd9
mov edx, dword [ebx + 0x1cc]
mov ecx, dword [esp + 0x14]
add eax, ecx
add edx, ebp
mov dword [edi + 0x104], edx
mov dword [edi + 0x10c], eax
mov eax, dword [ebx + 0x1cc]
xor edx, edx
cmp word [eax + ebp + 6], 1
push edi
setne dl
sub esi, ecx
push ebx
mov dword [edi + 0x124], edx
mov eax, dword [ebx + 0x1cc]
mov edx, dword [eax + ebp + 0x14]
mov eax, dword [edi + 0x104]
mov dword [edi + 0x11c], edx
mov dword [edi + 0x110], ecx
mov dword [edi + 0x120], 0
mov dword [edi + 0x118], esi
mov eax, dword [eax]
call fcn.00410060
cmp dword [edi + 0x124], 1
jne 0x40ffef
mov eax, dword [edi + 0x11c]
xor esi, esi
cmp eax, esi
jbe 0x40ffef
cmp dword [esp + 0x44], esi
jne 0x40ffef
push eax
call fcn.0043f119
add esp, 4
cmp eax, esi
mov dword [edi + 0x114], eax
jne 0x40ff57
mov ecx, dword [edi + 0x108]
push ecx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov dword [edi + 0x128], esi
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret 8
mov edx, dword [ebx + 0x1cc]
mov ecx, dword [ebp + edx + 0x10]
add ebp, edx
mov edx, dword [edi + 0x10c]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x30], ecx
mov ecx, dword [ebp + 0x14]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x34], ecx
movzx ecx, word [ebp + 6]
mov dword [esp + 0x1c], esi
mov dword [esp + 0x38], esi
lea esi, [esp + 0x18]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], eax
call fcn.00411260
cmp dword [esp + 0x38], 0
jne 0x40fffb
mov ecx, dword [0x476eec]
mov ebx, str.DecompressFailed
call fcn.004187b0
push eax
call fcn.004059c0
mov eax, dword [edi + 0x108]
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [edi + 0x114]
push ecx
call fcn.0043f1dc
add esp, 4
mov dword [edi + 0x128], 0
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret 8
mov edx, dword [edi + 0x10c]
mov dword [edi + 0x114], edx
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret 8