Function at 0x10006b77
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, ecx
mov eax, dword [edi + 0x1c]
cmp ebx, eax
jb 0x10006b9b
mov ecx, dword [edi + 0x20]
add ecx, eax
cmp ebx, ecx
jb 0x10006f73
push esi
push dword [edi + 0x14]
call dword [sym.imp.USER32.dll_GetDC]
mov dword [ebp - 0x24], eax
mov eax, dword [0x1002f834]
mov eax, dword [eax]
xor esi, esi
cmp eax, esi
je 0x10006bc4
push eax
push dword [ebp - 0x24]
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [ebp - 0x28], eax
jmp 0x10006bc7
mov dword [ebp - 0x28], esi
lea eax, [ebp - 0x88]
push eax
push dword [ebp - 0x24]
call dword [sym.imp.GDI32.dll_GetTextMetricsA]
push esi
push esi
push 3
push 0x1002668c
push dword [ebp - 0x24]
call dword [sym.imp.USER32.dll_GetTabbedTextExtentA]
movzx eax, ax
add eax, dword [ebp - 0x74]
push ebx
mov dword [ebp - 0x30], eax
mov eax, dword [edi + 4]
mov ecx, edi
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x18], eax
call fcn.10006b3c
mov esi, dword [eax + 8]
xor eax, eax
inc eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x14], eax
lea eax, [ebx + 1]
mov dword [ebp - 0x20], ebx
mov dword [ebp - 4], ebx
mov dword [ebp + 8], eax
cmp dword [ebp - 0xc], 0
je 0x10006c50
and dword [ebp - 0x10], 0
test ebx, ebx
jbe 0x10006c4a
lea eax, [ebx - 1]
push eax
mov ecx, edi
call fcn.10006b3c
mov eax, dword [eax + 8]
add eax, esi
cmp eax, 0x9c40
ja 0x10006c4a
mov esi, eax
dec ebx
mov dword [ebp - 0x10], 1
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0x14], 0
je 0x10006c8b
mov eax, dword [ebp + 8]
and dword [ebp - 0x10], 0
cmp eax, dword [ebp - 0x18]
jae 0x10006c85
push eax
mov ecx, edi
call fcn.10006b3c
mov eax, dword [eax + 8]
add eax, esi
cmp eax, 0x9c40
ja 0x10006c85
inc dword [ebp - 4]
inc dword [ebp + 8]
mov esi, eax
mov dword [ebp - 0x10], 1
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0xc], 0
jne 0x10006c21
cmp dword [ebp - 0x14], 0
jne 0x10006c1b
mov edx, dword [ebp - 4]
mov ecx, dword [edi + 0x1c]
sub edx, ebx
inc edx
cmp ebx, ecx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x34], edx
jb 0x10006d05
mov eax, dword [edi + 0x20]
add eax, ecx
cmp ebx, eax
jae 0x10006d01
push dword [ebp - 0x20]
sub eax, ebx
lea ecx, [eax + ebx]
mov dword [ebp - 0x10], ebx
mov ebx, edx
sub ebx, eax
mov dword [ebp - 0x18], eax
lea esi, [ecx - 1]
lea eax, [ebx + ecx - 1]
mov dword [ebp - 0xc], ecx
mov ecx, edi
mov dword [ebp - 0x14], esi
mov dword [ebp + 8], eax
call fcn.10006b3c
push esi
mov ecx, edi
mov dword [ebp - 0x1c], eax
call fcn.10006b3c
mov esi, dword [eax + 8]
mov ecx, dword [ebp - 0x1c]
add esi, dword [eax + 4]
mov ecx, dword [ecx + 4]
and dword [ebp - 8], 0
sub esi, ecx
mov dword [ebp - 4], esi
jmp 0x10006da2
cmp ebx, ecx
ja 0x10006d7b
lea eax, [edx + ebx]
cmp ecx, eax
jae 0x10006d7b
mov eax, edx
sub eax, ecx
add eax, ebx
lea esi, [eax + ecx - 1]
mov dword [ebp - 0xc], ebx
mov ebx, edx
mov dword [ebp - 0x18], eax
sub ebx, eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x10], ecx
lea eax, [ebx + eax - 1]
push ecx
mov ecx, edi
mov dword [ebp - 0x14], esi
mov dword [ebp + 8], eax
call fcn.10006b3c
push dword [ebp - 0x14]
mov ecx, edi
mov esi, eax
call fcn.10006b3c
mov ecx, dword [esi + 4]
mov esi, dword [eax + 8]
add esi, dword [eax + 4]
mov eax, dword [ebp - 0x20]
and dword [ebp - 8], 0
mov dword [ebp - 0x1c], ecx
sub esi, ecx
mov dword [ebp - 4], eax
jmp 0x10006d74
push dword [ebp - 4]
mov ecx, edi
call fcn.10006b3c
mov eax, dword [eax + 8]
add dword [ebp - 8], eax
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 8]
jbe 0x10006d5e
jmp 0x10006d9b
mov eax, dword [ebp - 0x20]
xor esi, esi
lea eax, [edx + eax - 1]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], esi
mov ebx, edx
mov dword [ebp + 8], eax
and dword [ebp - 4], 0
mov ecx, dword [ebp - 0x1c]
cmp dword [ebp - 0x18], 0
jbe 0x10006ddc
mov eax, dword [edi + 0x24]
add ecx, eax
push esi
push ecx
mov ecx, dword [ebp - 8]
add eax, ecx
push eax
call fcn.1001bfd0
mov esi, dword [ebp - 0x10]
add esp, 0xc
jmp 0x10006dd7
push esi
mov ecx, edi
call fcn.10006b3c
mov ecx, dword [ebp - 8]
mov dword [eax + 4], ecx
add ecx, dword [eax + 8]
inc esi
mov dword [ebp - 8], ecx
cmp esi, dword [ebp - 0x14]
jbe 0x10006dc2
test ebx, ebx
jbe 0x10006f07
mov eax, dword [ebp - 0xc]
push eax
mov ecx, edi
xor ebx, ebx
mov dword [ebp - 8], eax
call fcn.10006b3c
push ebx
push ebx
push dword [eax]
push dword [edi + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp + 8]
ja 0x10006f07
and dword [ebp - 0xc], 0
push 0
lea eax, [ebp - 0xc]
push eax
mov eax, dword [edi + 0x28]
sub eax, ebx
push eax
mov eax, dword [edi + 0x2c]
add eax, ebx
push eax
push dword [edi + 0xc]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10006f72
add dword [ebp - 0xc], ebx
push 0
pop ebx
mov dword [ebp - 0x18], ebx
je 0x10006f07
mov eax, dword [ebp + 8]
cmp dword [ebp - 8], eax
ja 0x10006f07
push dword [ebp - 8]
mov ecx, edi
call fcn.10006b3c
mov esi, eax
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 8]
jae 0x10006e72
inc eax
push eax
mov ecx, edi
call fcn.10006b3c
mov eax, dword [eax]
sub eax, dword [esi]
jmp 0x10006e75
mov eax, dword [esi + 0xc]
mov ecx, dword [ebp - 0xc]
sub ecx, ebx
cmp eax, ecx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x1c], ecx
ja 0x10006ee7
push dword [esi + 8]
mov edx, dword [edi + 0x24]
add edx, dword [ebp - 4]
mov ebx, dword [ebp - 0x18]
mov ecx, dword [edi + 0x10]
mov eax, dword [ecx]
push edx
mov edx, dword [edi + 0x2c]
push dword [esi + 0xc]
add edx, ebx
push edx
call dword [eax + 0xc]
mov eax, dword [edi + 0x24]
add eax, dword [ebp - 4]
push 0
push 0
push dword [esi + 8]
push eax
push dword [ebp - 0x24]
call dword [sym.imp.USER32.dll_GetTabbedTextExtentA]
movzx eax, ax
cmp dword [ebp - 0x2c], eax
jge 0x10006ec4
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 4]
add ebx, dword [ebp - 0x10]
mov dword [esi + 4], eax
add eax, dword [esi + 8]
inc dword [ebp - 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 8]
mov dword [ebp - 0x18], ebx
jbe 0x10006e4f
jmp 0x10006efb
mov eax, dword [edi + 0x2c]
push ecx
lea ecx, [eax + ebx]
push ecx
push eax
call fcn.1001bfd0
mov ebx, dword [ebp - 0x1c]
add esp, 0xc
mov eax, dword [ebp + 8]
cmp dword [ebp - 8], eax
jbe 0x10006e0d
mov eax, dword [ebp - 0x20]
mov esi, dword [ebp - 0x2c]
add esi, dword [ebp - 0x30]
mov dword [edi + 0x1c], eax
cmp dword [edi + 0x34], esi
mov eax, dword [ebp - 0x34]
mov dword [edi + 0x20], eax
jge 0x10006f54
push 0x1c
pop ebx
push ebx
lea eax, [ebp - 0x50]
push 0
push eax
mov dword [edi + 0x34], esi
call fcn.1001b590
and dword [ebp - 0x48], 0
add esp, 0xc
xor eax, eax
inc eax
push eax
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0x50]
push eax
push 0
push dword [edi + 0x14]
dec esi
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x44], esi
call dword [sym.imp.USER32.dll_SetScrollInfo]
cmp dword [ebp - 0x28], 0
je 0x10006f66
push dword [ebp - 0x28]
push dword [ebp - 0x24]
call dword [sym.imp.GDI32.dll_SelectObject]
push dword [ebp - 0x24]
push dword [edi + 0x14]
call dword [sym.imp.USER32.dll_ReleaseDC]
pop esi
pop edi
pop ebx
leave
ret 4