Function at 0x100c7520
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100ed2f5
mov eax, dword fs:[0]
push eax
sub esp, 0x38
push ebx
push esi
push edi
mov eax, dword [0x1012007c]
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 0x100c76e2
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 0x100c76bd
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 0x100c7668
jb 0x100c75d6
cmp ebx, 0x1400000
ja 0x100c7668
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 0x100c7658
push ebx
push 0
push 0
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
test esi, esi
je 0x100c7628
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 0x100c76cd
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 0x100c76cd
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.100e74a6
cmp dword [ebp - 0x1c], ebx
jne 0x100c7776
mov esi, dword [edi + 0x10]
cmp esi, dword [edi + 0x14]
jbe 0x100c76f0
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 0x100c7704
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov eax, dword [edi + 4]
test ebx, ebx
je 0x100c770f
cmp ebx, eax
je 0x100c7715
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
cmp dword [ebp - 0x24], esi
je 0x100c7773
mov esi, dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
test ebx, ebx
jne 0x100c776b
call esi
xor eax, eax
mov ecx, dword [ebp - 0x24]
cmp ecx, dword [eax + 0x10]
jb 0x100c7732
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 0x100c7773
mov ecx, dword [edi + 0x60]
test ecx, ecx
jne 0x100c7773
test ebx, ebx
jne 0x100c776f
call esi
xor eax, eax
mov edx, dword [ebp - 0x24]
cmp edx, dword [eax + 0x10]
jb 0x100c7765
call esi
add dword [ebp - 0x24], 4
jmp 0x100c76f6
mov eax, dword [ebx]
jmp 0x100c7728
mov eax, dword [ebx]
jmp 0x100c775b
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