Function at 0x487cf0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
push 0xffffffffffffffff
push 0x571e28
mov eax, dword fs:[0]
push eax
sub esp, 0xa8
push ebx
push esi
push edi
mov eax, dword [0x5d7050]
xor eax, esp
push eax
lea eax, [esp + 0xb8]
mov dword fs:[0], eax
mov edi, ecx
mov dword [esp + 0x44], edi
push edi
call fcn.00487fe0
mov ecx, dword [ebp + 8]
mov eax, dword [edi]
mov edx, dword [eax + 0x3c]
push ecx
mov ecx, edi
call edx
mov ecx, dword [edi + 0x40]
cmp ecx, dword [edi + 0x44]
mov ebx, eax
lea eax, [edi + 0x3c]
mov dword [esp + 0x50], ebx
mov dword [esp + 0x68], eax
jbe 0x487d56
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
test ebx, ebx
je 0x487fba
mov eax, dword [edi]
mov edx, dword [eax + 0x20]
mov ecx, edi
call edx
cmp dword [eax + 0x44], 0
mov esi, dword [ebp + 0xc]
jne 0x487dae
fld dword [esi]
sub esp, 8
fstp dword [esp + 0x54]
fld dword [esp + 0x54]
fstp qword [esp]
call dword [sym.imp.MSVCR80.dll_ceil]
mov ecx, dword [ebp + 0x10]
fstp dword [esp + 0x54]
fld dword [esp + 0x54]
add esp, 8
fstp dword [esp + 0x4c]
fld dword [esp + 0x4c]
fst dword [esi]
fld dword [ecx + 8]
fcompp
fnstsw ax
test ah, 0x41
jp 0x487dae
fld dword [ecx]
fstp dword [esi]
fldz
mov ecx, dword [edi + 0x24]
fst dword [esp + 0x74]
lea eax, [edi + 0x24]
fst dword [esp + 0x78]
mov dword [esp + 0x60], eax
fst dword [esp + 0x7c]
xor eax, eax
fstp dword [esp + 0x80]
mov dword [esp + 0x54], ecx
mov edx, dword [ecx - 0xc]
test edx, edx
mov dword [esp + 0x4c], edx
mov dword [esp + 0x40], eax
jle 0x487fb0
jmp 0x487dff
mov ecx, dword [esp + 0x54]
mov eax, dword [esp + 0x40]
mov edx, dword [esp + 0x4c]
mov esi, dword [ebp + 0xc]
sub edx, eax
push edx
lea eax, [ecx + eax*2]
mov ecx, dword [esp + 0x48]
push eax
push ebx
mov ebx, dword [ebp + 0x10]
lea edi, [esp + 0x80]
call fcn.00488090
push 0x20
mov dword [esp + 0x4c], eax
call sub.MSVCR80.dll_void____cdecl_operator_new_unsigned_int_
mov edi, eax
xor ebx, ebx
add esp, 4
cmp edi, ebx
je 0x487f92
fldz
mov dword [edi + 0x14], ebx
fst dword [edi + 4]
mov dword [edi + 0x18], ebx
fst dword [edi + 8]
mov dword [edi], vtable.CBkRichTextSubTextObj.0
fst dword [edi + 0xc]
mov ecx, 0x5e736c
fstp dword [edi + 0x10]
lea esi, [edi + 0x1c]
mov edx, dword [0x5e736c]
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi], eax
mov eax, dword [esp + 0x44]
fild dword [eax + 0x34]
mov ecx, dword [eax + 0x14]
lea edx, [esp + 0x64]
fstp dword [esp + 0x58]
fild dword [eax + 0x30]
fstp dword [esp + 0x5c]
fld dword [esp + 0x58]
fld st(0)
fadd dword [esp + 0x74]
fstp dword [esp + 0x74]
fadd dword [esp + 0x7c]
fstp dword [esp + 0x7c]
fld dword [esp + 0x78]
fld dword [esp + 0x5c]
fld st(0)
faddp st(2)
fxch st(1)
fstp dword [esp + 0x78]
fadd dword [esp + 0x80]
fstp dword [esp + 0x80]
mov dword [edi + 0x14], ecx
mov eax, dword [eax + 0x18]
mov ecx, dword [esp + 0x60]
mov dword [edi + 0x18], eax
mov eax, dword [esp + 0x48]
push ecx
mov ecx, dword [esp + 0x44]
call fcn.00413460
mov dword [esp + 0xc0], ebx
mov ecx, dword [eax]
cmp ecx, ebx
je 0x487ef9
mov eax, ecx
lea edx, [eax + 2]
mov dword [esp + 0x5c], edx
mov dx, word [eax]
add eax, 2
cmp dx, bx
jne 0x487ee6
sub eax, dword [esp + 0x5c]
sar eax, 1
mov ebx, eax
push ecx
mov eax, esi
call fcn.00410570
mov dword [esp + 0xc0], 0xffffffff
mov eax, dword [esp + 0x64]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x487f2c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [edi]
mov edx, dword [edx + 0xc]
lea eax, [esp + 0x74]
push eax
mov ecx, edi
call edx
mov esi, dword [esp + 0x68]
mov ecx, dword [esi + 4]
test ecx, ecx
mov dword [esp + 0x5c], edi
jne 0x487f4d
xor edx, edx
jmp 0x487f55
mov edx, dword [esi + 8]
sub edx, ecx
sar edx, 2
test ecx, ecx
je 0x487f72
mov eax, dword [esi + 0xc]
sub eax, ecx
sar eax, 2
cmp edx, eax
jae 0x487f72
mov eax, dword [esi + 8]
mov dword [eax], edi
add eax, 4
mov dword [esi + 8], eax
jmp 0x487f92
mov edi, dword [esi + 8]
cmp ecx, edi
jbe 0x487f7f
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
push edi
push esi
lea eax, [esp + 0x64]
push eax
lea ecx, [esp + 0x78]
push ecx
mov eax, esi
call fcn.004178c0
mov eax, dword [esp + 0x40]
add eax, dword [esp + 0x48]
mov ebx, dword [esp + 0x50]
cmp eax, dword [esp + 0x4c]
mov dword [esp + 0x40], eax
jl 0x487df0
mov edi, dword [esp + 0x44]
mov edx, dword [edi]
mov eax, dword [edx + 0x40]
push ebx
mov ecx, edi
call eax
mov ecx, dword [esp + 0xb8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc