Function at 0x100ab220
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x100df00c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, edx
mov dword [ebp - 0x20], 0
push edi
push 0
mov ebx, ecx
lea eax, [esi + 0x80]
mov dword [ebp - 0x34], ebx
push 0
push ebx
mov dword [esi + 0x4c], 0
mov dword [esi + 0x48], 0
mov dword [esi + 0x5c], 0
mov dword [esi + 0x58], 0
mov dword [esi + 0x54], eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__lseek]
add esp, 0xc
test eax, eax
je 0x100ab282
mov edi, 1
jmp 0x100ab714
push 0x200
push 0x100eda60
push ebx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__read]
add esp, 0xc
cmp eax, 0x200
je 0x100ab2a7
mov edi, 2
jmp 0x100ab714
mov ecx, 0x100eda60
mov edx, str.Han_Unified_Font_File_1.0
mov edi, 0x1c
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x100ab70f
add ecx, 4
add edx, 4
sub edi, 4
jae 0x100ab2b6
cmp word [0x100eda80], 1
je 0x100ab2df
mov edi, 4
jmp 0x100ab714
movzx edx, word [0x100eda8a]
xor eax, eax
mov word [0x100eda8a], ax
xorps xmm2, xmm2
mov eax, 0x100eda60
xorps xmm3, xmm3
mov ecx, 0x20
nop
movq xmm1, qword [eax]
xorps xmm0, xmm0
punpcklbw xmm1, xmm0
lea eax, [eax + 0x10]
paddw xmm2, xmm1
movq xmm1, qword [eax - 8]
punpcklbw xmm1, xmm0
paddw xmm3, xmm1
sub ecx, 1
jne 0x100ab300
paddw xmm2, xmm3
movaps xmm0, xmm2
psrldq xmm0, 8
paddw xmm2, xmm0
movups xmm0, xmm2
psrldq xmm0, 4
paddw xmm2, xmm0
movups xmm0, xmm2
psrldq xmm0, 2
paddw xmm2, xmm0
movd eax, xmm2
movzx eax, ax
cmp ax, dx
je 0x100ab360
lea edi, [ecx + 5]
jmp 0x100ab714
mov ecx, dword [esi + 0x14]
mov edx, 1
movzx eax, word [0x100edc00]
shl edx, cl
test eax, edx
jne 0x100ab37f
mov edi, 6
jmp 0x100ab714
movzx eax, word [0x100edbda]
mov dword [esi + 0x1c], eax
movsx eax, word [0x100edbdc]
mov dword [esi + 0x20], eax
movsx eax, word [0x100edbde]
mov dword [esi + 0x24], eax
movsx eax, word [0x100edbe0]
mov dword [esi + 0x28], eax
movsx eax, word [0x100edbe2]
mov dword [esi + 0x2c], eax
movsx eax, word [0x100edbe4]
mov dword [esi + 0x30], eax
movsx eax, word [0x100edbe6]
mov dword [esi + 0x34], eax
movsx eax, word [0x100edbe8]
mov dword [esi + 0x38], eax
movsx eax, word [0x100edbea]
mov dword [esi + 0x3c], eax
movzx eax, word [0x100edc06]
mov dword [esi + 0x40], eax
movzx eax, word [0x100edc08]
push 0xffffffffffffffff
push 0x100edb6c
mov dword [esi + 0x44], eax
lea eax, [esi + 0x60]
push 0x20
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncpy_s]
mov cl, byte [0x100edbb7]
add esp, 0x10
movzx edx, byte [0x100edbb6]
test cl, cl
movzx eax, cl
cmovne edx, eax
mov byte [esi + 0x13], dl
cmp word [0x100edc04], 0
jne 0x100ab42f
mov edi, 7
jmp 0x100ab714
push 0
push dword [0x100edc0a]
push ebx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__lseek]
xor eax, eax
mov dword [ebp - 0x28], 0
add esp, 0xc
lea edi, [ebp - 0x20]
cmp ax, word [0x100edc04]
jae 0x100ab4be
push 4
lea eax, [ebp - 0x30]
push eax
push ebx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__read]
add esp, 0xc
cmp eax, 4
jne 0x100ab685
push dword [ebp - 0x30]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov ecx, eax
add esp, 4
mov dword [edi], ecx
test ecx, ecx
je 0x100ab685
mov eax, dword [ebp - 0x30]
add eax, 0xfffffffc
push eax
lea eax, [ecx + 4]
push eax
push ebx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__read]
mov ecx, dword [ebp - 0x30]
add esp, 0xc
add ecx, 0xfffffffc
cmp eax, ecx
jne 0x100ab685
mov ecx, dword [ebp - 0x28]
movzx eax, word [0x100edc04]
inc ecx
mov edi, dword [edi]
mov dword [ebp - 0x28], ecx
cmp ecx, eax
jl 0x100ab456
mov dword [edi], 0
lea ebx, [esi + 0x100]
mov eax, dword [ebp - 0x20]
mov edi, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov dword [esi + 0x50], eax
movzx edx, word [0x100edc08]
mov eax, dword [esi + 0x54]
shl edx, 2
mov dword [ebp - 0x28], eax
lea ecx, [edx + eax]
mov dword [ebp - 0x24], ecx
mov dword [esi + 0x54], ecx
cmp ecx, ebx
jbe 0x100ab505
push edx
mov dword [esi + 0x54], eax
call edi
mov ecx, dword [esi + 0x54]
add esp, 4
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], ecx
mov dword [esi + 0x4c], eax
movzx edx, word [0x100edc08]
shl edx, 4
lea eax, [ecx + edx]
mov dword [ebp - 0x2c], eax
mov dword [esi + 0x54], eax
cmp eax, ebx
jbe 0x100ab533
push edx
mov dword [esi + 0x54], ecx
call edi
mov ecx, eax
add esp, 4
mov eax, dword [esi + 0x54]
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x2c], eax
mov dword [esi + 0x5c], ecx
lea edx, [esi + 0x100]
movzx ecx, word [0x100edc06]
shl ecx, 2
lea ebx, [eax + ecx]
mov dword [esi + 0x54], ebx
cmp ebx, edx
jbe 0x100ab565
push ecx
mov dword [esi + 0x54], eax
call edi
mov ebx, dword [esi + 0x54]
lea edx, [esi + 0x100]
add esp, 4
mov dword [ebp - 0x2c], eax
mov dword [esi + 0x48], eax
movzx ecx, word [0x100edc06]
shl ecx, 4
lea eax, [ebx + ecx]
mov dword [esi + 0x54], eax
cmp eax, edx
jbe 0x100ab587
push ecx
mov dword [esi + 0x54], ebx
call edi
add esp, 4
mov ebx, eax
mov dword [esi + 0x58], ebx
mov cx, word [0x100edc08]
test cx, cx
je 0x100ab5a0
cmp dword [esi + 0x4c], 0
je 0x100ab708
cmp dword [esi + 0x5c], 0
je 0x100ab708
mov ax, word [0x100edc06]
test ax, ax
je 0x100ab5bf
cmp dword [esi + 0x48], 0
je 0x100ab708
test ebx, ebx
je 0x100ab708
mov edi, dword [0x100edc0e]
movzx ecx, cx
movzx eax, ax
add ecx, eax
je 0x100ab6ee
mov eax, dword [ebp - 0x24]
add ebx, 4
add eax, 4
mov dword [ebp - 0x24], eax
push 0
push edi
push dword [ebp - 0x34]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__lseek]
add esp, 0xc
cmp eax, edi
jne 0x100ab701
push 0xe
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x34]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__read]
add esp, 0xc
cmp eax, 0xe
jne 0x100ab701
mov eax, dword [ebp - 0x14]
add dword [ebp - 0xa], edi
cmp word [ebp - 0xe], 0
mov dword [ebp - 0x38], eax
movzx eax, word [ebp - 0x10]
mov dword [ebp - 0x14], edi
jne 0x100ab68f
mov ecx, dword [ebp - 0x24]
mov word [ecx - 4], ax
movzx eax, word [ebp - 0xe]
mov word [ecx - 2], ax
movzx eax, word [ebp - 0xc]
mov word [ecx], ax
mov eax, dword [ebp - 0xa]
mov dword [ecx + 4], eax
mov dword [ecx + 8], 0
add ecx, 0x10
movzx eax, word [ebp - 0x10]
mov dword [ebp - 0x24], ecx
mov ecx, dword [ebp - 0x28]
mov dword [ecx], eax
add ecx, 4
mov ax, word [0x100edc08]
mov dx, word [0x100edc06]
mov dword [ebp - 0x28], ecx
mov ecx, 0xffff
add ax, cx
mov word [0x100edc08], ax
jmp 0x100ab6dd
mov edi, 8
jmp 0x100ab714
mov ecx, dword [ebp - 0x2c]
mov word [ebx - 4], ax
movzx eax, word [ebp - 0xe]
mov word [ebx - 2], ax
movzx eax, word [ebp - 0xc]
mov word [ebx], ax
mov eax, dword [ebp - 0xa]
mov dword [ebx + 4], eax
mov dword [ebx + 8], 0
add ebx, 0x10
movzx eax, word [ebp - 0x10]
mov dword [ecx], eax
mov eax, 0xffff
mov dx, word [0x100edc06]
add ecx, 4
add dx, ax
mov dword [ebp - 0x2c], ecx
mov ax, word [0x100edc08]
mov word [0x100edc06], dx
add edi, dword [ebp - 0x38]
movzx ecx, ax
movzx eax, dx
add ecx, eax
jne 0x100ab5e7
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100be194
mov esp, ebp
pop ebp
ret
mov edi, 0xa
jmp 0x100ab714
mov edi, 9
jmp 0x100ab714
mov edi, 3
mov ecx, dword [ebp - 0x20]
push esi
mov dword [esi + 0x50], ecx
mov dword [esi + 0x44], 0
call fcn.100ab7a0
mov ecx, dword [ebp - 4]
add esp, 4
mov eax, edi
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.100be194
mov esp, ebp
pop ebp
ret