Function at 0x10074630
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x100df00c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
push 0x200
mov dword [ebp - 0x41c], eax
xor esi, esi
lea eax, [ebp - 0x40c]
push esi
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
push str._AllUserDataUserSharedFonts_
call dword [sym.imp.HncFoundation.dll_HncPathToAbsolute]
push str.fontinfo.ini
lea eax, [ebp - 0x20c]
push eax
push 0x100c4e30
push eax
call fcn.100934d0
add esp, 0x10
lea ecx, [ebp - 0x20c]
mov edx, str.__HWP_Font_Configuration_V5.00
call fcn.1002aae0
mov edi, eax
test edi, edi
jne 0x100746c6
call dword [sym.imp.HncFoundation.dll_HncClearError]
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100be194
mov esp, ebp
pop ebp
ret 4
call dword [sym.imp.HncFoundation.dll_HncGetFrameLCID]
mov ecx, 0x412
cmp ax, cx
jne 0x100746dd
push 0x100c5910
jmp 0x100746e7
call fcn.10070cb0
push str.Rep_Fonts
lea eax, [ebp - 0x40c]
push 0x100
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
add esp, 0xc
lea edx, [ebp - 0x40c]
mov ecx, edi
push ebx
call fcn.1002a860
mov ebx, eax
cmp ebx, 0xffffffff
je 0x10074735
push ebx
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov esi, eax
add esp, 4
mov dword [ebp - 0x410], esi
test esi, esi
jne 0x1007476c
push 2
call dword [sym.imp.HncFoundation.dll_HncSetError]
mov esi, dword [ebp - 0x410]
mov eax, dword [edi]
test eax, eax
je 0x10074745
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
push edi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
xor ebx, ebx
xor edi, edi
test esi, esi
je 0x100748d1
push esi
mov esi, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
call esi
add esp, 4
jmp 0x100748d7
mov esi, dword [edi]
push 0
push 0
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
push esi
mov esi, dword [ebp - 0x410]
xor ecx, ecx
test eax, eax
mov eax, 1
push ebx
cmovne eax, ecx
push 1
push esi
mov dword [ebp - 0x418], eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x1c
cmp eax, ebx
jl 0x1007472f
cmp dword [ebp - 0x418], 0
je 0x1007472f
mov ecx, edi
call fcn.1002ae20
push 0x4000
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov edi, eax
add esp, 4
test edi, edi
jne 0x100747d3
push 2
call dword [sym.imp.HncFoundation.dll_HncSetError]
xor ebx, ebx
jmp 0x10074753
push ecx
mov ecx, dword [ebp - 0x41c]
mov edx, edi
call fcn.100743e0
push 0x100c46ac
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__wfopen_s]
add esp, 0x10
test eax, eax
jne 0x100748a9
mov eax, dword [ebp - 0x414]
test eax, eax
je 0x100748a9
push eax
push ebx
push 1
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp eax, ebx
jge 0x10074841
push dword [ebp - 0x414]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov esi, dword [ebp - 0x410]
add esp, 4
xor ebx, ebx
jmp 0x10074753
cmp word [edi], 0
mov esi, edi
je 0x1007488a
nop dword [eax]
push esi
push str._s_r_n
push dword [ebp - 0x414]
call fcn.10001510
mov eax, esi
add esp, 0xc
lea edx, [eax + 2]
nop dword [eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10074870
sub eax, edx
sar eax, 1
lea esi, [esi + eax*2]
add esi, 2
cmp word [esi], cx
jne 0x10074850
push dword [ebp - 0x414]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov esi, dword [ebp - 0x410]
add esp, 4
mov ebx, 1
jmp 0x10074753
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
lea ecx, [ebp - 0x20c]
push ecx
mov eax, dword [eax]
or eax, 0x40000000
push eax
call dword [sym.imp.HncFoundation.dll_HncSetFileError]
mov esi, dword [ebp - 0x410]
xor ebx, ebx
jmp 0x10074753
mov esi, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
test edi, edi
je 0x100748e1
push edi
call esi
add esp, 4
mov ecx, dword [ebp - 4]
mov eax, ebx
pop ebx
pop edi
xor ecx, ebp
pop esi
call fcn.100be194
mov esp, ebp
pop ebp
ret 4