Function at 0x44f570
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x4abca0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x1fc], 0
je 0x44f766
push 0
lea eax, [ebp - 0x14]
push eax
push 0xc
lea eax, [ebp - 0x10]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, 1
jne 0x44f77c
cmp dword [ebp - 0x14], 0xc
jne 0x44f77c
mov eax, dword [esi + 0x1fc]
mov edi, dword [ebp - 0x10]
cmp edi, dword [eax + 0x1c]
je 0x44f623
mov dword [eax + 0x1c], edi
mov eax, dword [esi + 8]
push 0
push 0
push esi
mov eax, dword [eax + 0x38c]
call eax
mov ebx, dword [esi + 0x208]
test ebx, ebx
je 0x44f623
mov edx, dword [esi + 0x1fc]
push 1
movsx eax, word [edx + 0x104]
lea ecx, [eax + eax*2]
mov eax, dword [edx + 0x108]
mov edx, dword [eax + ecx*8 + 8]
sub edx, dword [esi + 0x60]
sub edx, dword [eax + ecx*8]
mov ecx, 0
cmovns ecx, edx
xor eax, eax
test edi, edi
cmovns eax, edi
cmp eax, ecx
cmovle ecx, eax
push ecx
push 2
push ebx
call dword [sym.imp.USER32.dll_SetScrollPos]
mov eax, dword [esi + 0x1fc]
mov edi, dword [ebp - 0xc]
cmp edi, dword [eax + 0x20]
je 0x44f68f
mov dword [eax + 0x20], edi
mov eax, dword [esi + 8]
push 0
push 0
push esi
mov eax, dword [eax + 0x38c]
call eax
mov ebx, dword [esi + 0x20c]
test ebx, ebx
je 0x44f68f
mov edx, dword [esi + 0x1fc]
push 1
movsx eax, word [edx + 0x104]
lea ecx, [eax + eax*2]
mov eax, dword [edx + 0x108]
mov edx, dword [eax + ecx*8 + 0xc]
sub edx, dword [eax + ecx*8 + 4]
mov ecx, 0
sub edx, dword [esi + 0x64]
cmovns ecx, edx
xor eax, eax
test edi, edi
cmovns eax, edi
cmp eax, ecx
cmovle ecx, eax
push ecx
push 2
push ebx
call dword [sym.imp.USER32.dll_SetScrollPos]
mov ebx, dword [esi + 0x1fc]
mov ecx, ebx
mov edx, dword [ebp - 8]
push 5
push 0
call fcn.00460790
add esp, 8
test eax, eax
je 0x44f766
mov ecx, dword [esi + 0x23c]
test ecx, ecx
je 0x44f6c0
call dword [sym.imp.MMFS2.dll_Ordinal_484]
jmp 0x44f6cb
mov eax, dword [esi + 8]
push dword [eax]
call dword [sym.imp.MMFS2.dll_Ordinal_28]
mov edi, eax
test edi, edi
je 0x44f74f
mov ecx, ebx
mov dword [ebx + 0x38], edi
call fcn.004606f0
mov ecx, ebx
call fcn.004618f0
push dword [ebx + 0x54]
push dword [ebx + 0x38]
call dword [sym.imp.GDI32.dll_SetROP2]
push dword [ebx + 0x58]
push dword [ebx + 0x38]
call dword [sym.imp.GDI32.dll_SelectObject]
push dword [ebx + 0x48]
push dword [ebx + 0x38]
call dword [sym.imp.GDI32.dll_SetBkMode]
push dword [ebx + 0x50]
push dword [ebx + 0x38]
call dword [sym.imp.GDI32.dll_SetBkColor]
push dword [ebx + 0x4c]
push dword [ebx + 0x38]
call dword [sym.imp.GDI32.dll_SetTextColor]
push dword [ebx + 0x44]
push dword [ebx + 0x38]
call dword [sym.imp.GDI32.dll_SetTextAlign]
mov dword [ebx + 0x38], 0
mov ecx, dword [esi + 0x23c]
push edi
test ecx, ecx
je 0x44f744
call dword [sym.imp.MMFS2.dll_Ordinal_682]
jmp 0x44f74f
mov eax, dword [esi + 8]
push dword [eax]
call dword [sym.imp.MMFS2.dll_Ordinal_30]
mov eax, dword [esi + 8]
push 0
push 0
push esi
mov eax, dword [eax + 0x38c]
call eax
or dword [esi + 0x200], 1
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046fd1f
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0046fd1f
mov esp, ebp
pop ebp
ret