Function at 0x100ab6d0
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100c4985
mov eax, dword fs:[0]
push eax
sub esp, 0x38
push ebx
push esi
push edi
mov eax, dword [0x100ef07c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
mov dword [ebp - 0x24], edi
mov eax, dword [edi + 0x40]
mov edx, dword [eax + 0x14]
lea esi, [edi + 0x40]
push 0xffffffffffffffff
mov ecx, esi
mov dword [ebp - 0x20], esi
call edx
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [edi + 0x60], ebx
mov eax, dword [edi + 0x14]
sub eax, dword [edi + 0x10]
mov dword [ebp - 0x14], ebx
sar eax, 2
mov dword [ebp - 0x1c], ebx
cmp eax, 1
jbe 0x100ab892
lea ecx, [ebp - 0x44]
call sub.mfc90u.dll_CFile::CFile
mov ecx, dword [ebp + 8]
push ebx
push 0x20
push ecx
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 1
call sub.mfc90u.dll_CFile::Open
test eax, eax
je 0x100ab86d
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x18], ebx
call sub.mfc90u.dll_AFX_EXCEPTION_LINK::AFX_EXCEPTION_LINK
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 3
call sub.mfc90u.dll_CFile::GetLength
mov ebx, eax
mov eax, edx
test eax, eax
ja 0x100ab818
jb 0x100ab786
cmp ebx, 0x1400000
ja 0x100ab818
mov edx, dword [ebp - 0x40]
push 0
push 0
push 0
push 0x8000002
push 0
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [ebp - 0x18], eax
test eax, eax
je 0x100ab808
push ebx
push 0
push 0
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
test esi, esi
je 0x100ab7d8
mov ecx, dword [ebp + 8]
mov eax, dword [edi]
mov edx, dword [eax + 0x50]
push ecx
push ebx
push esi
mov ecx, edi
call edx
push esi
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov dword [ebp - 0x1c], 1
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x20]
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x18], 0
call sub.mfc90u.dll_CFile::Close
mov dword [ebp - 4], 2
mov byte [ebp - 4], 1
call sub.mfc90u.dll_AfxTryCleanup
xor ebx, ebx
jmp 0x100ab87d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x1c], 1
lea ecx, [ebp - 0x44]
call sub.mfc90u.dll_CFile::Close
mov dword [ebp - 4], 2
mov byte [ebp - 4], 1
call sub.mfc90u.dll_AfxTryCleanup
xor ebx, ebx
jmp 0x100ab87d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x1c], 1
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 0
call fcn.100c036a
cmp dword [ebp - 0x1c], ebx
jne 0x100ab926
mov esi, dword [edi + 0x10]
cmp esi, dword [edi + 0x14]
jbe 0x100ab8a0
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov ebx, dword [edi + 4]
mov dword [ebp - 0x24], esi
mov esi, dword [edi + 0x14]
cmp dword [edi + 0x10], esi
jbe 0x100ab8b4
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov eax, dword [edi + 4]
test ebx, ebx
je 0x100ab8bf
cmp ebx, eax
je 0x100ab8c5
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
cmp dword [ebp - 0x24], esi
je 0x100ab923
mov esi, dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
test ebx, ebx
jne 0x100ab91b
call esi
xor eax, eax
mov ecx, dword [ebp - 0x24]
cmp ecx, dword [eax + 0x10]
jb 0x100ab8e2
call esi
mov edx, dword [ebp - 0x24]
mov ecx, dword [edx]
mov eax, dword [ecx]
mov edx, dword [ebp + 8]
mov eax, dword [eax + 0xc]
push edx
call eax
mov dword [ebp - 0x14], eax
cmp eax, 0x2714
je 0x100ab923
mov ecx, dword [edi + 0x60]
test ecx, ecx
jne 0x100ab923
test ebx, ebx
jne 0x100ab91f
call esi
xor eax, eax
mov edx, dword [ebp - 0x24]
cmp edx, dword [eax + 0x10]
jb 0x100ab915
call esi
add dword [ebp - 0x24], 4
jmp 0x100ab8a6
mov eax, dword [ebx]
jmp 0x100ab8d8
mov eax, dword [ebx]
jmp 0x100ab90b
mov esi, dword [ebp - 0x20]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [esi]
mov edx, dword [eax + 0x1c]
mov ecx, esi
call edx
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4