Function at 0x11109680
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x111e4abb
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
push ebx
push esi
push edi
mov eax, dword [0x11279148]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x20], ecx
mov eax, dword [ebp + 8]
xor edi, edi
push 0x1120888c
push eax
mov dword [ebp - 0x18], edi
xor bl, bl
mov dword [ebp - 0x1c], edi
call dword [sym.imp.MSVCR100.dll__wfopen]
mov esi, eax
add esp, 8
cmp esi, edi
je 0x111099bf
mov ebx, dword [sym.imp.MSVCR100.dll_fseek]
push 2
push edi
push esi
mov byte [ebp - 0x11], 1
call ebx
add esp, 0xc
test eax, eax
je 0x111096ef
mov byte [ebp - 0x11], 0
push esi
call dword [sym.imp.MSVCR100.dll_ftell]
mov edi, eax
add esp, 4
cmp edi, 0xffffffff
jne 0x11109704
mov byte [ebp - 0x11], 0
lea ecx, [edi + 1]
push ecx
call dword [sym.imp.MSVCR100.dll_malloc]
add esp, 4
mov dword [ebp - 0x18], eax
test eax, eax
jne 0x1110971b
mov byte [ebp - 0x11], al
push 0
push 0
push esi
call ebx
add esp, 0xc
test eax, eax
je 0x1110972d
mov byte [ebp - 0x11], 0
mov edx, dword [ebp - 0x18]
push esi
push 1
push edi
push edx
call dword [sym.imp.MSVCR100.dll_fread]
add esp, 0x10
cmp eax, 1
je 0x11109747
mov byte [ebp - 0x11], 0
push esi
call dword [sym.imp.MSVCR100.dll_fclose]
add esp, 4
cmp byte [ebp - 0x11], 0
je 0x111099bc
cmp edi, 0x20
jl 0x111099bc
mov eax, dword [ebp - 0x18]
push 0xffffffffffffffff
push edi
push eax
lea ecx, [ebp - 0x88]
call fcn.1111aaf0
mov edx, dword [ebp - 0x88]
mov eax, dword [edx + 0x5c]
lea ecx, [ebp - 0x28]
push ecx
lea ecx, [ebp - 0x88]
mov dword [ebp - 4], 0
call eax
mov edx, dword [eax]
mov edx, dword [edx + 0x5c]
lea ecx, [ebp - 0x2c]
push ecx
mov ecx, eax
call edx
mov edx, dword [ebp - 0x88]
lea eax, [ebp - 0x12]
push eax
mov eax, dword [edx + 0x60]
lea ecx, [ebp - 0x88]
call eax
cmp byte [ebp - 0x12], 2
jne 0x111099aa
lea ecx, [ebp - 0x5c]
call fcn.1113dd30
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 1
call fcn.1113dd30
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 2
call fcn.1113dd30
mov edx, dword [ebp - 0x88]
mov eax, dword [edx + 0x5c]
lea ecx, [ebp - 0x24]
push ecx
lea ecx, [ebp - 0x88]
mov byte [ebp - 4], 3
call eax
mov edx, dword [eax]
mov edx, dword [edx + 0x68]
lea ecx, [ebp - 0x5c]
push ecx
mov ecx, eax
call edx
mov edx, dword [eax]
mov edx, dword [edx + 0x68]
lea ecx, [ebp - 0x4c]
push ecx
mov ecx, eax
call edx
mov edx, dword [ebp - 0x88]
lea eax, [ebp - 0x6c]
push eax
mov eax, dword [edx + 0x68]
lea ecx, [ebp - 0x88]
call eax
mov edi, dword [ebp - 0x20]
lea ecx, [ebp - 0x6c]
push ecx
lea ecx, [edi + 0x3c]
call fcn.1113db60
mov edx, dword [ebp - 0x4c]
mov eax, dword [edx]
lea ecx, [ebp - 0x4c]
call eax
test al, al
jne 0x1110985a
push 0x261
push str.e:_nsmsrc_nsm14101410fctl32NSMString.h
push str.IsA__
call fcn.11067750
add esp, 0xc
mov edx, dword [ebp - 0x5c]
mov eax, dword [edx]
mov esi, dword [ebp - 0x40]
lea ecx, [ebp - 0x5c]
call eax
test al, al
jne 0x11109882
push 0x261
push str.e:_nsmsrc_nsm14101410fctl32NSMString.h
push str.IsA__
call fcn.11067750
add esp, 0xc
mov ecx, dword [ebp - 0x50]
mov edx, dword [ebp + 0xc]
push esi
push ecx
push str._s_n_s_n
push edx
call fcn.1113d940
add esp, 0x10
xor esi, esi
lea ebx, [esi + 4]
lea ecx, [ecx]
cmp esi, dword [ebp - 0x24]
jae 0x11109986
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x3c]
call fcn.1113ccd0
mov edx, dword [ebp - 0x3c]
mov eax, dword [edx]
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], bl
call eax
test al, al
jne 0x111098dd
push 0x261
push str.e:_nsmsrc_nsm14101410fctl32NSMString.h
push str.IsA__
call fcn.11067750
add esp, 0xc
mov ecx, dword [ebp - 0x30]
push 0x5c
push ecx
call dword [sym.imp.MSVCR100.dll_wcsrchr]
add esp, 8
test eax, eax
je 0x111098fc
add eax, 2
push eax
lea ecx, [ebp - 0x3c]
call fcn.1113ca60
mov edx, dword [ebp - 0x3c]
mov eax, dword [edx]
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 5
call eax
test al, al
jne 0x11109925
push 0x261
push str.e:_nsmsrc_nsm14101410fctl32NSMString.h
push str.IsA__
call fcn.11067750
add esp, 0xc
mov ecx, dword [ebp - 0x30]
push ecx
lea edx, [ebp - 0x88]
push 0
push edx
call fcn.11112850
mov ecx, dword [edi + 0x20]
mov edx, dword [ecx]
add esp, 0xc
push eax
mov eax, dword [edx]
mov dword [ebp - 4], ebx
call eax
inc dword [ebp - 0x1c]
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 3
call fcn.1113cd80
inc esi
jmp 0x111098a0
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 2
call fcn.1113cd80
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 1
call fcn.1113cd80
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 0
call fcn.1113cd80
lea ecx, [ebp - 0x88]
mov dword [ebp - 4], 0xffffffff
call fcn.1111ab70
mov bl, byte [ebp - 0x11]
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.MSVCR100.dll_free]
mov esi, dword [ebp - 0x20]
mov ecx, dword [esi + 0x20]
add esp, 4
call fcn.11107ed0
test eax, eax
je 0x111099f0
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp + 8]
push edx
push eax
push str.LoadTempJournal__s___nItemsAdded_d_n
call fcn.111bd7b0
add esp, 0xc
mov ecx, dword [esi + 0x20]
mov eax, dword [ecx + 0x50]
test eax, eax
je 0x11109a0a
push 0
push 1
push 0x6d0
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8