Function at 0x100f0cc0
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x28
test eax, eax
push ebp
push esi
push edi
je 0x100f0edd
cmp eax, 0xffffffff
je 0x100f0edd
mov eax, dword [0x10282c98]
test eax, eax
je 0x100f0edd
mov ebp, dword [0x10282ca4]
test ebp, ebp
je 0x100f0edd
mov esi, dword [0x10282ca8]
test esi, esi
je 0x100f0edd
mov edi, dword [0x10282cac]
test edi, edi
je 0x100f0edd
push ebx
push edi
xor ebx, ebx
mov dword [esp + 0x34], edi
call sub.MFC42u.DLL_operatornew
mov edx, eax
add esp, 4
test edx, edx
mov dword [esp + 0x1c], edx
je 0x100f0ed3
mov ecx, edi
mov edi, edx
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
xor edx, edx
and ecx, 3
cmp esi, 0x15
rep stosb byte es:[edi], al
mov ecx, esi
mov dword [esp + 0x28], edx
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], 1
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x18], ebp
jb 0x100f0ec6
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x24], eax
lea esi, [eax + 0x15]
cmp esi, ecx
mov dword [esp + 0x34], esi
ja 0x100f0ec4
test byte [ebp], 1
jne 0x100f0d91
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x100f0e43
mov edi, dword [ebp + 8]
mov ecx, edi
sub ecx, edi
jne 0x100f0ec4
cmp dword [ebp + 0x10], 1
je 0x100f0da6
neg edi
cmp dword [esp + 0x28], edi
jne 0x100f0db6
cmp dword [esp + 0x10], eax
jae 0x100f0e68
cmp eax, dword [esp + 0x30]
ja 0x100f0e58
mov ebx, dword [esp + 0x3c]
lea edx, [esp + 0x20]
push 1
push edx
push 0
push ebx
mov dword [esp + 0x30], 0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ebp, eax
xor esi, esi
xor eax, eax
test edi, edi
setl al
dec eax
and al, 0xfe
add eax, 2
push eax
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x100f0e2d
mov eax, dword [esp + 0x40]
test eax, eax
jne 0x100f0e1e
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x10]
push 0
push ecx
push edx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov esi, eax
lea ecx, [esp + 0x20]
push 0
push ecx
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x24]
cmp ecx, eax
mov edx, esi
je 0x100f0e5c
xor edx, edx
mov ebp, dword [esp + 0x18]
xor ebx, ebx
mov eax, dword [ebp]
test al, 1
je 0x100f0e8b
test ebx, ebx
mov dword [esp + 0x14], 1
jne 0x100f0ec6
jmp 0x100f0ea5
xor edx, edx
jmp 0x100f0e41
test esi, esi
je 0x100f0e3d
mov ebp, dword [esp + 0x18]
mov dword [esp + 0x28], edi
test edx, edx
je 0x100f0e41
mov ecx, dword [ebp + 0xc]
mov eax, dword [esp + 0x10]
cmp eax, ecx
jb 0x100f0e41
mov esi, dword [esp + 0x1c]
lea edi, [ebp + 0x14]
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x100f0e41
mov ebx, 1
jmp 0x100f0e43
test al, 2
je 0x100f0e95
mov dword [esp + 0x14], ebx
jmp 0x100f0ea5
test al, 4
je 0x100f0ea5
test ebx, ebx
mov dword [esp + 0x14], 1
jne 0x100f0ec6
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x34]
sub ecx, eax
add ebp, eax
cmp ecx, 0x15
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x18], ebp
jae 0x100f0d69
jmp 0x100f0ec6
xor ebx, ebx
mov ecx, dword [esp + 0x1c]
push ecx
call sub.MFC42u.DLL_operatordelete
add esp, 4
mov eax, ebx
pop ebx
pop edi
pop esi
pop ebp
add esp, 0x28
ret
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x28
ret