Function at 0x10023710
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xac0
mov eax, dword [0x100df00c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push 0x6e
lea eax, [ebp - 0xaa4]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0xac0], 0
mov ebx, 0x4000
mov dword [ebp - 0xaa8], 1
mov dword [ebp - 0xab0], ebx
mov dword [ebp - 0xab8], 0
call sym.HncBaseDraw.dll_HncMakeFontListFile
test eax, eax
je 0x10023c99
mov edx, str.__HWP_HFT_Information_Data_V5.00
mov ecx, str.hftinfo.dat
call fcn.1002ac90
mov dword [ebp - 0xabc], eax
test eax, eax
je 0x10023c99
lea eax, [ebp - 0xab8]
push eax
push ecx
mov ecx, dword [0x100ed980]
lea edx, [ebp - 0x414]
call fcn.10021be0
add esp, 8
push esi
push edi
nop dword [eax + eax]
lea eax, [ebp - 0x414]
push eax
call fcn.100ae350
mov esi, eax
test esi, esi
js 0x10023812
mov ecx, dword [0x100eded8]
mov eax, 0x2aaaaaab
mov edi, dword [0x100eded4]
sub ecx, edi
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, esi
jbe 0x10023caa
lea eax, [esi + esi*2]
cmp dword [edi + eax*8 + 0x14], 8
lea eax, [edi + eax*8]
jb 0x100237f8
mov eax, dword [eax]
test eax, eax
je 0x10023812
push eax
lea eax, [ebp - 0x61c]
push 0x104
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
add esp, 0xc
mov edx, str.__HWP_Font_List_File_V5.00
lea ecx, [ebp - 0x61c]
call fcn.1002aae0
mov esi, eax
mov dword [ebp - 0xaac], esi
test esi, esi
je 0x10023c0d
push ebx
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov edi, eax
add esp, 4
mov dword [ebp - 0xab4], edi
test edi, edi
je 0x10023c8c
push ebx
push edi
mov edx, str.Font_List
mov ecx, esi
call fcn.1002ae50
lea ecx, [ebx - 2]
add esp, 8
cmp ecx, eax
jne 0x100238bb
mov esi, dword [ebp - 0xaa8]
shl esi, 0xe
nop dword [eax]
add ebx, esi
push ebx
push edi
mov dword [ebp - 0xab0], ebx
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_realloc]
add esp, 8
test eax, eax
je 0x10023a58
mov ecx, dword [ebp - 0xaac]
mov edi, eax
inc dword [ebp - 0xaa8]
mov edx, str.Font_List
push ebx
push eax
mov dword [ebp - 0xab4], edi
add esi, 0x4000
call fcn.1002ae50
lea ecx, [ebx - 2]
add esp, 8
cmp ecx, eax
je 0x10023870
cmp word [edi], 0
mov ebx, edi
je 0x10023a04
nop word [eax + eax]
push 0x100c46b4
push ebx
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcspbrk]
mov edi, eax
lea eax, [ebp - 0xa90]
mov esi, edi
sub esi, ebx
sar esi, 1
push esi
push ebx
push 0x20
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy_s]
xor eax, eax
mov dword [ebp - 0xa2c], 0
mov word [ebp + esi*2 - 0xa90], ax
lea ecx, [edi + 2]
push 0
lea eax, [ebp - 0xa50]
mov dword [ebp - 0xa28], 0xd
mov dword [ebp - 0xa34], eax
lea edx, [ebp - 0xa34]
push 0
lea eax, [ebp - 0xaa4]
mov dword [ebp - 0xa24], 0xa
push 0
mov dword [ebp - 0xa30], eax
lea eax, [ebp - 0xa28]
push 2
push eax
mov dword [ebp - 0xa20], 0
call fcn.1002b250
add esp, 0x2c
test eax, eax
je 0x100239d9
lea ecx, [ebp - 0xaa4]
call fcn.1001d4f0
mov esi, eax
cmp esi, 0xffffffff
je 0x100239d9
push dword [esi*4 + 0x100c6be0]
lea eax, [ebp - 0x104]
push str.Font_Definition
push 0x100c46b8
push eax
call fcn.10093430
mov ecx, dword [ebp - 0xabc]
lea eax, [ebp - 0xa1c]
add esp, 0xc
lea edx, [ebp - 0x104]
push eax
lea eax, [ebp - 0xa90]
push eax
call fcn.1002af40
add esp, 0xc
test eax, eax
jne 0x100239d9
lea eax, [ebp - 0xa50]
mov ecx, esi
push eax
lea eax, [ebp - 0x414]
push eax
lea edx, [ebp - 0xa90]
call fcn.10023140
add esp, 8
mov eax, ebx
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x100239e0
sub eax, edx
sar eax, 1
lea ebx, [ebx + eax*2]
add ebx, 2
cmp word [ebx], cx
jne 0x100238d0
mov edi, dword [ebp - 0xab4]
mov ebx, dword [ebp - 0xaac]
mov eax, dword [ebx]
test eax, eax
je 0x10023a1a
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
push ebx
mov ebx, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
call ebx
xor esi, esi
push edi
mov dword [ebp - 0xaac], esi
call ebx
add esp, 8
lea eax, [ebp - 0xab8]
lea edx, [ebp - 0x414]
push eax
push ecx
xor ecx, ecx
call fcn.10021be0
add esp, 8
test eax, eax
je 0x10023a6b
mov ebx, dword [ebp - 0xab0]
jmp 0x100237b0
push 2
call dword [sym.imp.HncFoundation.dll_HncSetError]
mov esi, dword [ebp - 0xaac]
jmp 0x10023c0f
push 0x104
lea eax, [ebp - 0x20c]
xor ebx, ebx
push eax
push str._AllUserDataUserSharedFonts_
mov dword [ebp - 0xab0], ebx
call dword [sym.imp.HncFoundation.dll_HncPathToAbsolute]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.HncFoundation.dll_HncPathCreate]
test eax, eax
je 0x10023c03
push str.HFTInfo.ini
lea eax, [ebp - 0x20c]
push 0x104
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
push 0x100c46ac
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0xaa8]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__wfopen_s]
add esp, 0x18
test eax, eax
jne 0x10023c6c
mov eax, dword [ebp - 0xaa8]
test eax, eax
je 0x10023c6c
push str.__HWP_User_HFT_Information_Data_V5.00
push 0xfeff
push str._c_s_r_n_r_n
push eax
call fcn.10001510
add esp, 0x10
xor esi, esi
cmp dword [esi + 0x100f3f5c], 0
jle 0x10023bce
push dword [esi + 0x100c6be0]
push str.Font_Definition
push str.__s____s__r_n
push dword [ebp - 0xaa8]
call fcn.10001510
xor ebx, ebx
add esp, 0x10
cmp dword [esi + 0x100f3f5c], ebx
jle 0x10023b8e
xor edi, edi
nop dword [eax]
mov ecx, dword [esi + 0x100f43e0]
add ecx, edi
lea eax, [ecx + 0x8a0]
push eax
lea eax, [ecx + 0x698]
push eax
lea eax, [ecx + 0x490]
push eax
lea eax, [ecx + 0x288]
push eax
lea eax, [ecx + 0x80]
push eax
push ecx
push str._s_s__s__s__s__s_r_n
push dword [ebp - 0xaa8]
call fcn.10001510
inc ebx
add esp, 0x20
add edi, 0x8e0
cmp ebx, dword [esi + 0x100f3f5c]
jl 0x10023b40
push 0x100c4e9c
push dword [ebp - 0xaa8]
call fcn.10001510
push dword [esi + 0x100f43e0]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov ebx, dword [ebp - 0xab0]
add esp, 0xc
inc ebx
mov dword [esi + 0x100f3f5c], 0
mov dword [esi + 0x100f43e0], 0
mov dword [ebp - 0xab0], ebx
add esi, 4
cmp esi, 0x1c
jl 0x10023b02
push dword [ebp - 0xaa8]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
test ebx, ebx
jg 0x10023bfd
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wremove]
add esp, 4
mov esi, dword [ebp - 0xaac]
mov dword [ebp - 0xac0], 1
xor edi, edi
mov ebx, dword [ebp - 0xabc]
mov eax, dword [ebx]
test eax, eax
je 0x10023c25
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
push ebx
mov ebx, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
call ebx
add esp, 4
test esi, esi
je 0x10023c4b
mov eax, dword [esi]
test eax, eax
je 0x10023c45
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
push esi
call ebx
add esp, 4
test edi, edi
je 0x10023c55
push edi
call ebx
add esp, 4
mov eax, dword [ebp - 0xac0]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100be194
mov esp, ebp
pop ebp
ret
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]
jmp 0x10023c03
push 2
call dword [sym.imp.HncFoundation.dll_HncSetError]
jmp 0x10023c0f
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop ebx
call fcn.100be194
mov esp, ebp
pop ebp
ret
call fcn.100ae940
int3