Function at 0x10076920
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100c0f97
mov eax, dword fs:[0]
push eax
sub esp, 0x8f4
mov eax, dword [0x100df00c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [0x100ee4e8], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 0x8fc], eax
je 0x100769cc
test eax, eax
je 0x100769cc
push 0x100c4354
push dword [0x100ee4ec]
lea eax, [ebp - 0x8ec]
mov dword [ebp - 0x8f0], 0
push eax
mov dword [ebp - 0x8ec], 0
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__wfopen_s]
mov eax, dword [ebp - 0x8ec]
add esp, 0xc
test eax, eax
je 0x100769cc
mov edi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
push eax
push 4
lea eax, [ebp - 0x8f0]
push 1
push eax
call edi
add esp, 0x10
cmp dword [ebp - 0x8f0], 0
jg 0x100769d3
push dword [ebp - 0x8ec]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
xor eax, eax
jmp 0x10076c84
lea ecx, [ebp - 0x8e8]
call fcn.10075380
lea ecx, [ebp - 0x8f4]
mov dword [ebp - 4], 0
call dword [sym.imp.HncFoundation.dll_public:_void___thiscall_CHncStringW::constructor_void_]
xor ebx, ebx
mov byte [ebp - 4], 1
mov dword [ebp - 0x8f8], ebx
cmp dword [ebp - 0x8f0], ebx
jle 0x10076c37
nop dword [eax]
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
push 1
push 0
push dword [ebp - 0x8ec]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
push dword [ebp - 0x8ec]
mov esi, eax
lea eax, [ebp - 0x8e8]
push 0xa8
push 1
push eax
call edi
add esp, 0x28
push dword [ebp - 0x8ec]
cmp eax, 0xa8
jne 0x10076ca8
cmp dword [ebp - 0x8e8], esi
jne 0x10076ca8
push 0x208
lea eax, [ebp - 0x218]
push 1
push eax
call edi
add esp, 0x10
cmp eax, 0x208
jne 0x10076ca2
mov esi, dword [sym.imp.HncFoundation.dll_public:_int___thiscall_CHncStringW::Assign_unsigned_short_int_const__]
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x838]
call esi
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
push 0x208
lea eax, [ebp - 0x628]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0x18
lea eax, [ebp - 0x830]
push 0x104
push eax
push str._SharedData
call dword [sym.imp.HncFoundation.dll_HncPathToAbsolute]
push dword [ebp - 0x8fc]
lea eax, [ebp - 0x420]
push 0x104
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x628]
push 0x104
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
lea eax, [ebp - 0x628]
push 0x104
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcslwr_s]
lea eax, [ebp - 0x420]
push 0x104
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcslwr_s]
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x628]
push eax
call dword [sym.imp.VCRUNTIME140.dll_wcsstr]
add esp, 0x30
test eax, eax
je 0x10076c24
lea eax, [ebp - 0x830]
push eax
lea ecx, [ebp - 0x834]
call esi
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x834]
call dword [sym.imp.HncFoundation.dll_public:_int___thiscall_CHncStringW::Concat_unsigned_short_int_const__]
lea eax, [ebp - 0x8e4]
push eax
lea ecx, [ebp - 0x8f4]
call esi
lea eax, [ebp - 0x8f4]
mov ecx, 0x100ee4f4
push eax
lea eax, [ebp - 0x900]
push eax
call fcn.10084d20
mov eax, dword [ebp - 0x900]
cmp eax, dword [0x100ee4f4]
jne 0x10076c24
push dword [ebp - 0x834]
call dword [sym.imp.HncFoundation.dll_HncFileExist]
cmp eax, 1
jne 0x10076c24
lea eax, [ebp - 0x8f4]
mov ecx, 0x100ee4f4
push eax
call fcn.10084df0
mov ebx, eax
lea esi, [ebp - 0x8e8]
mov ecx, 0x2a
lea eax, [ebp - 0x838]
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 0x840]
mov esi, dword [sym.imp.HncFoundation.dll_public:_int___thiscall_CHncStringW::Assign_class_CHncStringW_const__]
mov dword [ebx + 0xa8], ecx
mov ecx, dword [ebp - 0x83c]
mov dword [ebx + 0xac], ecx
lea ecx, [ebx + 0xb0]
push eax
call esi
lea eax, [ebp - 0x834]
push eax
lea ecx, [ebx + 0xb4]
call esi
mov ebx, dword [ebp - 0x8f8]
mov edi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
inc ebx
mov dword [ebp - 0x8f8], ebx
cmp ebx, dword [ebp - 0x8f0]
jl 0x10076a10
push dword [ebp - 0x8ec]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
mov edi, 1
mov esi, dword [sym.imp.HncFoundation.dll_public:_void___thiscall_CHncStringW::destructor_void_]
lea ecx, [ebp - 0x8f4]
call esi
cmp dword [ebp - 0x840], 0
je 0x10076c72
push 0
push 0x10
push dword [ebp - 0x834]
call dword [sym.imp.GDI32.dll_RemoveFontResourceExW]
lea ecx, [ebp - 0x834]
call esi
lea ecx, [ebp - 0x838]
call esi
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100be194
mov esp, ebp
pop ebp
ret 4
push dword [ebp - 0x8ec]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
xor edi, edi
jmp 0x10076c4b