Function at 0x100076db
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
push esi
mov esi, ecx
mov eax, dword [esi + 4]
push edi
xor edi, edi
cmp eax, edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x34], edi
mov dword [ebp - 0x1c], eax
jbe 0x100078bd
push ebx
push dword [esi + 0x14]
call dword [sym.imp.USER32.dll_GetDC]
mov ebx, eax
mov eax, dword [0x1002f834]
mov eax, dword [eax]
cmp eax, edi
mov dword [ebp - 0x14], ebx
je 0x10007725
push eax
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [ebp - 0x10], eax
jmp 0x10007728
mov dword [ebp - 0x10], edi
lea eax, [ebp - 0x58]
push eax
push ebx
call dword [sym.imp.GDI32.dll_GetTextMetricsA]
push edi
push edi
push 3
push 0x1002668c
push ebx
call dword [sym.imp.USER32.dll_GetTabbedTextExtentA]
movzx eax, ax
add eax, dword [ebp - 0x44]
cmp dword [esi + 0x24], edi
mov dword [ebp - 0x20], eax
jne 0x1000776f
push 0x9c40
call fcn.1001b998
cmp eax, edi
pop ecx
mov dword [esi + 0x24], eax
jne 0x1000776f
mov ecx, esi
call fcn.1000746d
jmp 0x10007890
push edi
mov ecx, esi
call fcn.10006b3c
push edi
push edi
push dword [eax]
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push edi
lea eax, [ebp - 4]
push eax
push dword [esi + 0x28]
xor ebx, ebx
push dword [esi + 0x2c]
mov dword [ebp - 0xc], edi
jmp 0x10007878
add dword [ebp - 4], ebx
mov dword [ebp - 8], edi
je 0x10007890
mov ebx, dword [ebp - 4]
cmp ebx, edi
je 0x1000784e
push dword [esi + 0x20]
mov ecx, esi
call fcn.10006b3c
mov edi, eax
mov eax, dword [edi + 8]
add eax, dword [ebp - 0xc]
cmp eax, 0x9c40
ja 0x1000788e
mov eax, dword [esi + 0x20]
inc eax
cmp eax, dword [ebp - 0x1c]
jae 0x100077e4
push eax
mov ecx, esi
call fcn.10006b3c
mov eax, dword [eax]
sub eax, dword [edi]
jmp 0x100077e7
mov eax, dword [edi + 0xc]
cmp eax, ebx
mov dword [ebp - 0x18], eax
ja 0x10007852
push dword [edi + 8]
mov edx, dword [esi + 0x24]
add edx, dword [ebp - 0xc]
mov ecx, dword [esi + 0x10]
mov eax, dword [ecx]
push edx
mov edx, dword [esi + 0x2c]
push dword [edi + 0xc]
add edx, dword [ebp - 8]
push edx
call dword [eax + 0xc]
mov eax, dword [esi + 0x24]
mov ebx, dword [ebp - 0xc]
push 0
push 0
push dword [edi + 8]
add eax, ebx
push eax
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_GetTabbedTextExtentA]
movzx eax, ax
cmp dword [esi + 0x34], eax
jge 0x1000782e
mov dword [esi + 0x34], eax
mov eax, dword [ebp - 0x18]
add dword [ebp - 8], eax
mov dword [edi + 4], ebx
add ebx, dword [edi + 8]
inc dword [esi + 0x20]
mov dword [ebp - 0xc], ebx
mov ebx, dword [ebp - 4]
sub ebx, dword [ebp - 8]
jne 0x100077b0
xor edi, edi
xor ebx, ebx
jmp 0x10007867
mov eax, dword [esi + 0x2c]
mov ecx, dword [ebp - 8]
push ebx
add ecx, eax
push ecx
push eax
call fcn.1001bfd0
add esp, 0xc
xor edi, edi
push edi
lea eax, [ebp - 4]
push eax
mov eax, dword [esi + 0x28]
sub eax, ebx
push eax
mov eax, dword [esi + 0x2c]
add eax, ebx
push eax
push dword [esi + 0xc]
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x10007799
jmp 0x10007890
xor edi, edi
mov eax, dword [ebp - 0x20]
add dword [esi + 0x34], eax
push 1
mov ecx, esi
call fcn.100069e8
cmp dword [ebp - 0x10], edi
pop ebx
je 0x100078b1
push dword [ebp - 0x10]
push dword [ebp - 0x14]
call dword [sym.imp.GDI32.dll_SelectObject]
push dword [ebp - 0x14]
push dword [esi + 0x14]
call dword [sym.imp.USER32.dll_ReleaseDC]
pop edi
pop esi
leave
ret