Function at 0x58aae0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffff14
mov dword [esp], edx
mov ebx, eax
mov eax, ebx
cmp dword [eax + 0x3f8], 0
jg 0x58b06a
mov byte [eax + 0x3f4], 1
mov edx, dword [eax + 0x3ec]
mov ecx, dword [eax + 0x200]
cmp edx, dword [ecx + 0xc]
jl 0x58ab22
mov byte [eax + 0x3f4], 0
jmp 0x58b06a
mov byte [esp + 0x28], 0
xor eax, eax
mov dword [esp + 0x34], eax
call sub.KERNEL32.DLL_GetTickCount
add eax, 0x19
mov dword [esp + 0x2c], eax
mov esi, ebx
mov eax, dword [esi + 0x318]
mov dword [esp + 0x14], eax
cmp dword [esi + 0x3ac], 0
jne 0x58ab7f
mov eax, esi
call fcn.0065fef8
test al, al
je 0x58ab70
mov eax, dword [esi + 0x1f0]
mov dword [esp + 0x30], eax
mov eax, esi
call fcn.006591e4
mov dword [esp + 0x10], eax
jmp 0x58ab93
xor eax, eax
mov dword [esp + 0x30], eax
mov eax, dword [esi + 0x38]
mov dword [esp + 0x10], eax
jmp 0x58ab93
mov eax, dword [ebx + 0x3ac]
mov dword [esp + 0x30], eax
mov eax, dword [esi + 0x3b0]
mov dword [esp + 0x10], eax
lea ecx, [esp + 0x94]
mov edx, dword [esi + 0x3ec]
mov eax, dword [esi + 0x200]
call sym.MassSender.exe__Plusmemou_TParagraphsList_GetItem_qqri
mov eax, dword [esp + 0xa4]
mov dword [esp + 0x1c], eax
xor eax, eax
mov dword [esp + 0x18], eax
mov eax, dword [esi + 0x3ec]
mov dword [esp + 0x24], eax
jmp 0x58ade9
mov edx, dword [esi + 0x3ec]
mov eax, dword [esi + 0x200]
call sym.MassSender.exe__Plusmemou_TDynArray2_GetPointer_qqri
mov edi, eax
mov eax, dword [esp + 0x1c]
mov dword [edi + 0x10], eax
cmp word [esi + 0x2da], 0
je 0x58ac99
call sub.KERNEL32.DLL_GetTickCount
sub eax, dword [esi + 0x3b4]
cmp eax, dword [sym.MassSender.exe__Plusmemou_ProgressInterval]
jle 0x58ac99
imul eax, dword [esi + 0x3ec], 0x64
mov edx, dword [esi + 0x200]
mov ecx, dword [edx + 0xc]
cdq
idiv ecx
mov ecx, eax
mov dword [esi + 0x24c], ecx
cmp ecx, 0x64
jne 0x58ac34
mov dword [esi + 0x24c], 0x63
cmp byte [esp + 0x28], 0
je 0x58ac5a
cmp dword [esp + 0x30], 0
je 0x58ac5a
mov eax, dword [esp + 0xc]
push eax
mov eax, dword [esp + 0x34]
call fcn.00638a38
push eax
call sub.GDI32.DLL_SelectObject
mov dword [esp + 0xc], eax
mov edx, ebx
mov eax, dword [ebx + 0x2dc]
call dword [ebx + 0x2d8]
cmp byte [esp + 0x28], 0
je 0x58ac8e
cmp dword [esp + 0x30], 0
je 0x58ac8e
mov eax, dword [esp + 0xc]
push eax
mov eax, dword [esp + 0x34]
call fcn.00638a38
push eax
call sub.GDI32.DLL_SelectObject
mov dword [esp + 0xc], eax
call sub.KERNEL32.DLL_GetTickCount
mov dword [ebx + 0x3b4], eax
mov esi, ebx
mov eax, dword [esi + 0x3ec]
mov dword [esp + 0x38], eax
cmp byte [edi + 0x54], 0
jne 0x58ad95
cmp byte [edi + 0x55], 0
jne 0x58acbe
mov edx, eax
mov eax, esi
call sym.MassSender.exe__Plusmemou_TPlusMemoU_ParseStartStopNow_qqri
mov eax, dword [edi + 0x40]
mov dword [esp + 0x20], eax
xor eax, eax
mov dword [esp + 4], eax
cmp dword [esp + 0x30], 0
je 0x58ace1
mov eax, dword [esp + 0x30]
call fcn.00638a38
mov dword [esp + 0x34], eax
jmp 0x58ace7
xor eax, eax
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x10]
push eax
push edi
mov eax, dword [esi + 0x3ec]
push eax
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x18]
push eax
push 1
lea eax, [esp + 0x24]
push eax
mov cl, byte [esp + 0x44]
xor cl, 1
mov edx, dword [esp + 0x50]
mov eax, esi
mov ebp, dword [eax]
call dword [ebp + 0xb8]
mov byte [esp + 0x28], 1
mov eax, dword [edi + 0x40]
sub eax, dword [esp + 0x20]
add dword [esp + 0x18], eax
inc dword [esi + 0x3ec]
lea ecx, [esp + 0x3c]
mov eax, dword [esi + 0x200]
mov edx, dword [esp + 0x38]
call sym.MassSender.exe__Plusmemou_TParagraphsList_GetItem_qqri
mov esi, ebx
mov eax, dword [esi + 0x214]
call sym.MassSender.exe__Plusmemou_TPlusNavigatorU_GetParNb_qqrv
cmp eax, dword [esp + 0x38]
jg 0x58ad9b
mov eax, esi
call sym.MassSender.exe__Plusmemou_TPlusMemoU_getTopLine_qqrv
mov edx, dword [esp + 0x4c]
sub edx, eax
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0xc8]
mov ebp, eax
mov eax, esi
call fcn.00659228
cmp ebp, eax
jge 0x58ad9b
push 0
mov eax, dword [esp + 0x50]
mov ecx, eax
add ecx, dword [esp + 0x80]
dec ecx
mov edx, eax
mov eax, esi
call sym.MassSender.exe__Plusmemou_TPlusMemoU_InvalidateLines_qqriio
jmp 0x58ad9b
inc dword [esi + 0x3ec]
mov eax, dword [edi + 0x40]
add dword [esp + 0x1c], eax
mov eax, ebx
mov edx, dword [eax + 0x3ec]
mov eax, dword [eax + 0x200]
cmp edx, dword [eax + 0xc]
jge 0x58ae08
mov esi, ebx
mov edi, dword [esi + 0x3ec]
cmp edi, dword [esi + 0x3f0]
jle 0x58ade9
lea ecx, [esp + 0x94]
mov edx, edi
mov eax, dword [esi + 0x200]
call sym.MassSender.exe__Plusmemou_TParagraphsList_GetItem_qqri
cmp byte [esp + 0xe8], 0
jne 0x58ade9
inc dword [esi + 0x3f0]
mov esi, ebx
mov eax, dword [esi + 0x3ec]
cmp eax, dword [esi + 0x3f0]
jg 0x58ae08
call sub.KERNEL32.DLL_GetTickCount
cmp eax, dword [esp + 0x2c]
jl 0x58abcb
cmp byte [esp + 0x28], 0
je 0x58afc1
mov eax, dword [ebx + 0x358]
cmp eax, dword [esp + 0x1c]
jle 0x58ae2b
mov eax, dword [esp + 0x18]
add dword [ebx + 0x358], eax
jmp 0x58ae35
mov dword [ebx + 0x358], 0xffffffff
cmp dword [esp + 0x34], 0
je 0x58ae51
mov eax, dword [esp + 0xc]
push eax
mov eax, dword [esp + 0x38]
push eax
call sub.GDI32.DLL_SelectObject
push eax
call sub.GDI32.DLL_DeleteObject
mov eax, dword [ebx + 0x314]
mov esi, dword [eax + 8]
dec esi
test esi, esi
jl 0x58ae9f
inc esi
mov dword [esp + 0x10], 0
mov eax, dword [ebx + 0x314]
mov edx, dword [esp + 0x10]
call fcn.00681e54
cmp dword [eax + 0x18], 0
je 0x58ae98
mov edx, dword [eax + 0x1c]
cmp edx, dword [esp + 0x24]
jl 0x58ae98
mov edx, dword [eax + 0x1c]
cmp edx, dword [ebx + 0x3ec]
jge 0x58ae98
mov dword [eax + 0x28], connect
inc dword [esp + 0x10]
dec esi
jne 0x58ae68
cmp dword [esp + 0x18], 0
je 0x58aefb
mov edi, dword [ebx + 0x3ec]
mov eax, dword [ebx + 0x200]
mov esi, dword [eax + 0xc]
dec esi
sub esi, edi
jl 0x58aed3
inc esi
mov eax, dword [ebx + 0x200]
mov edx, edi
call sym.MassSender.exe__Plusmemou_TDynArray2_GetPointer_qqri
mov edx, dword [esp + 0x18]
add dword [eax + 0x10], edx
inc edi
dec esi
jne 0x58aebb
cmp byte [ebx + 0x22c], 0
jne 0x58aef4
mov eax, dword [ebx + 0x31c]
cmp eax, dword [ebx + 0x3ec]
jl 0x58aef4
mov eax, dword [esp + 0x18]
add dword [ebx + 0x31c], eax
mov eax, ebx
call sym.MassSender.exe__Plusmemou_TPlusMemoU_setVScrollParams_qqrv
mov esi, ebx
mov eax, dword [esi + 0x210]
cmp dword [eax + 0x28], 0x7fffffff
jne 0x58af20
mov eax, esi
call fcn.0065fef8
test al, al
je 0x58af20
xor edx, edx
mov eax, esi
call sym.MassSender.exe__Plusmemou_TPlusMemoU_UpdateCaret_qqro
mov eax, dword [esi + 0x214]
call sym.MassSender.exe__Plusmemou_TPlusNavigatorU_GetLineNb_qqrv
mov ecx, eax
imul ecx, dword [esi + 0x450]
mov eax, dword [esi + 0x2a8]
cdq
idiv dword [ebx + 0x450]
add ecx, edx
mov eax, ecx
cmp eax, dword [ebx + 0x2a8]
je 0x58af7b
mov dword [esi + 0x2a8], eax
cmp byte [esi + 0x22e], 0
je 0x58af7b
push 0xffffffffffffffff
mov eax, dword [esi + 0x2a8]
cdq
idiv dword [esi + 0x394]
push eax
push 1
mov eax, esi
call fcn.0065fbfc
push eax
call sub.USER32.DLL_SetScrollPos
mov esi, ebx
mov eax, dword [esi + 0x318]
cmp eax, dword [esp + 0x14]
je 0x58afc1
cmp byte [esi + 0x22c], 0
jne 0x58afc1
mov eax, esi
call sym.MassSender.exe__Plusmemou_TPlusMemoU_setHScrollParams_qqrv
cmp byte [esi + 0x22d], 0
je 0x58afc1
push 0xffffffffffffffff
mov eax, dword [esi + 0x220]
cdq
idiv dword [esi + 0x398]
push eax
push 0
mov eax, esi
call fcn.0065fbfc
push eax
call sub.USER32.DLL_SetScrollPos
mov eax, ebx
mov edx, dword [eax + 0x3ec]
cmp edx, dword [eax + 0x3f0]
jg 0x58b026
mov eax, dword [esp]
cmp dword [eax + 4], 0
je 0x58b06a
mov eax, dword [0x7c9318]
mov eax, dword [eax]
call fcn.0064bcbc
cmp byte [ebx + 0x25a], 2
jne 0x58b06a
mov eax, dword [0x7c9318]
mov eax, dword [eax]
cmp byte [eax + 0x8c], 0
jne 0x58b06a
mov eax, ebx
call fcn.0065fef8
test al, al
je 0x58b06a
push 0
push 1
push 0x401
mov eax, ebx
call fcn.0065fbfc
push eax
call sub.USER32.DLL_PostMessageA
jmp 0x58b06a
mov byte [eax + 0x3f4], 0
mov dword [eax + 0x3f0], 0xffffffff
mov edx, dword [eax + 0x200]
mov edx, dword [edx + 0xc]
mov dword [eax + 0x3ec], edx
mov dword [eax + 0x24c], 0x64
cmp word [eax + 0x2da], 0
je 0x58b06a
mov esi, eax
mov edx, ebx
mov eax, dword [esi + 0x2dc]
call dword [esi + 0x2d8]
add esp, 0xec
pop ebp
pop edi
pop esi
pop ebx
ret