Function at 0x111123f0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
push str.NSMJournalItem::ToNCData
mov esi, ecx
call fcn.111bd7b0
mov eax, dword [esi]
mov edx, dword [eax + 4]
add esp, 4
mov ecx, esi
mov byte [ebp - 1], 0
call edx
test eax, eax
jne 0x1111241d
or byte [ebp - 1], 1
mov eax, dword [esi]
mov edx, dword [eax + 0x28]
mov ecx, esi
call edx
test eax, eax
je 0x1111242e
or byte [ebp - 1], 4
mov eax, dword [esi + 0x268]
sub eax, dword [esi + 0x260]
je 0x11112440
or byte [ebp - 1], 2
mov edx, dword [esi]
mov eax, dword [edx + 0x1c]
mov ecx, esi
call eax
mov ebx, dword [ebp + 0x10]
test al, al
jne 0x11112462
cmp ebx, 6
jne 0x1111247e
cmp dword [esi + 0x44], 0
jne 0x11112462
cmp word [esi + 0x48], 0
je 0x111124a1
push str.NSMJournalItem::ToNCData_item_has_image_data
call fcn.111bd7b0
or byte [ebp - 1], 0x10
add esp, 4
cmp ebx, 6
jne 0x1111247e
or byte [ebp - 1], 8
jmp 0x111124a1
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov ecx, esi
call eax
cmp eax, 0xb
je 0x111124a1
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov ecx, esi
call eax
cmp eax, 2
je 0x111124a1
or dword [ebp + 0x14], 0x80
mov cl, byte [ebp + 0x14]
mov edi, dword [ebp + 8]
mov edx, dword [edi]
mov edx, dword [edx + 0xc]
lea eax, [ebp - 6]
mov byte [ebp + 0x13], cl
push eax
mov ecx, edi
mov byte [ebp + 0x17], bl
mov dword [ebp - 6], 0xb4
call edx
mov edx, dword [eax]
mov edx, dword [edx + 0x14]
lea ecx, [ebp + 0x17]
push ecx
mov ecx, eax
call edx
mov edx, dword [eax]
mov edx, dword [edx + 0x14]
lea ecx, [ebp + 0x13]
push ecx
mov ecx, eax
call edx
mov edx, dword [eax]
mov edx, dword [edx + 0x14]
lea ecx, [ebp - 1]
push ecx
mov ecx, eax
call edx
mov eax, dword [esi + 0x25c]
mov edx, dword [esi]
mov dword [ebp + 0x10], eax
mov eax, dword [edx + 4]
mov ecx, esi
call eax
mov edx, dword [edi]
mov edx, dword [edx + 0x14]
mov byte [ebp + 0x17], al
lea eax, [ebp + 0x17]
push eax
mov ecx, edi
call edx
mov edx, dword [eax]
mov edx, dword [edx + 0x48]
lea ecx, [ebp + 0x10]
push ecx
mov ecx, eax
call edx
mov eax, dword [edi]
mov edx, dword [eax + 0x20]
lea ecx, [esi + 0x14]
push ecx
mov ecx, edi
call edx
mov edx, dword [eax]
mov edx, dword [edx + 0x20]
lea ecx, [esi + 0x24]
push ecx
mov ecx, eax
call edx
mov edx, dword [eax]
mov edx, dword [edx + 0x20]
lea ecx, [esi + 0x34]
push ecx
mov ecx, eax
call edx
cmp byte [esi + 0x270], 0
mov edx, dword [edi]
mov edx, dword [edx + 0x14]
setne al
mov byte [ebp + 0x17], al
lea eax, [ebp + 0x17]
push eax
mov ecx, edi
call edx
mov eax, dword [edi]
mov edx, dword [eax + 0xc]
lea ecx, [esi + 4]
push ecx
mov ecx, edi
call edx
mov edx, dword [eax]
mov edx, dword [edx + 0xc]
lea ecx, [esi + 6]
push ecx
mov ecx, eax
call edx
mov edx, dword [eax]
mov edx, dword [edx + 0xc]
lea ecx, [esi + 8]
push ecx
mov ecx, eax
call edx
mov edx, dword [eax]
mov edx, dword [edx + 0xc]
lea ecx, [esi + 0xa]
push ecx
mov ecx, eax
call edx
mov edx, dword [eax]
mov edx, dword [edx + 0xc]
lea ecx, [esi + 0xc]
push ecx
mov ecx, eax
call edx
mov edx, dword [eax]
mov edx, dword [edx + 0xc]
lea ecx, [esi + 0xe]
push ecx
mov ecx, eax
call edx
mov edx, dword [eax]
mov edx, dword [edx + 0xc]
lea ecx, [esi + 0x10]
push ecx
mov ecx, eax
call edx
mov edx, dword [eax]
mov edx, dword [edx + 0xc]
lea ecx, [esi + 0x12]
push ecx
mov ecx, eax
call edx
test byte [ebp - 1], 0x20
je 0x111125da
mov eax, dword [edi]
mov edx, dword [eax + 0x10]
lea ecx, [ebp + 0x14]
push ecx
mov ecx, edi
mov dword [ebp + 0x14], 0
call edx
test byte [ebp - 1], 0x80
je 0x111125f4
mov eax, dword [edi]
mov edx, dword [eax + 0x10]
lea ecx, [ebp + 0x14]
push ecx
mov ecx, edi
mov dword [ebp + 0x14], 0
call edx
test byte [ebp - 1], 1
je 0x11112658
mov eax, dword [esi]
mov edx, dword [eax + 0xc]
mov ecx, esi
call edx
mov ebx, eax
mov eax, dword [esi]
mov edx, dword [eax + 8]
mov ecx, esi
call edx
mov byte [ebp + 0x17], al
mov eax, dword [edi]
mov edx, dword [eax + 0x14]
lea ecx, [ebp + 0x17]
push ecx
mov ecx, edi
call edx
mov edx, dword [edi]
mov edx, dword [edx + 0x14]
mov eax, ebx
shr eax, 0x10
mov ecx, ebx
shr ecx, 8
mov byte [ebp + 0xb], al
lea eax, [ebp + 0x17]
mov byte [ebp + 0x13], cl
push eax
mov ecx, edi
mov byte [ebp + 0x17], bl
call edx
mov edx, dword [eax]
mov edx, dword [edx + 0x14]
lea ecx, [ebp + 0x13]
push ecx
mov ecx, eax
call edx
mov edx, dword [eax]
mov edx, dword [edx + 0x14]
lea ecx, [ebp + 0xb]
push ecx
mov ecx, eax
call edx
test byte [ebp - 1], 2
je 0x111126ba
movzx eax, word [esi + 0x26c]
movzx edx, word [esi + 0x264]
movzx ecx, word [esi + 0x268]
mov dword [ebp - 6], eax
movzx eax, word [esi + 0x260]
mov dword [ebp + 0x10], edx
mov edx, dword [edi]
mov edx, dword [edx + 0xc]
mov dword [ebp + 0x14], eax
lea eax, [ebp + 0x14]
mov dword [ebp + 8], ecx
push eax
mov ecx, edi
call edx
mov edx, dword [eax]
mov edx, dword [edx + 0xc]
lea ecx, [ebp + 0x10]
push ecx
mov ecx, eax
call edx
mov edx, dword [eax]
mov edx, dword [edx + 0xc]
lea ecx, [ebp + 8]
push ecx
mov ecx, eax
call edx
mov edx, dword [eax]
mov edx, dword [edx + 0xc]
lea ecx, [ebp - 6]
push ecx
mov ecx, eax
call edx
test byte [ebp - 1], 4
je 0x111126ca
mov eax, dword [esi]
mov edx, dword [eax + 0x34]
push edi
mov ecx, esi
call edx
mov al, byte [ebp - 1]
test al, 8
je 0x11112707
test al, 0x10
je 0x111126e4
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
mov ecx, esi
call fcn.111118a0
lea ebx, [esi + 0x48]
push 0x5c
push ebx
call dword [sym.imp.MSVCR100.dll_wcsrchr]
mov edx, dword [edi]
add esp, 8
mov ecx, edi
test eax, eax
je 0x11112701
add eax, 2
push eax
jmp 0x11112702
push ebx
mov eax, dword [edx + 0x28]
call eax
test byte [ebp - 1], 0x10
je 0x11112815
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp + 0xc]
push ecx
push edx
mov ecx, esi
call fcn.111118a0
mov eax, dword [edi]
mov edx, dword [eax + 0x14]
lea ecx, [ebp + 0x17]
push ecx
mov ecx, edi
mov byte [ebp + 0x17], 1
call edx
movzx eax, word [esi + 0x258]
movzx ecx, word [esi + 0x254]
mov edx, dword [edi]
mov edx, dword [edx + 0xc]
mov dword [ebp + 0x18], eax
lea eax, [ebp + 0x14]
mov dword [ebp + 0x14], ecx
push eax
mov ecx, edi
call edx
mov edx, dword [eax]
mov edx, dword [edx + 0xc]
lea ecx, [ebp + 0x18]
push ecx
mov ecx, eax
call edx
xor ebx, ebx
test byte [ebp - 1], 8
mov dword [ebp + 0x14], ebx
mov dword [ebp + 0x18], 0xffffffff
jne 0x111127d9
add esi, 0x48
cmp word [esi], bx
je 0x111127d9
push ebx
push 0x80
push 3
push ebx
push 1
push closesocket
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp + 0x18], eax
cmp eax, 0xffffffff
je 0x111127d9
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
test ebx, ebx
je 0x111127d9
push ebx
call dword [sym.imp.MSVCR100.dll_malloc]
add esp, 4
mov dword [ebp + 0x14], eax
test eax, eax
je 0x111127d9
push 0
lea ecx, [ebp + 0xc]
push ecx
push ebx
mov edx, eax
mov eax, dword [ebp + 0x18]
push edx
push eax
mov dword [ebp + 0xc], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [ebp + 0xc], ebx
je 0x111127d9
xor ebx, ebx
mov edx, dword [edi]
mov edx, dword [edx + 0x10]
lea eax, [ebp + 0xc]
push eax
mov ecx, edi
mov dword [ebp + 0xc], ebx
call edx
test ebx, ebx
je 0x111127f9
mov eax, dword [ebp + 0x14]
push ebx
push eax
mov ecx, edi
call fcn.110e41c0
mov ecx, dword [ebp + 0x14]
push ecx
call dword [sym.imp.MSVCR100.dll_free]
mov eax, dword [ebp + 0x18]
add esp, 4
cmp eax, 0xffffffff
je 0x11112815
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [edi]
mov eax, dword [edx + 0xa4]
mov ecx, edi
call eax
test al, al
jne 0x1111283c
push 0x137
push str.e:_nsmsrc_nsm14101410fctl32DataStream.h
push str.IsA__
call fcn.11067750
add esp, 0xc
mov eax, dword [edi + 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14